CVE-2023-50708
PHP vulnerability analysis and mitigation

Overview

The vulnerability CVE-2023-50708 affects yii2-authclient, an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In versions prior to 2.2.15, the Oauth1/2 state and OpenID Connect nonce parameters are vulnerable to timing attacks due to the use of regular string comparison instead of the secure Yii::$app->getSecurity()->compareString() method (GitHub Advisory).

Technical details

The vulnerability exists in the string comparison implementation for authentication tokens. The affected code uses the PHP strcmp() function to compare authentication tokens in multiple components: OAuth1 state token (OAuth1.php), OAuth2 state token (OAuth2.php), and OpenID Connect nonce value (OpenIdConnect.php). This implementation makes the comparison vulnerable to timing attacks, which could potentially allow attackers to deduce the token values (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 6.1 MEDIUM by GitHub, while NIST assigned it a score of 9.8 CRITICAL (NVD).

Impact

The timing attack vulnerability could potentially allow attackers to bypass authentication mechanisms by predicting or deducing the authentication tokens. This could lead to unauthorized access to protected resources and potential impersonation of legitimate users (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 2.2.15 of yii2-authclient. The fix involves replacing the standard string comparison (strcmp) with Yii's secure string comparison method Yii::$app->getSecurity()->compareString(). No known workarounds are available for users who cannot upgrade (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-21857HIGH8.3
  • PHPPHP
  • redaxo/source
NoYesJan 07, 2026
CVE-2025-61676MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2025-61674MEDIUM6.1
  • PHPPHP
  • october/system
NoYesJan 10, 2026
CVE-2026-21896MEDIUM5.8
  • PHPPHP
  • getkirby/cms
NoYesJan 08, 2026
CVE-2026-22242MEDIUM4.9
  • PHPPHP
  • coreshop/core-shop
NoYesJan 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management