nuclei-templates/http/takeovers/gitbook-takeover.yaml

36 lines
912 B
YAML

id: gitbook-takeover
info:
name: gitbook takeover detection
author: philippedelteil
severity: high
description: gitbook takeover was detected.
reference:
- https://github.com/EdOverflow/can-i-take-over-xyz/issues/259
- https://hackerone.com/reports/223625
metadata:
max-request: 1
tags: takeover,gitbook,hackerone
http:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: dsl
dsl:
- Host != ip
- type: word
words:
- "If you need specifics, here's the error"
- "Domain not found"
condition: and
extractors:
- type: dsl
dsl:
- "resolve(Host, 'cname')"
# digest: 490a00463044022007ba7ff01d235a698a165e83cd1ec53b8f0f2c1c9df81dc1d1c1c7263ab997ae02202a1d4d50779a1120aa7674e464dcf262df262770bd0b4f34c2508b625dc1b0ff:922c64590222798bb761d5b6d8e72950