OAuth2 Proxy may trust a client-supplied X-Forwarded-Uri header when --reverse-p...

@cR0w@infosec.exchange

OAuth2 Proxy may trust a client-supplied X-Forwarded-Uri header when --reverse-proxy is enabled and --skip-auth-route or --skip-auth-regex is configured. An attacker can spoof this header so OAuth2 Proxy evaluates authentication and skip-auth rules against a different path than the one actually sent to the upstream application.

This can result in an unauthenticated remote attacker bypassing authentication and accessing protected routes without a valid session.

github.com/oauth2-proxy/oauth2