CVE-2023-50708 yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation
CriticalCVSS 9.8
EPSS 0.72%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- PHP
Description
yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth1/2 state and OpenID Connect nonce is vulnerable for a timing attack since it is compared via regular string comparison (instead of Yii::$app->getSecurity()->compareString()). Version 2.2.15 contains a patch for the issue. No known workarounds are available.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| yiiframework yii2-authclient | < 2.2.15 | 2.2.15 | Fixed |
| yiisoft/yii2-authclient(Packagist) | < 2.2.15; <= 2.2.14; = 2.0.0; = 2.0.0-beta +31 more | 2.2.15 | Fixed |
| yiisoft/yii2-authclient | = < 2.2.15 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| yiisoft/yii2-authclient(Packagist) | < 2.2.15 | 2.2.15 |
| yiisoft/yii2-authclient(Packagist) | = 2.0.0 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.0-beta | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.0-rc | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.1 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.2 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.3 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.4 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.5 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.0.6 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.0 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.1 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.2 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.3 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.4 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.5 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.6 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.7 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.1.8 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.0 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.1 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.10 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.11 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.12 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.13 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| yiisoft/yii2-authclient(Packagist) | = 2.2.14 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.2 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.3 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.4 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.5 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.6 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.7 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.8 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | = 2.2.9 | No fix listed |
| yiisoft/yii2-authclient(Packagist) | <= 2.2.14 | No fix listed |
| yiisoft/yii2-authclient | = < 2.2.15 | No fix listed |
| yiiframework yii2-authclient | < 2.2.15 | 2.2.15 |
References
- https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp exploit patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248 issue-tracking patch
- github.com product
- https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158 product
- https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121 product
- https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420 product
- github.com