In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade github.com/oauth2-proxy/oauth2-proxy/pkg/requests/util
to version 7.11.0 or higher.
Affected versions of this package are vulnerable to User Impersonation due to using the skip_auth_routes
configuration option with regex patterns. An attacker can gain unauthorized access to protected resources by crafting URLs with query parameters that match overly broad or improperly anchored regex patterns configured in skip_auth_routes
.
Note:
This is only exploitable if the deployment uses skip_auth_routes
with regex patterns that include wildcards or are not properly anchored.
This vulnerability can be mitigated by auditing all skip_auth_routes
configurations for overly permissive patterns, replacing wildcard patterns with exact path matches, ensuring regex patterns are properly anchored (starting with ^
and ending with $
), or implementing custom validation that strips query parameters before regex matching.