Waraxe IT Security Portal
Login or Register
November 17, 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: 67
Members: 0
Total: 67
Full disclosure
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
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
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.051 Seconds