id: heroku-api-key

info:
  name: Heroku API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/heroku.yml
    - https://devcenter.heroku.com/articles/authentication
  metadata:
    verified: true
    max-request: 1
  tags: heroku,token,exposure

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

    extractors:
      - type: regex
        part: body
        regex:
          - '(?i)heroku.{0,20}key.{0,20}\b([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\b'
# digest: 4a0a0047304502200d592955bb4841a28c964f5a8b2d96d7247f67da975c81b4d175f45b8a8c0b54022100fd4f297c83785952e204bdfcdc9f8cce6fe19fbf06f2af22ae60c000cad51c5a:922c64590222798bb761d5b6d8e72950