QID 730737
Date Published: 2023-03-03
QID 730737: PhpMyAdmin Cross-Site Scripting (XSS) Vulnerability (PMASA-2023-1)
PhpMyAdmin is a free software tool written in PHP and intended to handle the administration of MySQL over the Internet.
An XSS vulnerability has been discovered where an authenticated user can trigger an XSS attack by uploading a specially-crafted .sql file through the drag-and-drop interface.
Affected Versions:
phpMyAdmin versions from 4.3.0 prior to 4.9.1
phpMyAdmin versions from 5.0 prior to 5.2.1
QID Detection Logic (unauthenticated):
This QID sends a HTTP GET request to "doc/html/index.html" and determines the vulnerable version of phpMyAdmin running on the target system.
Successful exploitation of this vulnerability may allow an authenticated attacker to execute arbitrary JavaScript code on the target system.
Solution
Users are advised to upgrade to phpMyAdmin 5.2.1 or 4.9.11 or the latest version.Workaround:
Disable the configuration directive `$cfg['enable_drag_drop_import']`, users will be unable to use the drag and drop upload which would protect against the vulnerability.
Disable the configuration directive `$cfg['enable_drag_drop_import']`, users will be unable to use the drag and drop upload which would protect against the vulnerability.
Vendor References
- PMASA-2023-1 -
www.phpmyadmin.net/security/PMASA-2023-1/
CVEs related to QID 730737
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| PMASA-2023-1 |
|