Cross-Site Scripting (XSS) Vulnerability in phpMyAdmin - CVE-2014-6300
Summary
CVE-2014-6300: Cross-site scripting (XSS) vulnerability in the micro history implementation in phpMyAdmin 4.0.x before 4.0.10.3, 4.1.x before 4.1.14.4, and 4.2.x before 4.2.8.1 allows remote attackers to inject arbitrary web script or... Affects phpmyadmin versions < 4:4.2.8.1-1. Fixed in 4:4.2.8.1-1. How to fix ↓
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 widely-used open-source tool for managing MySQL databases through a web interface. It allows users to perform various database operations such as creating, modifying, and deleting databases and tables, as well as executing SQL queries. Despite its robust functionality, phpMyAdmin has faced security challenges, including vulnerabilities that can be exploited by attackers to gain unauthorized access or manipulate data.
Vulnerability Detail
The vulnerability identified as CVE-2014-6300 is a Cross-Site Scripting (XSS) flaw present in the micro history implementation of phpMyAdmin versions 4.0.x prior to 4.0.10.3, 4.1.x prior to 4.1.14.4, and 4.2.x prior to 4.2.8.1. This vulnerability allows remote attackers to inject arbitrary web scripts or HTML into the application. The exploitation of this vulnerability can lead to a Cross-Site Request Forgery (CSRF) attack, enabling attackers to create a root account by crafting a malicious URL. The issue is primarily associated with the handling of user input in the js/ajax.js file, which fails to properly sanitize input, allowing for script injection.
How To Fix
Minimum fixed version
4:4.2.8.1-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade phpmyadmin
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate upgrading is not feasible, a temporary workaround is to restrict access to the phpMyAdmin interface by implementing IP whitelisting or using a web application firewall (WAF) to filter out malicious requests. However, this is not a permanent solution and should be followed by an upgrade as soon as possible.
Conclusion
CVE-2014-6300 is a significant XSS vulnerability in phpMyAdmin that can lead to serious security risks if not addressed. Users are strongly advised to upgrade to the latest versions to protect their applications from potential exploitation. Implementing workarounds can provide temporary relief, but upgrading remains the best course of action.
See every vulnerability recorded for phpmyadmin →
FAQ
CVE-2014-6300 is a Cross-Site Scripting (XSS) vulnerability in phpMyAdmin that allows attackers to inject malicious scripts into the application.
The affected versions include phpMyAdmin 4.0.x before 4.0.10.3, 4.1.x before 4.1.14.4, and 4.2.x before 4.2.8.1.
You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. You can also check your phpMyAdmin version against the affected versions listed.
Failing to fix this vulnerability can lead to unauthorized access to your database, data manipulation, and potential compromise of sensitive information.
Yes, you can implement IP whitelisting or use a web application firewall (WAF) to filter out malicious requests as a temporary measure.
Related vulnerabilities
Recent vulnerabilities recorded for phpmyadmin.