id: bigcartel-takeover

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

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

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

      - type: word
        words:
          - "<h1>Oops! We couldn&#8217;t find that page.</h1>"

      - type: dsl
        dsl:
          - '!contains(host,"bigcartel.com")'

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