mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-02 08:43:27 +08:00
44 lines
1.2 KiB
YAML
44 lines
1.2 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"
|
|
- "The site configured at this address does not contain the requested file."
|
|
- "For root URLs (like <code>http://example.com/</code>)"
|
|
condition: or
|
|
|
|
- type: dsl
|
|
dsl:
|
|
- '!contains(host,"githubapp.com")'
|
|
- '!contains(host,"github.com")'
|
|
- '!contains(host,"github.io")'
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: dsl
|
|
dsl:
|
|
- cname
|
|
# digest: 4a0a004730450220666855bceff085f577f68df3a9c26b71a6fbf2d54f2f8a8ed9b7ebaafb1ff347022100864b8cf6be39db2508edab09878c1bbfce7a35f7ba468ab9ad28e5bd28c82178:922c64590222798bb761d5b6d8e72950 |