GHSA-r4hf-r8gj-jgw2
Coverage REST API Server Side Request Forgery
Quick fix
GHSA-r4hf-r8gj-jgw2 — org.geoserver:gs-rest: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.26.0</version> for org.geoserver:gs-restDetails
### Summary
The Coverage rest api `/workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}` allow to upload file with a specified url (with {method} equals 'url') with no restrict.
### Details
The Coverage rest api `/workspaces/{workspaceName}/coveragestores/{storeName}/{method}.{format}` allow to upload file with a specified url (with {method} equals 'url'). But this url has not been check with [URL Checks feature](https://docs.geoserver.org/latest/en/user/security/urlchecks.html#url-checks).
For example, should add the code below to check fileURL:
```java URLCheckers.confirm(fileURL) ```
The vulnerable code was [RESTUtils.java](https://github.com/geoserver/geoserver/blob/main/src/rest/src/main/java/org/geoserver/rest/util/RESTUtils.java#L176)
### Impact
This vulnerability presents the opportunity for Server Side Request Forgery.
### References
- https://osgeo-org.atlassian.net/browse/GEOS-11468 - https://osgeo-org.atlassian.net/browse/GEOS-11717
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.26.0# pom.xml: bump <version>2.26.0</version> for org.geoserver:gs-rest0Fixed in: 2.26.0# pom.xml: bump <version>2.26.0</version> for org.geoserver.web:gs-web-app