Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin
Impact
In phpMyAdmin before 4.9.11 and 5.x before 5.2.1, an authenticated user can trigger Cross-site Scripting (XSS) by uploading a crafted .sql file through the drag-and-drop interface. By disabling 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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 4.3.0 before 4.9.11Ecosystem versions | 4.9.11 |
| From 5.0 before 5.2.1Ecosystem versions | 5.2.1 |
Version evidence: OSV · GHSA-6hr3-44gx-g6wh
View original version evidence (41 explicit versions)
Original source description
In phpMyAdmin before 4.9.11 and 5.x before 5.2.1, an authenticated user can trigger Cross-site Scripting (XSS) by uploading a crafted .sql file through the drag-and-drop interface. By disabling 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2023-25727
- Patch github.com/phpmyadmin/phpmyadmin/commit/53f70fd7f3b388639922e6cc1ca51fbe890c91cc
- Patch github.com/phpmyadmin/phpmyadmin/commit/efa2406695551667f726497750d3db91fb6f662e
- Source reference github.com/phpmyadmin/composer
- Security advisory www.phpmyadmin.net/security/PMASA-2023-1