id: aha-takeover

info:
  name: Aha - Subdomain Takeover Detection
  author: pdteam
  severity: high
  description: An Aha subdomain takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz
  metadata:
    max-request: 1
  tags: takeover

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        words:
          - There is no portal here ... sending you back to Aha!

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 4a0a00473045022100b0848bbdb894e62bc84b290ace68819f2986bb6a0274aea81fa97401c6020fcf0220358de01bf5010d3739cab364021509c1376274bb16c953ec044b4ef8b5d6ea1d:922c64590222798bb761d5b6d8e72950