Exploit-DB #21392
Description: SpiceWorks 6.0.00993 - Multiple Script Injection Vulnerabilities
Type: webapps
Platform: windows
Date: 2012-09-19
Author: LiquidWorm

Exploit:
<!--


Title: Spiceworks 6.0.00993 Multiple Script Injection Vulnerabilities


Vendor: Spiceworks Inc.
Product web page: http://www.spiceworks.com
Affected version: 6.0.00993 and 6.0.00966

Summary: The Spiceworks IT Desktop delivers nearly everything you need to simplify your
IT job. Available in a variety of languages, Spiceworks' single, easy-to-use interface
combines Network Inventory, Help Desk, Mapping, Reporting, Monitoring and Troubleshooting.
And, it connects you with other IT pros to share ideas, solve problems and decide what
additional features you need in Spiceworks.

Desc: Spiceworks suffers from multiple stored cross-site scripting vulnerabilities. The
issues are triggered when input passed via several parameters to several scripts is not
properly sanitized before being returned to the user. This can be exploited to execute
arbitrary HTML and script code in a user's browser session in context of an affected site.
List of parameters and modules that are affected:


--------------------------------------------------------------------------------------------------------------
 #  * Parameter *                                             * Module / Component *
--------------------------------------------------------------------------------------------------------------

 1. agreement[account] ...................................... agreements
 2. article[new_references][][url] .......................... xbb/knowledge_base
 3. asset[device_type] ...................................... asset
 4. asset[mac_address] ...................................... asset
 5. asset[name] ............................................. asset
 6. category[name] .......................................... settings/categories
 7. international[global_date_abbrev_format] ................ settings/advanced/save_international_settings
 8. international[global_date_format] ....................... settings/advanced/save_international_settings
 9. international[global_date_time_format] .................. settings/advanced/save_international_settings
10. international[global_date_simple_format] ................ settings/advanced/save_international_settings
11. international[global_time_format] ....................... settings/advanced/save_international_settings
12. navigation[name] ........................................ my_tools
13. purchase[name] .......................................... purchases
14. purchase[price] ......................................... purchases
15. purchase[purchased_for_name] ............................ purchases
16. report[description] ..................................... reports/create
17. vendor[name] ............................................ agreements
18. vendor[website] ......................................... agreements

--------------------------------------------------------------------------------------------------------------


Tested on: Microsoft Windows 7 Ultimate SP1 (EN)
           Apache 2.2.19
           Ruby 1.9.1
           SQLite 3.7.5


Vulnerability discovered by Gjoko 'LiquidWorm' Krstic
                            liquidworm gmail com
                            Zero Science Lab - http://www.zeroscience.mk


Vendor status:

[26.08.2012] Vulnerabilities discovered.
[29.08.2012] Contact with the vendor.
[29.08.2012] Vendor responds asking more details.
[29.08.2012] Sent detailed information to the vendor.
[29.08.2012] Vendor confirms receiving files.
[03.09.2012] Asked vendor for confirmation.
[04.09.2012] Vendor awaits status from submited ticket to development team.
[11.09.2012] Asked vendor for status update.
[11.09.2012] Vendor says that the development team is still investigating.
[13.09.2012] Informed the vendor that the advisory will be published on 17th of September.
[14.09.2012] Vendor replies stating that a developer will contact us.
[17.09.2012] No contact from the development team.
[17.09.2012] Public security advisory released.


Advisory ID: ZSL-2012-5107
Advisory URL: http://www.zeroscience.mk/en/vulnerabilities/ZSL-2012-5107.php

Spiceworks: http://community.spiceworks.com/help#Current


26.08.2012


-->


<html>
<head>
<title>Spiceworks 6.0.00993 Multiple Script Injection Vulnerabilities</title>
<link rel="Shortcut Icon" href="http://zeroscience.mk/favicon.ico" type="image/x-icon">
</head>
<body bgcolor="#1C1C1C" leftmargin="100"><br />
<img style="margin-left:10" src="http://zeroscience.mk/images/zsl-logo1.png" hight="20%" width="20%">

<script type="text/javascript">

var disclaimer = "This  document and all the information it contains are provided \"as is\",\n" +
                 "for educational purposes only, without warranty of any kind, whether\n" +
                 "express or implied.\n\n" +

                 "The  author reserves the right not to be responsible for the topicality,\n" +
                 "correctness, completeness or quality of the information provided in\n" +
                 "this document. Liability claims regarding damage caused by the use of\n" +
                 "any information provided, including any kind of information which is\n" +
                 "incomplete or incorrect, will therefore be rejected.";

var answ = confirm(disclaimer);

if (answ == true){}else{window.location.href = "http://www.spiceworks.com";}

function xss1(){document.forms["xss1"].submit();}
function xss2(){document.forms["xss2"].submit();}
function xss3(){document.forms["xss3"].submit();}
function xss4(){document.forms["xss4"].submit();}
function xss5(){document.forms["xss5"].submit();}
function xss6(){document.forms["xss6"].submit();}
function xss7(){document.forms["xss7"].submit();}
function xss8(){document.forms["xss8"].submit();}

</script>

<center><h2 style="position:absolute;left:525;top:32;background-color:#BAB8B9;width:200">
HTML Response:</h2></center>

<iframe src="http://localhost/login" wid