Horizon Alert
Summary of the vulnerability and why it matters
This advisory concerns a vulnerability in OAuth2 Proxy, a tool used to manage authentication for web applications. The issue allows unauthenticated attackers to bypass authentication by manipulating a specific header, potentially granting unauthorized access to protected resources. The main concern is confirming relevance and exposure within our environment.
- Bypass authentication by faking a trusted request.
- It affects a common authentication gateway.
- Confirm if this gateway is used internally.
Attack Path
How an attacker could exploit the issue
An attacker can bypass authentication by sending a specially crafted request to OAuth2 Proxy. The proxy incorrectly trusts a `X-Forwarded-Uri` header, allowing the attacker to specify a path that matches an allow-listed route. This causes the proxy to skip authentication for a protected upstream path, granting unauthorized access.
- No authentication or network access required.
- Spoofed `X-Forwarded-Uri` header to match allow-list.
- Bypasses authentication to protected resources.
Live Threat
Current exploitation, exposure, and threat context
When OAuth2 Proxy is configured with its default reverse proxy settings, it may incorrectly trust any client's `X-Forwarded-Uri` header. This allows an unauthenticated user to bypass authentication by providing a spoofed URI that matches an allow-listed route, while still accessing a protected upstream resource.
- Protected upstream paths.
- Clients send spoofed URI headers.
- Unauthenticated access to protected resources.
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners and infrastructure teams are likely responsible for addressing this authentication bypass vulnerability in OAuth2 Proxy. The initial step involves identifying all instances of the affected technology, verifying their reachability from external networks, and determining their business criticality. Once identified, the accountable owner should be engaged to plan remediation, prioritizing systems based on their risk exposure.
- Application or Platform Ownership
- Verify external reachability and business criticality.
- Plan risk-based remediation.