nuclei-templates/takeovers/github-takeover.yaml

34 lines
730 B
YAML

id: github-takeover
info:
name: github takeover detection
author: pdteam
severity: high
reference:
- https://github.com/EdOverflow/can-i-take-over-xyz
tags: takeover,github
requests:
- 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