CVE-2014-8326: phpMyAdmin Implementation XSS Vulnerability on Server Monitor Page
Summary
CVE-2014-8326: phpMyAdmin Implementation XSS Vulnerability on Server Monitor Page. Affects phpmyadmin/phpmyadmin across 3 version ranges.
>= 4.0.0, < 4.0.10.5
>= 4.1.0, < 4.1.14.6
>= 4.2.0, < 4.2.10.1
Fixed in 4.0.10.5, 4.1.14.6 or 4.2.10.1, depending on the release line you run. How to fix ↓
Also tracked for
- phpmyadmin · Debian:11
The same CVE-2014-8326 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
phpMyAdmin is a popular open-source tool for managing MySQL databases. It provides a web-based interface that allows users to perform various database management tasks. This vulnerability affects versions 4.0.x, 4.1.x, and 4.2.x of phpMyAdmin. The vulnerability allows remote authenticated users to inject arbitrary web script or HTML through crafted database or table names. The issue is present in the code responsible for SQL debug output and the server monitor page.
Vulnerability Detail
The vulnerability in phpMyAdmin allows an attacker with authenticated access to inject malicious script or HTML code through specially crafted database or table names. This can lead to cross-site scripting (XSS) attacks, where the injected code is executed in the context of other users accessing the affected pages. The impact of this vulnerability can range from stealing sensitive information, such as login credentials, to performing actions on behalf of the victim user.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 4.0.0, < 4.0.10.54.0.10.5composer require phpmyadmin/phpmyadmin:4.0.10.5 -
>= 4.1.0, < 4.1.14.64.1.14.6composer require phpmyadmin/phpmyadmin:4.1.14.6 -
>= 4.2.0, < 4.2.10.14.2.10.1composer require phpmyadmin/phpmyadmin:4.2.10.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If upgrading to the latest version is not immediately possible, a temporary workaround can be implemented by sanitizing user input for database and table names. This can be done by implementing proper input validation and filtering to prevent the injection of malicious code. Here is an example of how to sanitize user input in PHP:
$databaseName = filter_var($_POST['database_name'], FILTER_SANITIZE_STRING);
$tableName = filter_var($_POST['table_name'], FILTER_SANITIZE_STRING);
By using the FILTER_SANITIZE_STRING filter, any potentially harmful characters will be removed from the input.
Conclusion
The phpMyAdmin implementation XSS vulnerability on the server monitor page can allow remote authenticated users to inject arbitrary web script or HTML. This can lead to cross-site scripting attacks and potential unauthorized access to sensitive information. It is recommended to upgrade to the latest version of phpMyAdmin (4.0.10.5, 4.1.14.6, or 4.2.10.1) to fix this vulnerability. If immediate upgrade is not possible, implementing proper input validation and filtering can serve as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for phpmyadmin/phpmyadmin →
FAQ
phpMyAdmin is an open-source tool for managing MySQL databases. It provides a web-based interface that allows users to perform various database management tasks.
Versions 4.0.x, 4.1.x, and 4.2.x of phpMyAdmin are affected by this vulnerability.
The vulnerability allows remote authenticated users to inject arbitrary web script or HTML, potentially leading to cross-site scripting (XSS) attacks. This can result in the theft of sensitive information or unauthorized actions on behalf of the victim user.
To fix this vulnerability, it is recommended to upgrade to the latest version of phpMyAdmin (4.0.10.5, 4.1.14.6, or 4.2.10.1). This will patch the vulnerability and protect against potential attacks.
If upgrading to the latest version is not immediately possible, a temporary workaround can be implemented by sanitizing user input for database and table names. This involves proper input validation and filtering to prevent the injection of malicious code.
References
Related vulnerabilities
Recent vulnerabilities recorded for phpmyadmin/phpmyadmin.