Forums: phpBB 2.0.5 (latest release) SQL exploit - Forums

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

phpBB 2.0.5 (latest release) SQL exploit

#1 User is offline   Blake 

  • Former Commander In Chief
  • Icon
  • Group: Retired General
  • Posts: 7,317
  • Joined: 24-September 02

Posted 22 June 2003 - 08:48 AM

This exploit is getting a mixed reaction. Rootsecure.net find the code "ingenious" while some sources claim the exploit has to many pre-requisites. You decide.

Taken From RootSecure.net

Quote

A recent post to the BugTraq mailing list reveled yet another vulnerability found in phpBB a high powered, fully scalable, and highly customisable open-source bulletin board package.

The post contains ingenious proof of concept code, to circumvent phpBBs inbuilt security measures, specifically the fact that with this vulnerability, only integers can be passed back to the client.  In this case the MD5 password hash of a specific user is passed back one character at a time.

The attack was found to be successful when carried out against a test machine setup running mysql Ver 12.20 Distrib 4.0.13 however only when PHP was configured with the register_globals variable set to on - a common configuration on most web servers, which will hopefully be eradiated with the increased implementation of PHP 4 (defaults to setting register_globlals = off).

For the test scenario a user was registered on the phpBB board with username test, and password test123. The MD5 hash of test123 (cc03e747a6afbbcbf8be7668acfebee5) was gained by executing the following Perl code:
use Digest::MD5 qw(md5_hex);
$digest = md5_hex("test123");
print "$digest\n";

Next the provided exploit code was run using the following command:
perl phpsqlexploit.pl localhost http://localhost/phpBB2/viewtopic.php 3

which issued the response :
Trying to get password hash for uid 3 server localhost dbtype: mysql4
MD5 Hash for uid 3 is cc03e747a6afbbcbf8be7668acfebee5

Note: The MD5 hash gained from the exploit can be see to match that of the known hash for the password test123.

Once gained by the attacker, the MD5 password hash can be used in two main ways.  An attempt can be made to brute force it (a 7 character password on a reasonable spec machine would take a couple of hours) or it can be inserted into a custom made HTTP get request - both methods lead to successful compromise of a phpBB user account.

Actual log entries gained from a successful attack, along with the raw HTML traffic sent back by the client, are available for download from: content/temp/phpbb_sql_int_inqection.txt

Attached File(s)


0

#2 User is offline   KarachiKing555 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 103
  • Joined: 09-October 03

Posted 27 October 2003 - 02:11 PM

hi,
how r u guyz using .sql.pl as exploit ! little hints pls , iam new to all this so dont flame me off !thanx
0

#3 User is offline   dorsi 

  • Private
  • Icon
  • Group: Members
  • Posts: 2
  • Joined: 11-October 03

Posted 11 October 2003 - 02:04 PM

Please some1 answer me...
its very important
0

#4 User is offline   dorsi 

  • Private
  • Icon
  • Group: Members
  • Posts: 2
  • Joined: 11-October 03

Posted 11 October 2003 - 10:37 AM

Hi, i did like the exploit said and its show me only:
MD5 Hash for uid 3 is
without the MD5 hash password...
if you know whats the problem here please help me

greetz,
dor
0

#5 Guest_Cetras_*

  • Group: Guests

Post icon  Posted 16 October 2003 - 02:03 PM

And how i can crack the hash of 32 caracters ?
I try whith mdcrack but he said he can't crack it

And how i make the .txt file ?
with only the hash or "user:hash" ???

Thx :P
(sry for my bad english ^^)

ps : I think if you've nothing it's that the exploit didn't work on this version (phpbb 2.0.6 or mysql)
0

#6 Guest_Cetras_*

  • Group: Guests

Posted 17 October 2003 - 12:43 PM

okay, i hack them with Cain ;)
and the exploit work with 2.0.6 too ;)
0

#7 User is offline   agathos 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 128
  • Joined: 13-October 03

Posted 17 October 2003 - 01:14 PM

i got the same error :
Trying to get password hash for uid 1 server xxxxxxx dbtype: mysql4

MD5 Hash for uid 1 is

and then they exit
0

#8 Guest_Cetras_*

  • Group: Guests

Posted 18 October 2003 - 05:47 AM

Somebody knows how to find the ip of a board ?
Because somes are hosted and you can't use the exploit if you don't know the ip adress.
0

#9 User is offline   Kynroxes 

  • Staff Sergeant
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 20-October 03

Posted 20 October 2003 - 09:00 PM

lol Cetras, rulezz phpbb sploit !!
but if you won't use the mdcrack, you can create a code in the login.php in order to write the login/password in a .txt file... But this technic need the right in login.php, so!
0

#10 User is offline   PiXeL 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 22
  • Joined: 27-August 03

Posted 21 October 2003 - 01:35 AM

Is this code correct ?
$remote = shift || 1.1.1.1;
$view_topic = shift || 'http://www.abcdefghilmnopqrstuvz.org/public/forum/';
$uid = shift || 2;
$port = 80;

where the file viewtopic.php is in http://www.abcdefghi...m/viewtopic.php

Is this correct ?
Because i see:
Trying to get password hash for uid 2 server 1.1.1.1 dbtype: mysql4
MD5 Hash for uid 2 is

And nothing appear!!
What's wrong ?
Thx for help
0

#11 User is offline   viruskrew 

  • Private
  • Icon
  • Group: Members
  • Posts: 5
  • Joined: 19-October 03

Posted 21 October 2003 - 07:20 AM

This is correct...

Quote

$remote = shift || 'www.abcdefghilmnopqrstuvz.org';
$view_topic = shift || '/public/forum/';
$uid = shift || 2;
$port = 80;

-------------------------
I try to some host but not work...

Trying to get password hash for uid 2 server some.other.host dbtype: mysql4

MD5 Hash for uid 2 is


----------
why?
0

#12 Guest_Cetras_*

  • Group: Guests

Post icon  Posted 21 October 2003 - 09:41 AM

You must know the ip adress :/
So if it's a redirection (www.abc = http://ip/abc) it wil not work :s
0

#13 User is offline   ghasedak 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 38
  • Joined: 10-August 03

Post icon  Posted 21 October 2003 - 10:49 AM

when I run the code I get thid error
Why?

syntax error
near ">"
syntax error
near ">"
syntax error
near "}"
0

#14 User is offline   PiXeL 

  • Private First Class
  • Icon
  • Group: Members
  • Posts: 22
  • Joined: 27-August 03

Posted 22 October 2003 - 01:52 PM

But if i put the IP instead www.ecc.com it gives me the same result!! :(
0

#15 Guest_Cetras_*

  • Group: Guests

Posted 22 October 2003 - 09:02 PM

your ip is the "hebergement's" ip, try to put the ip in your nagivator and you will see
0

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting