Exploit-DB #26893
Description: Dell Kace 1000 SMA 5.4.70402 - Persistent Cross-Site Scripting
Type: webapps
Platform: php
Date: 2013-07-16
Author: Vulnerability-Lab

Exploit:
Title:
======
Dell Kace 1000 SMA v5.4.70402 - Persistent Vulnerabilities


Date:
=====
2013-07-16


References:
===========
http://www.vulnerability-lab.com/get_content.php?id=833


VL-ID:
=====
833


Common Vulnerability Scoring System:
====================================
3.5


Introduction:
=============
Dell KACE is to provide an appliance-based approach to systems management, to create time for systems administration professionals, 
while saving money for their companies. Dell KACE Systems Management Appliances are available as both physical and virtual appliances. 

The KACE Management Appliance delivers a fully integrated systems management solution, unlike traditional software approaches that 
can require complex and time-consuming deployment and maintenance. KACE accomplishes this via an extremely flexible, intelligent 
appliance-based architecture that typically deploys in days and is self maintaining. The KACE Management Appliance also provides 
direct access to time-saving ITNinja systems management community information using AppDeploy Live, the leading destination for end 
point administrators. The result: Comprehensive systems management that is easy-to-use and that can be more economical than software 
only alternatives. Read more in the white paper KACE K1000 Management Appliance Architecture: Harnessing the Power of an 
Appliance-based Architecture. The KACE Management Appliance is designed for enterprises and business units with up to 20,000 nodes. 

(Copy of the Vendor Homepage:  http://www.kace.com/products/systems-management-appliance )


Abstract:
=========
The Vulnerability Laboratory Research Team discovered a web session vulnerability in Dell Kace K1000, Systems Management Appliance.


Report-Timeline:
================
2013-01-24:     Researcher Notification & Coordination
2013-02-06:     Vendor Notification
2013-02-08:     Vendor Response/Feedback
2013-**-**:     Vendor Fix/Patch
2013-07-16:     Public Disclosure


Status:
========
Published


Affected Products:
==================
DELL
Product: Kace K1000 SMA 5.4.70402


Exploitation-Technique:
=======================
Remote


Severity:
=========
Medium


Details:
========
Multiple persistent input validation web vulnerabilities are detected in Dell Kace K1000, Systems Management Appliance.
The vulnerabilityallows an attacker to inject own malicious script code in the vulnerable module on application side (persistent).

The first vulnerability is located in the `Inventory` module with the bound vulnerable Ip-address, Mac, Os Name, Service pack, 
Notes and Label Name parameters. The persistent injected script code will be executed directly out of the `Computer` listing 
when processing to manage the earlier inserted machines in dbms context.

The second vulnerability is located in the `Distribution` module with the bound vulnerable Machine Name and Mac address parameters. 
The persistent injected script code will be executed directly out of the `Walk-on-lan` exception handling mechanism when a malicious 
data is inserted in the vulnerable fields.

Successful exploitation of the vulnerabilities result in persistent session hijacking, persistent phishing, persistent external 
redirects, persistent external malware loads via inject and persistent vulnerable module web context manipulation.

Vulnerable Section(s):
      [+] Inventory => Computers
      [+] Inventory => Computers
      [+] Distribution =>  Wake-on-lan

Vulnerable Module(s):
      [+] Add New Item
      [+] Add Label
      [+] Add new Item
 
Vulnerable Parameter(s):
      [+] [Ip-address] [Mac] [Os Name] [Service pack] [Notes]
      [+] [Label Name]
      [+] [Machine Name] [Mac address]

Affected Modules(s):
      [+] Inventory => Computers
      [+] Inventory => Computers => Choose Action Menu => Apply label
      [+] Distribution =>  Wake-on-lan =>Exception handeling 


Proof of Concept:
=================
The vulnerability can be exploited by remote attackers with low user interaction and low privilege application user account.
For demonstration or reproduce ...

1.1

URL:  https://pub23.127.0.0.1:1336/adminui/machine.php?ID=1
Affected Module: Inventory => Computers 


Code Review:

<div style="margin-left:15px; color: #005FA9; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px; font-weight:300;">
            
<script type="text/javascript" src="/common/js/scw.js"></script>
            <script type="text/javascript">
 
// this will get set at the end of the page, after we've generated all the dynamic sections
            var gLastSectionId = 0;
</script>
            [<a href="#" onclick='expandAllDetail(gLastSectionId, 1);'>Expand All</a>]
            [<a href="#" onclick='expandAllDetail
(gLastSectionId);printSpecial()'>Printer Friendly Version</a>]
                        [<a href="history_log.php?HISTORY_TYPE=ASSET&TYPE_NAME=
Computer&TYPE_ID=8&NAME=%26lt%3Bh1%26gt%3BName%26lt%3B%2Fh1%26gt%3B&SHOW_ALL=1" onclick='logPopup(this); return false;'>Show All History</a>]
 
                       <div id="printReady" style="margin-top:2px;">
                <table border="0" cellspacing="0" cellpadding="0" 
style="border-collapse:collapse;width:70%;">
                <tbody>
<tr class="detail_page_section_heading_no_cursor">
    <td colspan="3">
        
<a style="cursor: pointer;cursor: hand;" onclick="hideShowDetail('section1',null,'','',''); return false;">Summary</a>
    </td>
</tr>
</tbody>

<tbody id="section1" style="display:none;">
<tr valign="top" class="rowHighlightData"><td width="1%">  </td><td style="width:150px;min-
width:100px;">Name:</td><td><h1>Name</h1></td></tr>
<tr valign="top" class="rowData"><td width="1%">  </td>
<td style="width:150px;min-width:100px;">Manual Entry:</td><td>Manually Entered Record, no communication with the server 
[<a href="/adminui/machine_edit