id: herokuapp-detect

info:
  name: Detect websites using Herokuapp endpoints
  author: alifathi-h1,righettod
  severity: info
  description: Detected endpoints might be vulnerable to subdomain takeover or disclose sensitive info
  metadata:
    max-request: 1
  tags: heroku,tech,discovery

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

    extractors:
      - type: regex
        part: body
        regex:
          - "[a-z0-9.-]+\\.herokuapp\\.com"
          - "[a-z0-9.-]+\\.herokucdn\\.com"
# digest: 4a0a00473045022100e71559a2d9c52437a5b5be026c8eb8ab28899f1dde70ed52dfc837487a5a5785022023f25dd84cb42c9386e9fb0ee977276515bf3b88297881711eed34b786e3d4fc:922c64590222798bb761d5b6d8e72950