一、 漏洞 CVE-2017-12629 基础信息
漏洞信息
                                        # 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服务器上的任意文件,泄露敏感信息。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
N/A
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Apache Solr 代码问题漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Apache Solr是美国阿帕奇(Apache)基金会的一款基于Lucene(一款全文搜索引擎)的搜索服务器。该产品支持层面搜索、垂直搜索、高亮显示搜索结果等。 使用Apache Lucene 7.1之前版本的Apache Solr 7.1之前的版本中存在代码问题漏洞。远程攻击者可利用该漏洞执行代码或读取本地任意文件。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
代码问题
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2017-12629 的公开POC
# 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详情
三、漏洞 CVE-2017-12629 的情报信息