id: uptime-takeover
info:
name: Uptime Takeover Detection
author: philippedelteil
severity: high
reference:
- https://github.com/EdOverflow/can-i-take-over-xyz/issues/368
metadata:
max-request: 1
tags: takeover,uptime,vuln
http:
- method: GET
path:
- "{{BaseURL}}"
matchers-condition: and
matchers:
- type: dsl
dsl:
- Host != ip
- type: word
part: body
words:
- '<html><body>You are being <a href="https://uptime.betterstack.com">redirected</a>.</body></html>'
- type: status
status:
- 302
extractors:
- type: dsl
dsl:
- cname
# digest: 4a0a00473045022100c2470fe0256242d45d0761be8bebdf2b4448ba227da35a0d3bb56d11a1150c630220455a5759545b0ad7589477bf66bf07b89aee42e41f2417ab01d581d52735185d:922c64590222798bb761d5b6d8e72950