2021-03-18 11:23:29 +00:00
|
|
|
id: github-takeover
|
|
|
|
|
|
|
|
info:
|
2022-12-08 05:30:07 +00:00
|
|
|
name: Github Takeover Detection
|
2022-12-08 04:58:34 +00:00
|
|
|
author: pdteam,th3r4id
|
2021-03-18 11:23:29 +00:00
|
|
|
severity: high
|
2023-12-22 08:59:06 +00:00
|
|
|
description: Github takeover was detected.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/EdOverflow/can-i-take-over-xyz
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: takeover,github
|
2021-03-18 11:23:29 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-03-18 11:23:29 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}"
|
2021-11-08 17:22:12 +00:00
|
|
|
|
2021-11-08 17:15:37 +00:00
|
|
|
matchers-condition: and
|
2021-03-18 11:23:29 +00:00
|
|
|
matchers:
|
2022-11-17 15:43:27 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- Host != ip
|
|
|
|
|
2021-03-18 11:23:29 +00:00
|
|
|
- type: word
|
|
|
|
words:
|
2024-08-16 14:57:44 +00:00
|
|
|
- "There isn't a GitHub Pages site here."
|
|
|
|
- "For root URLs (like http://example.com/) you must provide an index.html file"
|
2024-08-15 22:02:15 +00:00
|
|
|
- "The site configured at this address does not contain the requested file."
|
|
|
|
- "For root URLs (like <code>http://example.com/</code>)"
|
2022-02-22 12:10:51 +00:00
|
|
|
condition: or
|
2021-11-08 17:22:12 +00:00
|
|
|
|
2021-11-08 17:15:37 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2021-11-08 17:21:52 +00:00
|
|
|
- '!contains(host,"githubapp.com")'
|
2022-02-22 12:10:51 +00:00
|
|
|
- '!contains(host,"github.com")'
|
|
|
|
- '!contains(host,"github.io")'
|
2022-05-31 05:51:59 +00:00
|
|
|
condition: and
|
2024-07-10 11:31:30 +00:00
|
|
|
|
2024-07-08 12:16:52 +00:00
|
|
|
extractors:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2024-07-17 14:38:10 +00:00
|
|
|
- cname
|
2024-08-20 17:36:39 +00:00
|
|
|
# digest: 4a0a0047304502207d6133227eba9e2f80f9af4ec1a27fdb7353910e763c71e5957c224e7c30b9330221008d60618c554d2f9c1fc0fcd14ff63b90efc843ba468de5e489c99db2ef9cc61f:922c64590222798bb761d5b6d8e72950
|