id: wd-mycloud-panel

info:
  name: WD My Cloud Panel - Detect
  author: DhiyaneshDk
  severity: info
  reference:
    - https://www.zerodayinitiative.com/blog/2023/4/19/cve-2022-29844-a-classic-buffer-overflow-on-the-western-digital-my-cloud-pro-series-pr4100
  classification:
    cpe: cpe:2.3:a:western_digital:mycloud_nas:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    product: mycloud_nas
    shodan-query: http.favicon.hash:-1074357885
    vendor: western_digital
    verified: true
  tags: panel,login,mycloud,wd,detect,western_digital

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'WDMyCloud'
          - 'Cloud_Connection_StatusID'
          - 'my_cloud_os'
          - 'WD Privacy Statement'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a0047304502204476cb674fa0a7dd1c370a1ffadff8128806cddd1c60d02aec276e8c6e03ab01022100bc9e6ee92792e2022a5faf9722b6b920250d9c3afd413a26d3ed28260a1d5898:922c64590222798bb761d5b6d8e72950