An issue was discovered in phpMyAdmin involving the %u username replacement functionality of the SaveDir and UploadDir features. When the username substitution is configured, a specially-crafted user name can be used to circumvent restrictions to traverse the file system. All 4.6.x versions (prior to 4.6.4), 4.4.x versions (prior to 4.4.15.8), and 4.0.x versions (prior to 4.0.10.17) are affected.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://www.phpmyadmin.net/security/PMASA-2016-37 | patch vendor advisory |
https://lists.debian.org/debian-lts-announce/2018/07/msg00006.html | mailing list |
http://www.securityfocus.com/bid/94366 | vdb entry third party advisory |
https://security.gentoo.org/glsa/201701-32 | vendor advisory |