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: 618
Members: 0
Total: 618
PacketStorm News
·301 Moved Permanently

read more...
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 topic  Reply 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 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.165 Seconds