id: doppler-service-account-token

info:
  name: Doppler Service Account Token
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/doppler.yml
    - https://docs.doppler.com/reference/api
    - https://docs.doppler.com/reference/auth-token-formats
  metadata:
    verified: true
    max-request: 1
  tags: doppler,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(dp\.sa\.[a-zA-Z0-9]{40,44})\b
# digest: 490a004630440220530beed44bdab85f8ac818a8b02cdd5ee880b66b45fd8b5bf432743516683cbd0220441fce9cfd9f0930c0babf6108808f5b4fc3a15209ceaeb8f619a54a04bf593d:922c64590222798bb761d5b6d8e72950