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

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: 4a0a0047304502206e08adf76296f4f90627e7fa666f990c575e6847f43123b9c25d93f45c427adb022100bcde2bd64c07bd5927f4889260a0ad381050c14940fc49fbe59bec326f80063d:922c64590222798bb761d5b6d8e72950