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,vuln

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: 4b0a004830460221008398fae2cd19c783d4f0b694d567fa1c3ac7060bba258c9c8827cf2295763f650221008474ad5cd56c2e01a4a6554495f97d88a1f36f7777968ddcac8fc7baa8ea606b:922c64590222798bb761d5b6d8e72950