id: flexbe-takeover

info:
  name: Flexbe Subdomain Takeover
  author: 0x_Akoko
  severity: high
  description: Flexbe takeover was detected.
  reference:
    - https://web.archive.org/web/20211002185648/https://github.com/EdOverflow/can-i-take-over-xyz/issues/237
    - https://help.flexbe.com/domains/
  metadata:
    max-request: 1
  tags: takeover,flexbe

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

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

      - type: word
        condition: and
        words:
          - "Domain not configured"
          - "flexbe.com"

      - type: status
        status:
          - 404

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 4a0a0047304502200116733795b3e48407cf1e7324e81e35b78cefd8a3bfca6d2422303d01b7cd4d02210087aef101aa1dd49de0e571ae07bcff25c7e1046b45b82864a2e39e8fd9d12562:922c64590222798bb761d5b6d8e72950