{"id":"CVE-2023-50708","published":"2023-12-22T18:25:01Z","modified":"2024-08-02T22:16:47Z","title":"yii2-authclient vulnerable to possible timing attack on string comparison in OAuth1, OAuth2 and OpenID Connect…","vendor":"yiisoft","product":"yii2-authclient","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00716,"percentile":0.54682,"provenance":"source"},"cwes":[{"id":"CWE-203","name":"Observable Discrepancy"}],"references":[{"url":"https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-w8vh-p74j-x9xp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420","tags":["x_refsource_MISC"]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"yiisoft","affectedVersions":[{"vendor":"yiisoft","product":"yii2-authclient","versions":["< 2.2.15"]}],"affected":[{"ecosystem":"Packagist","package":"yiisoft/yii2-authclient","vulnerableRanges":["<2.2.15"],"patched":["2.2.15"],"from":["GHSA-w8vh-p74j-x9xp"],"provenance":"source"}],"summary":{"text":"The yii2-authclient extension for the Yii 2.0 framework, prior to version 2.2.15, compares the OAuth1/OAuth2 state and OpenID Connect nonce values with ordinary string comparison rather than a constant-time comparison, which is an observable timing discrepancy. An unauthenticated network attacker can exploit this through repeated requests that measure response timing, but only under high attack complexity and with a victim user required to interact (UI:R).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:49Z"},"euvd":{"id":"EUVD-2023-3310","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yiisoft-yii2-authclient-cve-2023-50708","children":[{"from":"CVE-2023-50708","to":"CVE-2023-50714","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/OAuth2.php"],"commits":["https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248","https://github.com/yiisoft/yii2-authclient/commit/721ed974bc44137437b0cdc8454e137fff8db213"],"basis":"shared function","functions":["fetchAccessToken"]}]}]}}