id: pantheon-takeover

info:
  name: Pantheon Takeover Detection
  author: pdteam
  severity: high
  description: Pantheon takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/24
    - https://medium.com/bug-bounty/how-i-took-over-several-stanford-subdomains-also-let-me-explain-you-the-pain-to-report-it-d84b08704be8
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - "The gods are wise, but do not know of the site which you seek."

      - type: dsl
        dsl:
          - '!contains(host,"apigee.io")'

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