Zen Cart v1.3.9f (typefilter) Local File Inclusion Vulnerability

Title: Zen Cart v1.3.9f (typefilter) Local File Inclusion Vulnerability
Advisory ID: ZSL-2010-4967
Type: Local
Impact: System Access, Exposure of System Information, Exposure of Sensitive Information
Risk: (3/5)
Release Date: 01.10.2010
Zen Cart is an online store management system. It is PHP-based, using a MySQL database and HTML components. Support is provided for numerous languages and currencies, and it is freely available under the GNU GPL.
Zen Cart v1.3.9f suffers from a file inlcusion vulnerability (LFI) / file disclosure vulnerability (FD) when input passed thru the "typefilter" parameter to index.php is not properly verified before being used to include files. This can be exploited to include files from local resources with directory traversal attacks and URL encoded NULL bytes.


if (isset($_GET['typefilter'])) $typefilter = $_GET['typefilter'];


Zen Ventures, LLC - http://www.zen-cart.com
Affected Version
Tested On
Microsoft Windows XP Professional SP3 (EN)
PHP 5.3.0
MySQL 5.1.36
Apache 2.2.11 (Win32)
Vendor Status
[19.08.2010] Vulnerability discovered.
[22.08.2010] Vendor contacted.
[22.08.2010] Vendor responds asking more details.
[23.08.2010] Sent PoC files to vendor.
[25.08.2010] Vendor confirms vulnerability.
[02.09.2010] Asked vendor for patch release date.
[08.09.2010] Vendor states approximately 7 days to patch release.
[20.09.2010] Asked vendor for status.
[24.09.2010] Asked vendor for status again because of no reply from previous mail.
[28.09.2010] Vendor informed about advisory release date.
[29.09.2010] Vendor releases version 1.3.9g to address this issue.
[01.10.2010] Public advisory released.
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
[1] http://www.zen-cart.com/forum/showthread.php?t=165017
[2] http://www.exploit-db.com/exploits/15166/
[3] http://securityreason.com/wlb_show/WLB-2010100007
[4] http://www.packetstormsecurity.org/filedesc/ZSL-2010-4967.txt.html
[5] http://www.securityfocus.com/bid/43628
[6] http://secunia.com/advisories/41666
[7] http://osvdb.org/show/osvdb/68300
[8] http://www.phc.ir/thread3366.html
[01.10.2010] - Initial release
[02.10.2010] - Added reference [7]
[04.10.2010] - Added reference [8]
Zero Science Lab

Web: http://www.zeroscience.mk
e-mail: lab@zeroscience.mk