Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin
Date: 2023-02
Affected: composer/phpmyadmin/phpmyadmin, composer/phpmyadmin/phpmyadmin
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2023-25727
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):