Allele Security Alert
ASA-2019-00035
Identifier(s)
ASA-2019-00035, PMASA-2019-1, CVE-2019-6799
Title
Arbitrary file read vulnerability
Vendor(s)
The phpMyAdmin Project
Product(s)
phpMyAdmin
Affected version(s)
phpMyAdmin versions from at least 4.0 through 4.8.4
Fixed version(s)
phpMyAdmin 4.8.5
Proof of concept
Unknown
Description
When AllowArbitraryServer configuration set to true, with the use of a rogue MySQL server, an attacker can read any file on the server that the web server’s user can access.
phpMyadmin attempts to block the use of LOAD DATA INFILE, but due to a bug in PHP, this check is not honored. Additionally, when using the ‘mysql’ extension, mysql.allow_local_infile is enabled by default. Both of these conditions allow the attack to occur.
Technical details
Unknown
Credits
Tongqing Zhu (404 Team), Hongkun Zeng, chromium1337, Hanno Böck and Jakub Vrána
Reference(s)
phpMyAdmin – Security – PMASA-2019-1
https://www.phpmyadmin.net/security/PMASA-2019-1/
Deny using mysql extension with mysql.allow_local_infile
https://github.com/phpmyadmin/phpmyadmin/commit/aeac90623e525057a7672ab3d98154b5c57c15ec
Actually set MYSQLI_OPT_LOCAL_INFILE
https://github.com/phpmyadmin/phpmyadmin/commit/c5e01f84ad48c5c626001cb92d7a95500920a900
CVE-2019-6799
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6799
CVE-2019-6799
https://nvd.nist.gov/vuln/detail/CVE-2019-6799
If there is any error in this alert or you wish a comprehensive analysis, let us know.
Last modified: June 2, 2019