id: smugmug-takeover

info:
  name: Smugmug Takeover Detection
  author: pdteam
  severity: high
  description: Smugmug takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/60
  metadata:
    max-request: 1
  tags: takeover,smugmug,vuln

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

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

      - type: word
        words:
          - '{"text":"Page Not Found"'

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