id: gitlab-pipeline-token

info:
  name: GitLab Pipeline Trigger 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/ee/ci/triggers/
    - https://gitlab.com/gitlab-org/gitlab/-/issues/371396
    - https://gitlab.com/gitlab-org/gitlab/-/issues/388379
  metadata:
    verified: true
    max-request: 1
  tags: gitlab,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '\b(glptt-[0-9a-f]{40})\b'
# digest: 4a0a0047304502204f127e5506ee6137902bc3ad8c869c151a312e9b35027177e4d40170113d097f022100ca1a1c6164252d8f197fb8597a9869d93d5813b230ff1bfba715bcf4802eebc0:922c64590222798bb761d5b6d8e72950