phpMyAdmin SQL injection in user accounts page
Impact
In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page. A malicious user could inject custom SQL in place of their own username when creating queries to this page. An attacker must have a valid MySQL account to access the server.
Source excerpt · OSVAn attacker must have a valid MySQL account to access the server.
Affected 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.0.0 before 4.9.4Ecosystem versions | 4.9.4 |
| From 5.0.0 before 5.0.1Ecosystem versions | 5.0.1 |
Version evidence: OSV · GHSA-fgj8-93xx-f6g6
View original version evidence (46 explicit versions)
Original source description
In phpMyAdmin 4 before 4.9.4 and 5 before 5.0.1, SQL injection exists in the user accounts page. A malicious user could inject custom SQL in place of their own username when creating queries to this page. An attacker must have a valid MySQL account to access the server.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2020-5504
- Security advisory cybersecurityworks.com/zerodays/cve-2020-5504-phpmyadmin.html
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-5504.yaml
- Security advisory github.com/MarkLee131/awesome-web-pocs/blob/main/CVE-2020-5504.md
- Source reference github.com/phpmyadmin/composer
- Source reference lists.debian.org/debian-lts-announce/2020/01/msg00011.html
- Security advisory www.phpmyadmin.net/security/PMASA-2020-1
- Security advisory lists.opensuse.org/opensuse-security-announce/2020-01/msg00024.html