.. / CVE-2019-6799

Exploit for phpMyAdmin <4.8.5 - Local File Inclusion (CVE-2019-6799)

Description:

phpMyAdmin before 4.8.5 is susceptible to local file inclusion. When the AllowArbitraryServer configuration setting is set to true, an attacker can read, with the use of a rogue MySQL server, any file on the server that the web server’s user can access. This is related to the mysql.allow_local_infile PHP configuration, and the inadvertent ignoring of options(MYSQLI_OPT_LOCAL_INFIL calls.

Nuclei Template

View the template here CVE-2019-6799.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2019/CVE-2019-6799.yaml
Copy

References:

https://github.com/vulnspy/phpmyadmin-4.8.4-allowarbitraryserver
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6799
https://github.com/phpmyadmin/phpmyadmin/commit/828f740158e7bf14aa4a7473c5968d06364e03a2
https://nvd.nist.gov/vuln/detail/CVE-2019-6799
https://paper.seebug.org/1112/#_4
https://github.com/rmb122/rogue_mysql_server