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

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

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