Summary
GeoNetwork's Elasticsearch-backed search proxy may omit access-control filters when a client request leaves out the query field. An unauthenticated attacker using the public search API could then retrieve indexed metadata that is not intended to be publicly visible.
Affected context
The issue affects GeoNetwork deployments using the Elasticsearch-backed search proxy in the affected release ranges. When a search request omits its query field, the proxy can forward it without applying group visibility, draft exclusion, record ownership, or portal-specific filters.
Exploit preconditions
- Attack surface: GeoNetwork's public search API
- Required access: No authentication is required if the API is publicly reachable
- Trigger point: A search request with an omitted query field
- Why exploitation is possible: The proxy can skip injecting access-control filters before forwarding the request to Elasticsearch
Why this happens
The search proxy does not reliably apply authorization filters when the query field is absent. This is a missing authorization check, mapped to CWE-862, because access to indexed records is not consistently restricted according to visibility, ownership, draft status, and portal policy.
Potential impact
- An attacker could retrieve metadata records that should not be publicly visible.
- Private or draft records may be exposed through the public search API.
- Record ownership and group visibility boundaries may be bypassed.
- The confidentiality of indexed catalog contents may be reduced.
General mitigation guidance
Defensive approaches focus on enforcing authorization independently of optional client-supplied query fields.
- Apply access-control filters on every search path, including requests with missing or empty query fields.
- Use secure-by-default behavior that denies or safely constrains requests when required query data is absent.
- Derive visibility and ownership constraints from trusted server-side identity and policy data rather than client input.
- Restrict access to Elasticsearch so clients cannot bypass the application's authorization layer.
- Apply least-privilege access to search services and index credentials.
How teams detect issues like this
- Review search-proxy code paths for conditional filter injection tied to optional request fields.
- Use static analysis and code review checks to identify search requests that reach Elasticsearch without authorization constraints.
- Test requests with omitted, empty, and malformed query fields against records with different visibility and ownership settings.
- Enforce API policies requiring server-side authorization checks for every search request, regardless of query shape.

