Authorization Bypass Affecting github.com/oauth2-proxy/oauth2-proxy/providers package, versions >=7.0.0 <7.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.11% (45th percentile)

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-GITHUBCOMOAUTH2PROXYOAUTH2PROXYPROVIDERS-1089458
  • published 29 Mar 2021
  • disclosed 29 Mar 2021
  • credit @bohrasd

How to fix?

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

Overview

Affected versions of this package are vulnerable to Authorization Bypass. The --gitlab-group flag for group-based authorization in the GitLab provider stopped working whereby, regardless of the flag settings, authorization was not restricted. Furthermore, for any authenticated users, groups that were set in --gitlab-group were added to the X-Forwarded-Groups header to the upstream application.

CVSS Scores

version 3.1
Expand this section

Snyk

5.5 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

5.5 medium