CVE-2016-2041:
phpMyAdmin Unsafe comparison of XSRF/CSRF token
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.75948%
CWE
Published
5/14/2022
Updated
4/24/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
phpmyadmin/phpmyadmin | composer | >= 4.0, < 4.0.10.13 | 4.0.10.13 |
phpmyadmin/phpmyadmin | composer | >= 4.4, < 4.4.15.3 | 4.4.15.3 |
phpmyadmin/phpmyadmin | composer | >= 4.5, < 4.5.4 | 4.5.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from a non-constant-time comparison between the stored CSRF token ($_SESSION['PMA_token']) and the user-provided token ($_REQUEST['token']) using the '!=' operator in libraries/common.inc.php. This comparison leaks timing information, enabling attackers to infer token values. The patch replaced this comparison with hash_equals(), a constant-time function. While the vulnerable code is not inside a named function (it occurs in the global script flow), the specific line in common.inc.php is the root cause. The entry is structured to highlight the file and context since no named function encapsulates the vulnerable logic.