严重 Apache Solr Velocity 模版注入远程命令执行漏洞(CVE-2019-17558)
CVE编号
CVE-2019-17558利用情况
POC 已公开补丁情况
官方补丁披露时间
2019-12-31漏洞描述
Apache Solr 5.0.0到Apache Solr 8.3.1容易受到通过VelocityResponseWriter执行的远程代码的攻击。Velocity模板可以通过configset ' Velocity / '目录中的Velocity模板或作为参数提供。用户定义的configset可以包含可呈现的、潜在的恶意模板。参数提供的模板在默认情况下是禁用的,但是可以通过设置params.resource.loader来启用。通过定义一个响应写入器并将其设置为true来启用。定义响应编写器需要配置API访问。Solr 8.4完全删除了params资源加载器,只有在configset是“可信的”(由经过身份验证的用户上传)时才启用configset提供的模板呈现。解决建议
目前Apache Solr官方未发布该漏洞的补丁,请关注Solr官方以便获取更新信息:https://lucene.apache.org/solr/受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | apache | solr | * | From (including) 5.0.0 | Up to (including) 8.3.1 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | lucene-solr | * | Up to (including) 3.6.2+dfsg-20+deb10u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | lucene-solr | * | Up to (including) 3.6.2+dfsg-24 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | lucene-solr | * | Up to (including) 3.6.2+dfsg-26 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | lucene-solr | * | Up to (including) 3.6.2+dfsg-10+deb9u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | lucene-solr | * | Up to (including) 3.6.2+dfsg-26 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 全局影响
- EXP成熟度 POC 已公开
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 传输被破坏
- 服务器危害 服务器失陷
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-20 | 输入验证不恰当 |
CWE-74 | 输出中的特殊元素转义处理不恰当(注入) |
CWE-94 | 对生成代码的控制不恰当(代码注入) |
Exp相关链接
- https://github.com/gsheller/Solr_CVE-2019-17558
- https://github.com/hunter-404/Solr-CVE-2019-17558
- https://github.com/itsdafafo/Exploit_CVE-2019-17558-RCE
- https://github.com/jas502n/solr_rce
- https://github.com/pan3a/Solr-CVE-2019-17558
- https://github.com/SDNDTeam/CVE-2019-17558_Solr_Vul_Tool
- https://github.com/vulhub/vulhub/tree/master/solr/CVE-2019-17558
- https://github.com/xkyrage/Exploit_CVE-2019-17558-RCE
- https://github.com/zhzyker/exphub
- https://raw.githubusercontent.com/1N3/Sn1per/master/templates/active/CVE-2019-17558_-_Apache_Solr_RCE.sh
- https://raw.githubusercontent.com/jaeles-project/jaeles-signatures/master/cves/solr-rce-cve-2019-17558.yaml
- https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/CVE-2019-17558.yaml
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/multi/http/solr_velocity_rce.rb
- https://www.exploit-db.com/exploits/47572
- https://www.exploit-db.com/exploits/48338

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论