Waraxe IT Security Portal
Login or Register
September 8, 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: 77
Members: 0
Total: 77
Full disclosure
[SYSS-2024-030]: C-MOR Video Surveillance - OS Command Injection (CWE-78)
[SYSS-2024-029]: C-MOR Video Surveillance - Dependency on Vulnerable Third-Party Component (CWE-1395)
[SYSS-2024-028]: C-MOR Video Surveillance - Cleartext Storage of Sensitive Information (CWE-312)
[SYSS-2024-027]: C-MOR Video Surveillance - Improper Privilege Management (CWE-269)
[SYSS-2024-026]: C-MOR Video Surveillance - Unrestricted Upload of File with Dangerous Type (CWE-434)
[SYSS-2024-025]: C-MOR Video Surveillance - Relative Path Traversal (CWE-23)
Backdoor.Win32.Symmi.qua / Remote Stack Buffer Overflow (SEH)
HackTool.Win32.Freezer.br (WinSpy) / Insecure CredentialStorage
Backdoor.Win32.Optix.02.b / Weak Hardcoded Credentials
Backdoor.Win32.JustJoke.2 1 (BackDoor Pro) / Unauthenticated Remote Command Execution
Backdoor.Win32.PoisonIvy. ymw / Insecure Credential Storage
[SYSS-2024-024]: C-MOR Video Surveillance - Improper Access Control (CWE-284)
[SYSS-2024-023]: C-MOR Video Surveillance - SQL Injection(CWE-89)
[SYSS-2024-022]: C-MOR Video Surveillance - Cross-Site Request Forgery (CWE-352)
[SYSS-2024-021]: C-MOR Video Surveillance - Persistent Cross-Site Scripting (CWE-79)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Invision Power Board -> IPB attachment folder
Post new topicReply to topic View previous topic :: View next topic
IPB attachment folder
PostPosted: Fri Mar 07, 2008 4:40 pm Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




I have access to an admin account on a IPB 2.1.3
I add php type of attachment files and upload a php shell on the site.. But when i want to launch it in my profile, it just download it.
So my question is how i can get the path to my php files like uploads/file.php (it doesnt work) and not juste get it with GET method in the url.
Any help for the upload dir or in general?
View user's profile Send private message
PostPosted: Fri Mar 07, 2008 7:09 pm Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




New extension .phtml
Mime type application/octet-stream .phtml

Upload your shell with ext shell.phtml and look in ./uploads/shell.phtml
View user's profile Send private message
PostPosted: Sat Mar 08, 2008 12:32 am Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




Mime type : application/octet-stream .phtml or just application/octet-stream ?
Anyway, i dont find the file i upload... I saw that in ibp the location was crypted with something like MSG-id-dontremember-timestamp when the file was add. I am not sure, have you some clues?
View user's profile Send private message
PostPosted: Sat Mar 08, 2008 4:10 am Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




Hmm when i upload the phtml file, i ve turn on the DEBUG mode, and when i get the location, i see it replace .phtml or .php by .ibp
Is there a way ipb doesnt change the extension?
View user's profile Send private message
PostPosted: Sat Mar 08, 2008 4:18 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Nial wrote:
Hmm when i upload the phtml file, i ve turn on the DEBUG mode, and when i get the location, i see it replace .phtml or .php by .ibp
Is there a way ipb doesnt change the extension?


If you upload "test.php.php", then you get "test.php.ibp"??

If so, then try to access "test.php.ibp" via web - there is big chance that php code will execute. It's old and widely known Apache behavior in case of unknown file extensions and "php." substring in filename Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Mar 08, 2008 4:30 am Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




I just test it, the location is always just *.ibp

Code:
INSERT INTO ibf_attachments (attach_ext,attach_file,attach_location,attach_thumb_location,attach_hits,attach_date,attach_temp,attach_pid,attach_post_key,attach_member_id,attach_filesize,attach_is_image) VALUES('php','test.php.php','post-2-1204950258.ipb','','',1204950258,0,'','6413df11172426d5798962a5cc0f85d0',2,83266,0)


Sad
View user's profile Send private message
PostPosted: Sat Mar 08, 2008 5:15 am Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Code:

post-2-1204950258.ipb


As you can see - IPB is smart enough to rename file completely, so that ".php." trick will not work.

IPB is hard target, you can't find easy security holes from it Smile
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Mar 08, 2008 8:31 am Reply with quote
pexli
Valuable expert
Valuable expert
Joined: May 24, 2007
Posts: 665
Location: Bulgaria




If really this forum is version 2.1.3.

http://milw0rm.com/exploits/1726
http://milw0rm.com/exploits/1733
http://milw0rm.com/exploits/1720
View user's profile Send private message
PostPosted: Sat Mar 08, 2008 1:52 pm Reply with quote
Nial
Advanced user
Advanced user
Joined: Feb 29, 2008
Posts: 103




I get root admin level, i ve dump the forum database, but the password field are all blank. Is there anything i can do with my root admin lvl? Surprised
View user's profile Send private message
PostPosted: Thu Aug 14, 2008 11:25 am Reply with quote
Henderson
Valuable expert
Valuable expert
Joined: Jul 11, 2008
Posts: 58




AFAIR I managed to upload a shell on IPB 2.1.6 using "Emoticon Manager". Go to "Administration" ->"Look and feel"->"Manage emoticons" and upload your file into one of the directories e.g. default. Then you can acccess it from /forum/style_emoticons/default/shell.php
View user's profile Send private message
IPB attachment folder
www.waraxe.us Forum Index -> Invision Power 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.093 Seconds