id: gitlab-runner-token

info:
  name: GitLab Runner Registration Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4b0a00483046022100cddcb9ee698e6a116dd19c9a9cb587d7d02a916c991e90dfc7a07a12de3b016c022100cde6aaf2fe52b46a10e6a468efe4cab0feae5457c4daa459c3bfdec298e06d9c:922c64590222798bb761d5b6d8e72950