id: readthedocs-takeover

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

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

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

      - type: word
        words:
          - unknown to Read the Docs

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