id: doppler-service-token

info:
  name: Doppler Service 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

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

    extractors:
      - type: regex
        part: body
        regex:
          - \b(dp\.st\.(?:[a-z0-9\-_]{2,35}\.)?[a-zA-Z0-9]{40,44})\b
# digest: 490a0046304402207a774be2bc45c7e8338a502fd18eaebd8332967f0c3283655c2c3eb6d312958b02207f4706008d7b6dcadeaf1b9019d55d047d0f6e2f804e46331f0a4d71f8d18a2d:922c64590222798bb761d5b6d8e72950