Github Takeover Detection
ID: github-takeover
Severity: high
Author: pdteam,th3r4id
Tags: takeover,github
Description
Section titled “Description”Github takeover was detected.
YAML Source
Section titled “YAML Source”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:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/takeovers/github-takeover.yaml"