id: announcekit-takeover

info:
  name: Announcekit Takeover Detection
  author: melbadry9
  severity: high
  description: Announcekit takeover was detected.
  reference:
    - https://blog.melbadry9.xyz/dangling-dns/xyz-services/dangling-dns-announcekit
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/228
  metadata:
    max-request: 1
  tags: takeover,announcekit,vuln

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

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

      - type: word
        words:
          - 'Error 404 - AnnounceKit'

      - type: status
        status:
          - 404

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