id: helprace-takeover

info:
  name: Helprace Takeover Detection
  author: pdteam
  severity: high
  description: Helprace takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/115
  metadata:
    max-request: 1
  tags: takeover,helprace

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

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

      - type: word
        words:
          - "Alias not configured!"
          - "Admin of this Helprace account needs to set up domain alias"

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