id: uberflip-takeover

info:
  name: Uberflip Takeover Detection
  author: pdteam
  severity: high
  description: Uberflip takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/150
    - https://hackerone.com/reports/863551
  metadata:
    max-request: 1
  tags: takeover,uberflip,hackerone

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        words:
          - "Non-hub domain, The URL you've accessed does not provide a hub."

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 490a004630440220743419c3ad2c79c8b7d2ad8b7324618dec98175ba793743b417a60806ab106fa0220783df3cbf5f2bc459b85237bca3a06b8fa7eeab05ddb0c1ce47195a9c5f0ff4a:922c64590222798bb761d5b6d8e72950