id: gohire-takeover

info:
  name: GoHire Takeover Detection
  author: philippedelteil
  severity: high
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/403
  metadata:
    max-request: 1
  tags: takeover,gohire,vuln

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

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

      - type: word
        part: body
        words:
          - 'You may have followed an invalid link or the job you are looking for has been archived'

      - type: status
        status:
          - 404

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