id: gitlab-runner-token

info:
  name: GitLab Runner Registration Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/gitlab.yml
    - https://docs.gitlab.com/runner/security/
    - https://docs.gitlab.com/ee/security/token_overview.html#runner-registration-tokens-deprecated
    - https://docs.gitlab.com/ee/security/token_overview.html#security-considerations
  metadata:
    verified: true
    max-request: 1
  tags: gitlab,runner,token,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(GR1348941[0-9a-zA-Z_-]{20})(?:\b|$)'
# digest: 4b0a00483046022100ef1a1d375e8f18c8a1eee796ae504be6760b7cef3534453cc5c47a147cadf43a0221009c8d803ba1c3fb1ff2b63cc78fd4bc9f0ae44923f964878961813b3517c88e5e:922c64590222798bb761d5b6d8e72950