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: 4a0a0047304502207d6133227eba9e2f80f9af4ec1a27fdb7353910e763c71e5957c224e7c30b9330221008d60618c554d2f9c1fc0fcd14ff63b90efc843ba468de5e489c99db2ef9cc61f:922c64590222798bb761d5b6d8e72950 |