CVE-2023-50708: yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.37915%
CWE
Published
12/18/2023
Updated
12/22/2023
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
yiisoft/yii2-authclient | composer | <= 2.2.14 | 2.2.15 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using strcmp()
for security-sensitive comparisons of OAuth1/OAuth2 'state' and OpenID Connect 'nonce' parameters. The commit diff shows replacements of strcmp()
with Yii's timing-safe compareString()
in these exact locations. The vulnerability report explicitly identifies these three comparison points as vulnerable due to their use of non-constant-time string comparison, which allows potential timing attacks. The high confidence comes from direct code evidence in the patches and explicit advisory references to these specific code locations.