# N/A
## 概述
Apache Solr 7.1之前的版本和Apache Lucene 7.1之前的版本中存在远程代码执行漏洞。该漏洞通过利用XML外部实体扩展(XXE)漏洞和Config API的add-listener命令来达到运行RunExecutableListener类的目的。
## 影响版本
- Apache Solr: 7.1之前的版本
- Apache Lucene: 7.1之前的版本
## 细节
1. **XML外部实体扩展(XXE)**:默认情况下,XML Query Parser可用,并可以通过设置参数`deftype=xmlparser`来利用此漏洞,上传恶意数据到`/upload`请求处理器,或者通过FTP包装器实现盲XXE,读取Solr服务器上的任意本地文件。
2. **远程代码执行(RCE)**:攻击者可以通过利用RunExecutableListener,这个组件在所有受影响版本的Solr中都可用,来执行任意命令。
## 影响
- **远程代码执行**:攻击者可以通过此漏洞在Solr服务器上执行任意命令,可能导致服务器完全被控制。
- **盲XXE**:攻击者可以读取Solr服务器上的任意文件,泄露敏感信息。
# | POC 描述 | 源链接 | 神龙链接 |
---|---|---|---|
1 | 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. | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2017/CVE-2017-12629.yaml | POC详情 |
2 | None | https://github.com/Threekiii/Awesome-POC/blob/master/%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%BC%8F%E6%B4%9E/Apache%20Solr%20%E8%BF%9C%E7%A8%8B%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E%20CVE-2017-12629.md | POC详情 |
3 | None | https://github.com/Threekiii/Awesome-POC/blob/master/%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%BC%8F%E6%B4%9E/Apache%20Solr%20XML%20%E5%AE%9E%E4%BD%93%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E%20CVE-2017-12629.md | POC详情 |
4 | None | https://github.com/Threekiii/Awesome-POC/blob/master/%E4%B8%AD%E9%97%B4%E4%BB%B6%E6%BC%8F%E6%B4%9E/Apache%20Solr%20RCE%20%E8%BF%9C%E7%A8%8B%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E%20CVE-2017-12629.md | POC详情 |
5 | None | https://github.com/chaitin/xray-plugins/blob/main/poc/manual/solr-cve-2017-12629-xxe.yml | POC详情 |
6 | https://github.com/vulhub/vulhub/blob/master/solr/CVE-2017-12629-RCE/README.md | POC详情 | |
7 | https://github.com/vulhub/vulhub/blob/master/solr/CVE-2017-12629-XXE/README.md | POC详情 | |
8 | 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. | https://github.com/captain-woof/cve-2017-12629 | POC详情 |
暂无评论