Local file exposure through symlinks with UploadDir
A vulnerability was found where a user can specially craft a symlink on disk, to a file which phpMyAdmin is permitted to read but the user is not, which phpMyAdmin will then expose to the user.
We consider this vulnerability to be serious, however due to the mitigation factors the default state is not vulnerable.
1) The installation must be run with UploadDir configured (not the default) 2) The user must be able to create a symlink in the UploadDir 3) The user running the phpMyAdmin application must be able to read the file
All 4.6.x versions (prior to 4.6.4), 4.4.x versions (prior to 188.8.131.52), and 4.0.x versions (prior to 184.108.40.206) are affected
Upgrade to phpMyAdmin 4.6.4, 220.127.116.11, 18.104.22.168, or newer or apply patch listed below.
Thanks to Emanuel Bronshtein @e3amn2l for reporting this vulnerability.
Assigned CVE ids: CVE-2016-6613
CWE ids: CWE-661
The following commits have been made on the 4.0 branch to fix this issue:
The following commits have been made on the 4.4 branch to fix this issue:
The following commits have been made on the 4.6 branch to fix this issue:
For further information and in case of questions, please contact the phpMyAdmin team. Our website is phpmyadmin.net.