WampServer <= 2.2c (lang) Remote Cross-Site Scripting Vulnerability

Title: WampServer <= 2.2c (lang) Remote Cross-Site Scripting Vulnerability
Advisory ID: ZSL-2012-5072
Type: Remote
Impact: Cross-Site Scripting
Risk: (3/5)
Release Date: 17.02.2012
Summary
WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database.
Description
WampServer is vulnerable to cross-site scripting vulnerability. This issue is due to the application's failure to properly sanitize user-supplied input thru the 'lang' parameter (GET) in index.php script. An attacker may leverage any of the cross-site scripting issues to have arbitrary script code executed in the browser of an unsuspecting user in the context of the affected site. This may facilitate the theft of cookie-based authentication credentials, phishing as well as other attacks.

--------------------------------------------------------------------------------

/index.php:
----------------
265: if (isset ($_GET['lang']))
266: {
267: $langue = $_GET['lang'];
268: }

--------------------------------------------------------------------------------

Vendor
Alter Way - http://www.wampserver.com
Affected Version
<= 2.2c (32/64bit)
Tested On
Microsoft Windows XP Professional SP3 (EN) 32bit
Microsoft Windows 7 Ultimate SP1 (EN) 64bit
Vendor Status
[13.02.2012] Vulnerability discovered.
[16.02.2012] Vendor notified of the vulnerability.
[17.02.2012] Public security advisory released.
[20.02.2012] Vendor releases version 2.2d.
PoC
wampserver_xss.txt
Credits
Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>
References
[1] http://www.zeroscience.mk/en/vulnerabilities/ZSL-2010-4926.php
[2] http://packetstormsecurity.org/files/109857
[3] http://www.securityfocus.com/bid/52054
[4] http://cxsecurity.com/issue/WLB-2012020150
[5] http://xforce.iss.net/xforce/xfdb/56417
Changelog
[17.02.2012] - Initial release
[18.02.2012] - Added reference [4]
[21.02.2012] - Added reference [5]
[07.03.2012] - Added vendor status.
Contact
Zero Science Lab

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