id: heroku-api-key

info:
  name: Heroku API Key
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/data/default/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: 4b0a00483046022100df4006ac4573abc8a2dd76ea9650e6b82ae7e9e8c3c71ab0413eca70b5597736022100e38c1d472b71fd5078379ba4dca353f20bf108f931aa8b167985ab27ea1560f4:922c64590222798bb761d5b6d8e72950