CVE-2020-26934: phpMyAdmin Cross-site Scripting (XSS)
Summary
CVE-2020-26934: phpMyAdmin Cross-site Scripting (XSS). Affects phpmyadmin/phpmyadmin across 2 version ranges.
>= 4.9.0, < 4.9.6
>= 5.0.0, < 5.0.3
Fixed in 4.9.6 or 5.0.3, depending on the release line you run. How to fix ↓
Also tracked for
- phpmyadmin · Bitnami
- phpmyadmin · Debian:11
The same CVE-2020-26934 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 written in PHP that is used for managing MySQL databases. It provides a web-based interface for users to perform various database management tasks such as creating, modifying, and deleting databases, tables, and records. The vulnerability identified as CVE-2020-26934 affects phpMyAdmin versions before 4.9.6 and 5.x before 5.0.3. This vulnerability allows for cross-site scripting (XSS) attacks through the transformation feature via a crafted link.
Vulnerability Detail
The vulnerability arises due to insufficient input sanitization in the transformation feature of phpMyAdmin. An attacker can exploit this vulnerability by creating a specially crafted link that, when clicked by a user with an active phpMyAdmin session, executes malicious JavaScript code in the context of the user's browser. This can lead to various security risks, including the theft of sensitive information, session hijacking, and unauthorized actions on the affected phpMyAdmin instance.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
>= 4.9.0, < 4.9.64.9.6composer require phpmyadmin/phpmyadmin:4.9.6 -
>= 5.0.0, < 5.0.35.0.3composer require phpmyadmin/phpmyadmin:5.0.3
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 phpMyAdmin is not immediately feasible, a temporary workaround can be implemented by disabling the transformation feature in the phpMyAdmin configuration. This can be done by modifying the configuration file (config.inc.php) and setting the 'AllowArbitraryServer' option to 'false'. However, it is important to note that this workaround may impact the functionality of certain features that rely on the transformation feature.
Conclusion
The phpMyAdmin vulnerability identified as CVE-2020-26934 allows for cross-site scripting (XSS) attacks through the transformation feature. Users are advised to upgrade their phpMyAdmin installation to the recommended versions or apply the provided 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 used for managing MySQL databases. It provides a web-based interface for performing various database management tasks.
Versions of phpMyAdmin before 4.9.6 (for 4.x) and before 5.0.3 (for 5.x) are affected by this vulnerability.
This vulnerability allows for cross-site scripting (XSS) attacks, which can lead to the theft of sensitive information, session hijacking, and unauthorized actions on the affected phpMyAdmin instance.
To fix this vulnerability, it is recommended to upgrade phpMyAdmin to version 4.9.6 or later (for 4.x) or version 5.0.3 or later (for 5.x).
Yes, a temporary workaround is available by disabling the transformation feature in the phpMyAdmin configuration.
Related vulnerabilities
Recent vulnerabilities recorded for phpmyadmin/phpmyadmin.