id: helpdocs-takeover

info:
  name: HelpDocs Takeover Detection
  author: philippedelteil
  severity: high
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/402
  metadata:
    max-request: 1
  tags: takeover,helpdocs

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

    redirects: true
    max-redirects: 2

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

      - type: word
        part: body
        words:
          - "You've tried to access an account/page that does not exist"

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