yiisoft/yii2-authclient's Oauth2 PKCE implementation is vulnerable

Description

Impact

What kind of vulnerability is it? Who is impacted?

Original Report:

> The Oauth2 PKCE implementation is vulnerable in 2 ways:
> 1. The authCodeVerifier should be removed after usage (similar to 'authState')
> 2. There is a risk for a "downgrade attack" if PKCE is being relied on for CSRF protection.

Patches

Has the problem been patched? What versions should users upgrade to?

2.2.15

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

not known yet.

References

Are there any links users can visit to find out more?

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2023-12-18 19:34:20 UTC
Updated
2023-12-22 22:24:11 UTC
GitHub reviewed
2023-12-18 19:34:20 UTC
NVD published
2023-12-22

EPSS Score

Score Percentile
0.15% 35.61%

CVSS Scores

Base score Version Severity Vector
6.8 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-287 Improper Authentication
CWE-347 Improper Verification of Cryptographic Signature

Credits

  • rhertogh (reporter)

Affected packages (1)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
composer yiisoft/yii2-authclient < 2.2.15 2.2.15

References

cvelogic Threat Intelligence