CVE-2024-29198
GeoServer Vulnerable to Unauthenticated SSRF via TestWfsPost
描述
### Summary It possible to achieve Service Side Request Forgery (SSRF) via the Demo request endpoint if Proxy Base URL has not been set. ### Details A unauthenticated user can supply a request that will be issued by the server. This can be used to enumerate internal networks and also in the case of cloud instances can be used to obtain sensitive data. ### Mitigation 1. When using GeoServer with a proxy, manage the proxy base value as a system administrator, use the application property ``PROXY_BASE_URL`` to provide a non-empty value that cannot be overridden by the user interface or incoming request. 2. When using GeoServer directly without a proxy, block all access to TestWfsPost by editing the web.xml file. Adding this block right before the end: ```xml <security-constraint> <web-resource-collection> <web-resource-name>BlockDemoRequests</web-resource-name> <url-pattern>/TestWfsPost/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>BLOCKED</role-name> </auth-constraint> </security-constraint> ``` ### Resolution Upgrading to GeoServer 2.24.4, or 2.25.2, removes the ``TestWfsPost`` servlet resolving this issue. The demo request page functionality is now implemented directly in the browser. ### Reference - https://osgeo-org.atlassian.net/browse/GEOS-11794 - https://osgeo-org.atlassian.net/browse/GEOS-11390 - https://nvd.nist.gov/vuln/detail/CVE-2021-40822
如何修補 CVE-2024-29198
要修補 CVE-2024-29198,請將受影響套件升級到下列已修補版本。
- —升級至 2.24.4 或更新版本
- —升級至 2.24.4 或更新版本
CVE-2024-29198 正在被利用嗎?
低 — EPSS 為 1.9%,目前沒有觀察到大規模利用活動。
受影響套件(2)
- >= 2.0.0, < 2.24.4