GHSA-5hx7-j24v-rffj
GeoNetwork Web Module: Unauthenticaded Server-Side Request Forgery in SLD Tool
Quick fix
GHSA-5hx7-j24v-rffj — org.geonetwork-opensource:gn-web-app: upgrade to the fixed version with the command below.
# pom.xml: bump <version>4.4.12</version> for org.geonetwork-opensource:gn-web-appDetails
### Summary An unauthenticated server-side request forgery vulnerability lets any anonymous user make the GeoNetwork server issue arbitrary outbound HTTP requests. This gives an external attacker a position inside the server's network, making it possible to make internal requests no matter if the response is XML-type or not.
The SLD tooling endpoint `POST /api/tools/ogc/sld` takes a caller-supplied **WMS server URL** and performs a **server-side HTTP GET** to it, with no validation. The fetched body can also be stored and downloaded if the output of the outbound request is in XML format, making the SSRF non-blind.
### Impact Any unauthenticated user can make the server send arbitrary HTTP requests to internal hosts it would never expose publicly, and read the responses back if the request responses are XML. This enables internal data disclosure, for example, configuration files that return as XML, authorization bypass, and reconnaissance of the internal network all from an anonymous position.
### Resolution
Patched releases:
* 4.4.12 * 4.2.17
### Resources
* https://github.com/geonetwork/core-geonetwork/pull/9343
Are you affected?
Enter the version of the package you're using.
Affected packages
4.4.0Fixed in: 4.4.12# pom.xml: bump <version>4.4.12</version> for org.geonetwork-opensource:gn-web-app4.0.0Fixed in: 4.2.17# pom.xml: bump <version>4.2.17</version> for org.geonetwork-opensource:gn-web-app