id: tumblr-takeover

info:
  name: tumblr takeover detection
  author: pdteam,philippedelteil
  severity: high
  description: tumblr takeover was detected.
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/240
  metadata:
    max-request: 1
  tags: takeover

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

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

      - type: word
        words:
          - Whatever you were looking for doesn't currently exist at this address.
          - There's nothing here.
        condition: and

      - type: dsl
        dsl:
          - '!contains(host,"tumblr.com")'
          - '!contains(host,"txmblr.com")'
          - '!contains(host,"umblr.com")'
        condition: and

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