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

42 lines
1.1 KiB
YAML

id: github-takeover
info:
name: Github Takeover Detection
author: pdteam,th3r4id
severity: high
description: Github takeover was detected.
reference:
- https://github.com/EdOverflow/can-i-take-over-xyz
metadata:
max-request: 1
tags: takeover,github
http:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: dsl
dsl:
- Host != ip
- type: word
words:
- "There isn't a GitHub Pages site here."
- "For root URLs (like http://example.com/) you must provide an index.html file"
condition: or
- type: dsl
dsl:
- '!contains(host,"githubapp.com")'
- '!contains(host,"github.com")'
- '!contains(host,"github.io")'
condition: and
extractors:
- type: dsl
dsl:
- "resolve(Host, 'cname')"
# digest: 4b0a00483046022100da69c3934ab685046db34fd5b530f9a94a05843b80c64b9bd0c124de5f99b3bc022100baeb8a7a60d2cc78907aa619a65bba8bfaff269182513a5260167813f14407bf:922c64590222798bb761d5b6d8e72950