Open Redirect to an Untrusted Site Affecting github.com/oauth2-proxy/oauth2-proxy Open this link in a new tab package, versions <5.1.1


0.0
high
  • Attack Complexity

    Low

  • User Interaction

    Required

  • Confidentiality

    High

  • Integrity

    High

  • Availability

    High

Do your applications use this vulnerable package?

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 applications
  • snyk-id

    SNYK-GOLANG-GITHUBCOMOAUTH2PROXYOAUTH2PROXY-568686

  • published

    7 May 2020

  • disclosed

    7 May 2020

  • credit

    Unknown

How to fix?

Upgrade github.com/oauth2-proxy/oauth2-proxy to version 5.1.1 or higher.

Overview

github.com/oauth2-proxy/oauth2-proxy is a reverse proxy that provides authentication with Google, Github or other providers.

Affected versions of this package are vulnerable to Open Redirect to an Untrusted Site. Users can provide a redirect address for the proxy to send the authenticated user to at the end of the authentication flow. This is expected to be the original URL that the user was trying to access. This redirect URL is checked within the proxy and validated before redirecting the user to prevent malicious actors providing redirects to potentially harmful sites. However, by crafting a redirect URL with HTML encoded whitespace characters the validation could be bypassed and allow a redirect to any URL provided.