phpMyAdmin SQL Injection
Impact
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
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.9.0 before 4.9.5Ecosystem versions | 4.9.5 |
| From 5.0.0 before 5.0.2Ecosystem versions | 5.0.2 |
Version evidence: OSV · GHSA-h65r-8fp8-w7cx
View original version evidence (9 explicit versions)
Original source description
In phpMyAdmin 4.x before 4.9.5 and 5.x before 5.0.2, a SQL injection vulnerability was found in retrieval of the current username (in libraries/classes/Server/Privileges.php and libraries/classes/UserPassword.php). A malicious user with access to the server could create a crafted username, and then trick the victim into performing specific actions with that user account (such as editing its privileges).
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2020-10804
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/phpmyadmin/phpmyadmin/CVE-2020-10804.yaml
- Source reference github.com/phpmyadmin/composer
- Source reference lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAVW3SUKWR5RF5LZ6SARCYOWBIFUIWOJ
- Source reference lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BUG3IRITW2LUBGR5LSQMP7MVRTELHZJK
- Source reference lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZI6EQVRRIG252DY3MBT33BJVCSYDMQO
- Security advisory www.phpmyadmin.net/security/PMASA-2020-2
- Security advisory lists.opensuse.org/opensuse-security-announce/2020-03/msg00046.html
- Security advisory lists.opensuse.org/opensuse-security-announce/2020-03/msg00050.html
- Security advisory lists.opensuse.org/opensuse-security-announce/2020-11/msg00005.html