Improper Authentication Affecting phpliteadmin package, versions <1.9.7.1-2


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.5% (74th 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 IDSNYK-DEBIAN13-PHPLITEADMIN-5692016
  • published25 Apr 2018
  • disclosed25 Apr 2018

Introduced: 25 Apr 2018

CVE-2018-10362  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade Debian:13 phpliteadmin to version 1.9.7.1-2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream phpliteadmin package and not the phpliteadmin package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

An issue was discovered in phpLiteAdmin 1.9.5 through 1.9.7.1. Due to loose comparison with '==' instead of '===' in classes/Authorization.php for the user-provided login password, it is possible to login with a simpler password if the password has the form of a power in scientific notation (like '2e2' for '200' or '0e1234' for '0'). This is possible because, in the loose comparison case, PHP interprets the string as a number in scientific notation, and thus converts it to a number. After that, the comparison with '==' casts the user input (e.g., the string '200' or '0') to a number, too. Hence the attacker can login with just a '0' or a simple number he has to brute force. Strong comparison with '===' prevents the cast into numbers.