Authentication Bypass Affecting codiad/codiad package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CODIADCODIAD-1065799
  • published28 Jan 2021
  • disclosed28 Jan 2021
  • creditpeng-hui

Introduced: 28 Jan 2021

CVE-2020-23355  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

There is no fixed version for codiad/codiad.

Overview

codiad/codiad is a web-based IDE framework with a small footprint and minimal requirements.

Affected versions of this package are vulnerable to Authentication Bypass. /components/user/class.user.php:Authenticate() is vulnerable to the magic hash problem due to the loose comparison (==), leading to authentication bypass.

If the encrypted hash value for the password forms contain certain formats of magic hash (e.g., 0e123...), another hash value (e.g. 0e234...) can successfully authenticate.

This vulnerability can be avoided by using a strict comparison (===)

CVSS Scores

version 3.1