Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in openshift/oauth-proxy. The -skip-auth-regex authentication exemption check matches patterns against the percent-decoded request path (req.URL.Path), while the reverse-proxy director forwards the raw, still-encoded RequestURI to the upstream. An unauthenticated remote attacker can send a request whose path contains a percent-encoded traversal sequence (e.g. /whitelisted/%2e%2e/protected), which matches the skip-auth whitelist on the decoded path but is resolved by traversal-normalizing upstream services (e.g. nginx, which decodes and resolves percent-encoded dot segments by default) to a protected path outside the whitelisted prefix, bypassing authentication and gaining unauthenticated access to resources the operator intended to protect. Exploitation requires the operator to have configured -skip-auth-regex (or its alias -bypass-auth-for) with an anchor-shaped whitelist pattern and an upstream that resolves percent-encoded dot segments; deployments authenticating all paths are unaffected.