30 lines
675 B
YAML
30 lines
675 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: 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
|