id: hatenablog-takeover

info:
  name: Hatenablog Takeover Detection
  author: pdteam
  severity: high
  description: Hatenablog takeover was detected.
  reference:
    - https://beaglesecurity.com/blog/vulnerability/hatenablog-takeover-detection.html
    - https://github.com/EdOverflow/can-i-take-over-xyz
  metadata:
    max-request: 1
  tags: takeover,hatenablog,vuln

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

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

      - type: word
        words:
          - "404 Blog is not found"

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