CVE-2021-21411

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21411
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-21411.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-21411
Aliases
Related
  • GHSA-652x-m2gr-hppm
Published
2021-03-26T21:15:13Z
Modified
2025-01-08T10:32:53.593885Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

OAuth2-Proxy is an open source reverse proxy that provides authentication with Google, Github or other providers. The --gitlab-group flag for group-based authorization in the GitLab provider stopped working in the v7.0.0 release. Regardless of the flag settings, authorization wasn't restricted. Additionally, any authenticated users had whichever groups were set in --gitlab-group added to the new X-Forwarded-Groups header to the upstream application. While adding GitLab project based authorization support in #630, a bug was introduced where the user session's groups field was populated with the --gitlab-group config entries instead of pulling the individual user's group membership from the GitLab Userinfo endpoint. When the session groups where compared against the allowed groups for authorization, they matched improperly (since both lists were populated with the same data) so authorization was allowed. This impacts GitLab Provider users who relies on group membership for authorization restrictions. Any authenticated users in your GitLab environment can access your applications regardless of --gitlab-group membership restrictions. This is patched in v7.1.0. There is no workaround for the Group membership bug. But --gitlab-project can be set to use Project membership as the authorization checks instead of groups; it is not broken.

References

Affected packages

Git / github.com/oauth2-proxy/oauth2-proxy

Affected ranges

Type
GIT
Repo
https://github.com/oauth2-proxy/oauth2-proxy
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

v0.*

v0.1

v1.*

v1.0
v1.1
v1.1.1

v2.*

v2.0
v2.0.1
v2.1
v2.2

v3.*

v3.0.0
v3.1.0
v3.2.0

v4.*

v4.0.0
v4.1.0

v5.*

v5.0.0
v5.1.0

v6.*

v6.0.0
v6.1.0
v6.1.1

v7.*

v7.0.0
v7.0.1