CVE-2023-50708 yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect implementation

Medium 6.1 Published Updated

Attackers can exploit timing side-channels in OAuth and OpenID Connect state/nonce validation to bypass security checks in the Yii2 authentication extension.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-50708?

CVE-2023-50708 is a medium-severity vulnerability in yiisoft yii2-authclient, published on 22 Dec 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-203

Which versions are affected by CVE-2023-50708?

2 open source packages ship an affected version, including yiisoft/yii2-authclient. It affects 1 product.

PackageAffectedFixed in
yiisoft/yii2-authclient PackagistAll versions2.2.15
yiisoft/yii2-authclient PackagistAll versions2.2.15

Products include Yiiframework Yii2-Authclient.

How do I fix CVE-2023-50708?

Upgrade yiisoft/yii2-authclient to 2.2.15 or later.

Is CVE-2023-50708 being exploited?

There is no known exploitation of CVE-2023-50708 in the wild and no public exploit code.

Sources

Also known as GHSA-w8vh-p74j-x9xp.

Is CVE-2023-50708 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free