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" 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: 490a0046304402203b7beee88e3e0e1c06ded9baf41f69191e8a1c0b6b1c8ebaa8f62bb63555955e02202e591661ddfd155e90024902a0362d770ee08400fd497077696f1c39066b8aee:922c64590222798bb761d5b6d8e72950