Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2017-12629 — Threaded scanner and two-stage PoC for CVE-2017-12629, detecting Apache Solr xmlparser XXE via core extraction and entity-expansion probe requests. | Kitploit
도구/GitHubGitHub/jonathan1010/cve-2017-12629
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration Testing
GitHubjonathan1010/cve-2017-12629

CVE-2017-12629

Threaded scanner and two-stage PoC for CVE-2017-12629, detecting Apache Solr xmlparser XXE via core extraction and entity-expansion probe requests.

저장소 보기
2026년 12월 4일아직 검토되지 않음
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

CVE-2017-12629

Apache Solr <= 7.1 - XML Entity Injection

Metadata

fieldvalue
CVECVE-2017-12629
severitycritical
CVSS9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CWE-611)
fixed inApache Solr 7.2 (affected: Solr with Apache Lucene before 7.1; Elasticsearch uses Lucene but is NOT affected)
classXXE in the XML Query Parser (defType=xmlparser) chained to RCE via Config API add-listener / RunExecutableListener (CWE-611)
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RaS

Summary

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.

Full 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. The remediation is to upgrade to Apache Solr 7.2 or higher.

Detection model

  • Two requests only, matching the template max-request: 2; the second URL embeds the core extracted from the first reply.
  • Request 1: 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.
  • Request 2: 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.
  • Matcher (word, 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.
  • The external parameter entity fetch is additionally evidenced by the initArgs token of the fetched cores JSON inside the reply.
  • Redirects are not followed; a non-200 on either leg fails the AND.
  • Rows are streamed to the CSV as each worker finishes (flush + fsync per row); the --json sidecar mirrors the same rows for tooling.

Usage

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.

Example scanner output

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

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided (scheme auto-prepended if missing)
statusok if the HTTP layer answered, error otherwise
vulnerableTrue/False verdict from check() (all matchers AND)
elapsed_msper-target timing
token12-char md5 over url|CVE id, per-row evidence key
result_b64base64(JSON) full details (core, matcher booleans, probe token, body excerpts)

Files

  • 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).

Exit codes

  • 0 - completed and at least one target scored vulnerable.
  • 2 - completed with no vulnerable target (or no targets loaded).

References

  • nuclei template: http/cves/2017/CVE-2017-12629.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-12629
  • https://github.com/vulhub/vulhub/tree/master/solr/CVE-2017-12629-XXE
  • https://github.com/vulhub/vulhub/tree/master/solr/CVE-2017-12629-RCE
도구 다운로드

관련 도구

  • amass

    심층 공격 표면 매핑 및 자산 탐색

  • subfinder

    빠른 패시브 서브도메인 열거 도구.

  • reconftw

    reconFTW는 대상 도메인에 대해 자동화된 정찰을 수행하기 위해 설계된 도구로, 최적의 도구 세트를 실행하여 스캐닝을 수행하고 취약점을 찾아냅니다.

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    Callisto

    jetp1ane/callisto

    Ghidra를 통해 실행 파일을 디컴파일하고, Semgrep으로 의사 C 코드를 스캔하며, GPT-3.5-Turbo를 사용하여 결과를 검증해 거짓 양성을 줄이는 자동화된 바이너리 취약점 분석 도구입니다.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    SMS를 가로채고, 메시지를 주입하며, 모바일 기기를 추적하기 위해 악성 GSM 셀을 배포하는 IMSI Catcher 플랫폼

    721
  • 4

    opencti

    opencti-platform/opencti

    오픈 사이버 위협 인텔리전스 플랫폼

    535
  • 5

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    424
  • 6

    DFRoot

    a2333c/dfroot

    삼성 Galaxy S25 Ultra(SM-S938B)용 Android 루트 도구로, DirtyFrag CVE-2026-43284와 CVE-2026-43499를 연쇄하여 KernelSU를 통해 부팅 시 자동으로 루트 권한을 획득합니다.

    419

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →