GeoServer Missing Authorization on REST API Index
geoserver
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver.web:gs-web-app Maven |
|
|
| org.geoserver:gs-rest Maven |
|
geoserver
| Product | Affected | Fixed in |
|---|---|---|
| org.geoserver.web:gs-web-app Maven |
|
|
| org.geoserver:gs-rest Maven |
|
|
GeoServer is an open source server that allows users to share and edit geospatial data. It is possible to bypass the default REST API security and access the index page. The REST API security handles rest and its subpaths but not rest with an extension (e.g., rest.html). The REST API index can disclose whether certain extensions are installed. This vulnerability is fixed in 2.26.3 and 2.25.6. As a workaround, in ${GEOSERVER_DATA_DIR}/security/config.xml, change the paths for the rest filter to /rest.*,/rest/** and change the paths for the gwc filter to /gwc/rest.*,/gwc/rest/** and restart GeoServer.
From the CVE record · GitHub_M
GeoServer’s default REST API security does not cover REST paths with an extension, such as rest.html. An attacker who can reach such a path can bypass the default security and view the REST API index, which may reveal whether certain extensions are installed. No user interaction is described.
Operators running Maven packages org.geoserver.web:gs-web-app or org.geoserver:gs-rest in versions below 2.25.6 or from 2.26.0 up to, but not including, 2.26.3 should check their deployments.