PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-23355: 
PHP vulnerability analysis and mitigation

Overview

Codiad 2.8.4 contains a vulnerability in the authentication mechanism within /componetns/user/class.user.php:Authenticate() function that is susceptible to magic hash authentication bypass (NVD). The vulnerability was discovered and disclosed in January 2021.

Technical details

The vulnerability stems from the use of loose comparison (==) in the authentication process when comparing password hashes. If the encrypted hash value for passwords forms certain formats of magic hashes (e.g., 0e123...), the authentication can be bypassed. This occurs because PHP's loose comparison treats strings beginning with '0e' followed by numbers as scientific notation, potentially leading to false positive matches (GitHub Issue).

Impact

The vulnerability allows an attacker to bypass authentication controls by exploiting the magic hash comparison weakness. A successful exploit could enable unauthorized access to the application with valid user credentials.

Exploitability

The vulnerability can be exploited by crafting specific password inputs that generate magic hash values matching the format of stored password hashes in the system. When these values are compared using loose comparison, they may be evaluated as equal even though they represent different passwords.

Mitigation and workarounds

The vulnerability can be mitigated by implementing strict comparison (=) instead of loose comparison () when comparing password hashes. Additionally, upgrading to a patched version of Codiad that addresses this vulnerability is recommended.

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qcx-mjf6-48vjHIGHN/A
  • PHP logoPHP
  • craftcms/commerce-mollie
NoYesOct 23, 2026
GHSA-5v62-pcq7-fxj9LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-hvp5-pwxx-2752LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-mp59-9rf5-93wrMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-xpg7-m6gm-4xfhMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 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