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

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: 490a0046304402206fa6a47df9312f40e91c67b2652fa82d1a794e94e18c686fcf42ab4eb234c29202201c6ff3dd5f1334d42f6f0d42d3da0dd9bbfdb6a07433f91f7f2aa249806573d2:922c64590222798bb761d5b6d8e72950