CVE-2017-12629
CRITICAL IN THE WILD NUCLEIApache Solr < 7.1 - Remote Code Execution via XXE in XML Query Parser
Title source: llmExploitation Summary
CVE-2017-12629 has been observed exploited in the wild (reported by InTheWild.io). EIP tracks 3 public exploits from researchers including Michael Stepankin & Olga Barinova, dyeat, captain-woof. A Nuclei detection template is also available.
AI-analyzed exploit summary This exploit demonstrates two vulnerabilities in Apache Solr: an XXE vulnerability (CVE-2017-12629) allowing arbitrary HTTP requests and a remote code execution vulnerability via the RunExecutableListener. The PoC includes detailed steps to exploit both vulnerabilities, including chaining them for RCE without direct access to the Solr server.
Description
Remote code execution occurs in Apache Solr before 7.1 with Apache Lucene before 7.1 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.
Exploits (3)
This exploit demonstrates two vulnerabilities in Apache Solr: an XXE vulnerability (CVE-2017-12629) allowing arbitrary HTTP requests and a remote code execution vulnerability via the RunExecutableListener. The PoC includes detailed steps to exploit both vulnerabilities, including chaining them for RCE without direct access to the Solr server.
The repository contains a functional Python script that exploits CVE-2017-12629 in Apache Solr by adding a malicious RunExecutableListener to achieve remote code execution via a reverse shell. The script sends crafted JSON payloads to the Solr config and update endpoints to trigger the vulnerability.
This PoC exploits CVE-2017-12629 in Apache Solr by leveraging XXE and the RunExecutableListener class to achieve remote code execution. It supports multiple exfiltration methods and encoding formats for command output.
Nuclei Templates (1)
cpe:"cpe:2.3:a:apache:solr" || http.title:"apache solr" || http.title:"solr admin"
title="solr admin" || title="apache solr"
References (24)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H