Waraxe IT Security Portal
Login or Register
November 6, 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: 97
Members: 0
Total: 97
Full disclosure
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
APPLE-SA-10-28-2024-3 macOS Sequoia 15.1
APPLE-SA-10-28-2024-2 iOS 17.7.1 and iPadOS 17.7.1
APPLE-SA-10-28-2024-1 iOS 18.1 and iPadOS 18.1
Open Redirect / Reflected XSS - booked-schedulerv2.8.5
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Newbies corner -> Uploaded shell, but...
Post new topicReply to topic View previous topic :: View next topic
Uploaded shell, but...
PostPosted: Wed Jul 23, 2008 9:59 pm Reply with quote
chip
Beginner
Beginner
Joined: Jul 24, 2008
Posts: 4




Hey there.

I'm checking some security vulnerabilities on an SMF 1.1.4 forum, which from what I know has a few notable holes allowing RFI and SQL Injection attacks. However, these attacks require register_globals to be ON, but on the target host, register_globals is OFF.

So, I have a look around the forum to see anything interesting/vulnerable. Amazingly, the forum admin has allowed uploading of attachments OF ANY KIND, which means I can upload php files with ease. So far so good.

Next, I upload a certain php shell!

Normally, any uploaded attachments go to http://example.com/forum/attachments/

And, I know that the admin also has "encrypt filenames" disabled. Now all I need to do is go to: http://example.com/forum/attachments/shell.php and hopefully I can start using my shell... only to come across this:

------------------------

"Forbidden

You don't have permission to access /forums/attachments/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

------------------------

Huh? Damn. I can't access the folder, so I can't access my shell anymore. Is there a workaround for this? Can I access my shell using another php file on the server?

Any help or hints would be appreciated.

(Note: clicking on the link from the post's attachment only downloads the shell without executing it.)
View user's profile Send private message
PostPosted: Thu Jul 24, 2008 1:50 am Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




hmm, try and upload shell.php%00

otherwise, you can try overwrite the .htaccess

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Thu Jul 24, 2008 11:35 am Reply with quote
chip
Beginner
Beginner
Joined: Jul 24, 2008
Posts: 4




gibbocool wrote:
hmm, try and upload shell.php%00

otherwise, you can try overwrite the .htaccess


Thank you for your post. Here's what happened:

Uploading .htaccess didn't make any change to dir permission, I still got the 403 Forbidden error.

Now for shell.php%00 I got this instead:

------------------------
Not Found

The requested URL /forums/attachments/shell.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
------------------------

EDIT: I tried the %00 in another SMF forum that I own with "encrypt filenames" disabled, also didn't work.

Any other suggestions?


Last edited by chip on Thu Jul 24, 2008 12:02 pm; edited 2 times in total
View user's profile Send private message
PostPosted: Thu Jul 24, 2008 11:59 am Reply with quote
gibbocool
Advanced user
Advanced user
Joined: Jan 22, 2008
Posts: 208




I'm not too sure what's going on, perhaps some other members can elaborate.

Have you tried uploading .html files or any other files to see if they are forbidden?

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Thu Jul 24, 2008 12:19 pm Reply with quote
chip
Beginner
Beginner
Joined: Jul 24, 2008
Posts: 4




Hmm ok.

1. You can upload any type of file you want.

2. The file goes to example.com/forums/attachments/

3. But you can't directly go to /forums/attachments/ in the url because it is forbidden.

To make it simple, it's the same thing as this: http://www.waraxe.us/admin/whatever.php

uploading an .htacess didn't change anything, shell.php%00 didn't work

Any other ideas?
View user's profile Send private message
PostPosted: Thu Jul 24, 2008 2:06 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




You have access to admin panel?
View user's profile Send private message
PostPosted: Thu Jul 24, 2008 2:15 pm Reply with quote
chip
Beginner
Beginner
Joined: Jul 24, 2008
Posts: 4




koko wrote:
You have access to admin panel?


Nope, but you get the same 403 Error as in the SMF forum. Any way to get around this?
View user's profile Send private message
PostPosted: Thu Jul 24, 2008 5:44 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




I think only if you have access to admin panel.Via admin panel you mai change the upload directory and try to upload shell.
View user's profile Send private message
Uploaded shell, but...
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



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.034 Seconds