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

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: 4b0a00483046022100fb7029c193e3d4be91c2e652c0f69fbcca669e31cd56bdbf2d50b5b942d0d1fd022100dd4c4dbff94924f79c4191ff57238b6d21b9fa4f54e3050ae127d8b1284979ac:922c64590222798bb761d5b6d8e72950