id: aftership-takeover

info:
  name: Aftership - Subdomain Takeover Detection
  author: pdteam
  severity: high
  description: Aftership 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:
          - Oops.</h2><p class="text-muted text-tight">The page you're looking for doesn't exist.

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