id: heroku-oauth2-token

info:
  name: Heroku OAuth2 Token
  author: Chemo850
  severity: info
  reference:
    - https://devcenter.heroku.com/articles/oauth#prefixed-oauth-tokens
  metadata:
    verified: true
    max-request: 1
  tags: heroku,token,exposure,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - 'HRKU-[0-9a-zA-Z_\-]{60}'
# digest: 490a0046304402204f54f46790ad16729d3857ab7ddbc23d1bbddde24109ffc0f498ea4ac16c9f3a02204289e754c7abf58495ac8212628ad9c91698152e04442991e6e7ee60f38aae49:922c64590222798bb761d5b6d8e72950