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,vuln

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

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