Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2021-32701 (High) detected in github.com/ory/oathkeeper/pipeline-eb53de71bfdc0bc10448220fda211321b054d811, github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811 #113

Open
mend-for-github.aaakk.us.kg bot opened this issue Jan 9, 2023 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-for-github.aaakk.us.kg
Copy link

mend-for-github.aaakk.us.kg bot commented Jan 9, 2023

CVE-2021-32701 - High Severity Vulnerability

Vulnerable Libraries - github.com/ory/oathkeeper/pipeline-eb53de71bfdc0bc10448220fda211321b054d811, github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811

github.com/ory/oathkeeper/pipeline-eb53de71bfdc0bc10448220fda211321b054d811

A cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests. Inspired by the BeyondCorp / Zero Trust white paper. Written in Go.

Dependency Hierarchy:

  • github.com/ory/oathkeeper/pipeline-eb53de71bfdc0bc10448220fda211321b054d811 (Vulnerable Library)
github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811

A cloud native Identity & Access Proxy / API (IAP) and Access Control Decision API that authenticates, authorizes, and mutates incoming HTTP(s) requests. Inspired by the BeyondCorp / Zero Trust white paper. Written in Go.

Dependency Hierarchy:

  • github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811 (Vulnerable Library)

Found in HEAD commit: 43c00a05bdb772edb5194a57f42ee834b37f3774

Found in base branch: master

Vulnerability Details

ORY Oathkeeper is an Identity & Access Proxy (IAP) and Access Control Decision API that authorizes HTTP requests based on sets of Access Rules. When you make a request to an endpoint that requires the scope foo using an access token granted with that foo scope, introspection will be valid and that token will be cached. The problem comes when a second requests to an endpoint that requires the scope bar is made before the cache has expired. Whether the token is granted or not to the bar scope, introspection will be valid. A patch will be released with v0.38.12-beta.1. Per default, caching is disabled for the oauth2_introspection authenticator. When caching is disabled, this vulnerability does not exist. The cache is checked in func (a *AuthenticatorOAuth2Introspection) Authenticate(...). From tokenFromCache() it seems that it only validates the token expiration date, but ignores whether the token has or not the proper scopes. The vulnerability was introduced in PR ory#424. During review, we failed to require appropriate test coverage by the submitter which is the primary reason that the vulnerability passed the review process.

Publish Date: 2021-06-22

URL: CVE-2021-32701

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: None
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-qvp4-rpmr-xwrr

Release Date: 2021-06-22

Fix Resolution: v0.38.12-beta.1

@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Jan 9, 2023
@mend-for-github.aaakk.us.kg mend-for-github.aaakk.us.kg bot changed the title CVE-2021-32701 (High) detected in github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811 CVE-2021-32701 (High) detected in github.com/ory/oathkeeper/pipeline-eb53de71bfdc0bc10448220fda211321b054d811, github.com/ory/oathkeeper/pipeline/authn-eb53de71bfdc0bc10448220fda211321b054d811 Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants