backupDB() v1.2.7a (onlyDB) Remote XSS Vulnerability

2012-05-16T00:00:00
ID ZSL-2012-5089
Type zeroscience
Reporter Gjoko Krstic
Modified 2012-05-16T00:00:00

Description

Title: backupDB() v1.2.7a (onlyDB) Remote XSS Vulnerability
Advisory ID: ZSL-2012-5089
Type: Remote
Impact: Cross-Site Scripting
Risk: (2/5)
Release Date: 16.05.2012

Summary

backupDB() is a PHP script that backs up MySQL tables and databases to a file (uncompressed, gzip, bzip2) for easy daily backup.

Description

backupDB is prone to a cross-site scripting vulnerability. This issue is due to a failure in the application to properly sanitize user-supplied input to the 'onlyDB' parameter of the 'backupDB.php' script. Attackers can exploit this weakness to execute arbitrary HTML and script code in a user's browser session.

Vendor

SiliSoftware - <http://www.silisoftware.com>

Affected Version

1.2.7a-201108021626

Tested On

Microsoft Windows XP Professional SP3 (EN)
Apache 2.2.21
PHP 5.3.8
MySQL 5.5.20

Vendor Status

N/A

PoC

backupdb_xss.txt

Credits

Vulnerability discovered by Gjoko Krstic - <gjoko@zeroscience.mk>

References

[1] <http://cxsecurity.com/issue/WLB-2012050119>
[2] <http://packetstormsecurity.org/files/112801>
[3] <http://www.securityfocus.com/bid/53575>
[4] <http://www.1337day.com/exploits/18287>
[5] <http://xforce.iss.net/xforce/xfdb/75710>
[6] <http://www.osvdb.org/show/osvdb/82297>
[7] <http://cve.mitre.org/cgi-bin/cvename.cgi?name=2012-2911>

Changelog

[16.05.2012] - Initial release
[18.05.2012] - Added reference [2], [3] and [4]
[20.05.2012] - Added reference [5]
[30.05.2012] - Added reference [6] and [7]

Contact

Zero Science Lab

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

                                        
                                            &lt;html&gt;&lt;head&gt;&lt;title&gt;403 Nothing to see.&lt;/title&gt;
&lt;link rel="Shortcut Icon" href="favicon.ico" type="image/x-icon"&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
	background-color: #000;
}
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
}
a:link {
	color: #008FEF;
	text-decoration: none;
}
a:visited {
	color: #008FEF;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
	color: #666;
}
a:active {
	text-decoration: none;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body bgcolor=black&gt;
&lt;center&gt;
&lt;font color="#7E88A3" size="2"&gt;
&lt;br /&gt;&lt;br /&gt;
&lt;h1&gt;403 Nothing to see.&lt;/h1&gt;

You do not have the powah for this request /403.shtml&lt;br /&gt;&lt;br /&gt;
&lt;font size="2"&gt;&lt;a href="https://www.zeroscience.mk"&gt;https://www.zeroscience.mk&lt;/a&gt;&lt;/font&gt;
&lt;/font&gt;&lt;/center&gt;
&lt;/body&gt;&lt;/html&gt;