Skip to content

Cross-site Scripting vulnerability in drag-and-drop upload of phpMyAdmin

Moderate severity GitHub Reviewed Published Feb 13, 2023 to the GitHub Advisory Database • Updated Nov 27, 2023

Package

composer phpmyadmin/phpmyadmin (Composer)

Affected versions

>= 4.3.0, < 4.9.11
>= 5.0, < 5.2.1

Patched versions

4.9.11
5.2.1

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

Published by the National Vulnerability Database Feb 13, 2023
Published to the GitHub Advisory Database Feb 13, 2023
Reviewed Feb 14, 2023
Last updated Nov 27, 2023

Severity

Moderate
5.4
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Weaknesses

CVE ID

CVE-2023-25727

GHSA ID

GHSA-6hr3-44gx-g6wh

Source code

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.