Unsecured WMS dynamic styling sld=<url> parameter affords blind unauthenticated SSRF in GeoServer
geoserver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver:gs-wms Maven |
|
|
| org.geoserver.web:gs-web-app Maven |
|
geoserver
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver:gs-wms Maven |
|
|
| org.geoserver.web:gs-web-app Maven |
|
|
GeoServer is an open source software server written in Java that allows users to share and edit geospatial data. The WMS specification defines an ``sld=<url>`` parameter for GetMap, GetLegendGraphic and GetFeatureInfo operations for user supplied "dynamic styling". Enabling the use of dynamic styles, without also configuring URL checks, provides the opportunity for Service Side Request Forgery. This vulnerability can be used to steal user NetNTLMv2 hashes which could be relayed or cracked externally to gain further access. This vulnerability has been patched in versions 2.22.5 and 2.23.2.
From the CVE record · GitHub_M
GeoServer WMS operations accept a user-supplied URL through the `sld` parameter. If dynamic styles are enabled without URL checks, an attacker can trigger server-side requests and potentially steal user NetNTLMv2 hashes, which could be relayed or cracked for further access.
Operators using Maven packages `org.geoserver:gs-wms` or `org.geoserver.web:gs-web-app` in versions before 2.22.5 or from 2.23.0 up to, but not including, 2.23.2 should check their deployments.