id: github-takeover info: name: Github Takeover Detection author: pdteam,th3r4id severity: high reference: - https://github.com/EdOverflow/can-i-take-over-xyz tags: takeover,github metadata: max-request: 1 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" condition: or - type: dsl dsl: - '!contains(host,"githubapp.com")' - '!contains(host,"github.com")' - '!contains(host,"github.io")' condition: and