
Threaded scanner and two-stage PoC for CVE-2017-12629, detecting Apache Solr xmlparser XXE via core extraction and entity-expansion probe requests.
Apache Solr <= 7.1 - XML Entity Injection
| field | value |
|---|---|
| CVE | CVE-2017-12629 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-611) |
| fixed in | Apache Solr 7.2 (affected: Solr with Apache Lucene before 7.1; Elasticsearch uses Lucene but is NOT affected) |
| class | XXE in the XML Query Parser (defType=xmlparser) chained to RCE via Config API add-listener / RunExecutableListener (CWE-611) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RaS
Apache Solr before 7.1 ships an XML Query Parser that is reachable for
any select request with defType=xmlparser. The parser expands DTD
entities, so an unauthenticated attacker can send an external entity
(<!ENTITY % remote SYSTEM "..."> %remote;) that the server fetches
itself (blind XXE, ftp/HTTP wrapper, arbitrary local file read) and an
internal entity whose value is reflected inside the <doc> of the
wt=xml reply. The nuclei template sends exactly two raw requests:
GET /solr/admin/cores?wt=json (from which the extractor regex
"name":"(.*?)" yields the core name) and
GET /solr/{core}/select?q=<xml>&wt=xml&defType=xmlparser, matching the
word http from the interaction. The scanner reproduces both requests
and both matcher artifacts with stdlib only.
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. The remediation is to upgrade to Apache Solr 7.2 or higher.
max-request: 2; the second
URL embeds the core extracted from the first reply.GET /solr/admin/cores?wt=json must return HTTP 200 and
the template extractor regex "name":"(.*?)" (loose
"name"\s*:\s*"([^"]+)" fallback) must yield a non-empty core name.GET /solr/<core>/select with q set to the template XML
(DOCTYPE with %remote; external parameter entity whose SYSTEM is the
cores JSON on the same host, plus internal entity probe),
wt=xml, defType=xmlparser.and): the XML reply must contain the template word
http and the 12-char md5 probe token echoed through the internal
entity, proving live entity expansion by the XML Query Parser.initArgs token of the fetched cores JSON inside the reply.--json sidecar mirrors the same rows for tooling.Scanner:
python scanner/CVE-2017-12629/scanner.py urls.txt [threads] [out.csv] [--json out.json]
urls.txt takes one target per line (# comments skipped, scheme
auto-prepended when missing), e.g. 192.168.1.50 or
http://192.168.1.50:8983. The default Solr admin port is 8983.
python exploit/CVE-2017-12629/exploit.py http://192.168.1.50:8983 [--csv out.csv] [--json out.json] [--verbose]
It replays the template two-request flow (cores JSON, then the xmlparser XXE query), prints numbered checks 1 to 5, the result dict, and the final verdict line.
RCE POC SUITE
scanner : CVE-2017-12629 v1.0.0 (Apache Solr with Lucene before 7.1, fixed in 7.2)
endpoint: GET /solr/admin/cores?wt=json | GET /solr/<core>/select?q=<xml>&wt=xml&defType=xmlparser
matchers: core extractor regex '"name":"(.*?)"' AND status 200 (both requests) AND body word 'http' AND probe token echoed by the xmlparser entity (and)
threads : 4 | csv: out.csv | json: out.json
[2026-12-03 14:11:02] loaded 1 target(s) from urls.txt
[2026-12-03 14:11:03] summary total=1 answered=1 vulnerable=1 errors=0
[2026-12-03 14:11:03] timing wall=1183ms avg=1144ms max=1144ms
[2026-12-03 14:11:03] wrote out.csv (1 row(s)) and out.json
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok if the HTTP layer answered, error otherwise |
| vulnerable | True/False verdict from check() (all matchers AND) |
| elapsed_ms | per-target timing |
| token | 12-char md5 over url|CVE id, per-row evidence key |
| result_b64 | base64(JSON) full details (core, matcher booleans, probe token, body excerpts) |
scanner/CVE-2017-12629/scanner.py - threaded black-box scanner.scanner/CVE-2017-12629/README.md - this document.scanner/CVE-2017-12629/DESCRIPTION.md - architecture and probe plan.exploit/CVE-2017-12629/exploit.py - two-stage POC (cores extractor +
xmlparser XXE entity token).0 - completed and at least one target scored vulnerable.2 - completed with no vulnerable target (or no targets loaded).http/cves/2017/CVE-2017-12629.yaml
Tiefgehende Angriffsflächenkartierung und Asset-Erkennung

Schnelles passives Tool zur Subdomain-Enumeration.

reconFTW ist ein Tool, das entwickelt wurde, um automatisiertes Recon auf einer Zieldomäne durchzuführen, indem es die beste Auswahl an Tools zum Scannen und Auffinden von Schwachstellen ausführt.