GeoServer Missing Authorization on REST API Index
Moderate severity
GitHub Reviewed
Published
Jun 10, 2025
in
geoserver/geoserver
•
Updated Jun 10, 2025
Description
Published by the National Vulnerability Database
Jun 10, 2025
Published to the GitHub Advisory Database
Jun 10, 2025
Reviewed
Jun 10, 2025
Last updated
Jun 10, 2025
Summary
It is possible to bypass the default REST API security and access the index page.
Details
The REST API security handles
rest
and its subpaths but notrest
with an extension (e.g.,rest.html
).Impact
The REST API index can disclose whether certain extensions are installed.
Workaround
In
${GEOSERVER_DATA_DIR}/security/config.xml
, change the paths for therest
filter to/rest.*,/rest/**
and change the paths for thegwc
filter to/gwc/rest.*,/gwc/rest/**
and restart GeoServer.References
https://osgeo-org.atlassian.net/browse/GEOS-11664
https://osgeo-org.atlassian.net/browse/GEOS-11776
geoserver/geoserver#8170
References