id: doppler-audit-token

info:
  name: Doppler Audit 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
  classification:
    cwe-id: CWE-522,CWE-540
  metadata:
    verified: true
    max-request: 1
  tags: doppler,exposure,tokens,vuln

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

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