What this actually is.
Technical background, root cause, and affected surface.
A SQL injection (SQLi) refers to an injection attack wherein an attacker can execute malicious SQL statements that control a web application’s database server. Missing functional level access flaws allow attackers to access unauthorized functionality. SQL injection (SQLi) vulnerability was identified with the conjunction of missing function level access in the latest version of the phpMyAdmin database. The vulnerability affects http://localhost/phpmyadmin/server_privileges.php, username.
*Affected Products: phpMyAdmin 4.x versions prior to 4.9.4 are affected, phpMyAdmin 5.x version 5.0.0
- Vendor
- PhpMyAdmin
- Affected Product
- See Full List Below*
- CVE
- CVE-2020-5504
- Securin ID
- 2019-CSW-12-1032
- Status
- Fixed
- Date
- December 12, 2019
- Severity
- High
- CVSS Score
- 8.8
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CWE
- CWE-89
From one request
to root shell.
Reproduced in a sandboxed environment. Requires only LAN or WiFi adjacency.
Difference in the responses of the previous request and the current request confirms the username field is vulnerable to SQL injection.
What an attacker does to you.
Post-exploitation outcomes mapped to CVSS impact metrics.
An authenticated user who has the privileges to one database at least can retrieve the contents of the databases in the MySQL DBMS server. Under the right circumstances, SQLi can also be used by an attacker to execute OS commands, which may then be used to escalate an attack even further.
Fix it. In this order.
A runbook, not a checklist. Sequence matters — assume compromise before you act.
Download the following patches advised as per the vendor.
For 4.8, 4.9 versions: upgrade to version 4.9.4 or newer, 5.x: upgrade to version 5.0.1, or newer, or apply the patch below.
Older versions: https://gist.github.com/ibennetch/4c1b701f4b766e4dd5556e8e26200b6b
disclose@securin.ioVendors moved in days.
Attackers in hours.
Reconstructed from vendor advisories, CISA bulletins, and Securin research records.
Vulnerability Discovered in PhpMyAdmin
Vulnerability Reported to Vendor
Vendor Responded
CVE Assigned
Vendor Released Fix
Disclosed 28 days after discovery
Cite, verify, go deeper.
Primary sources — NVD, CISA KEV, and machine-readable IoC feed.