Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
April 16, 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: 357
Members: 0
Total: 357
PacketStorm News
·301 Moved Permanently

read more...
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Newbies corner -> phpbb 2.0.21: A PoC exploit to change Avatar file location
Post new topic  Reply to topic View previous topic :: View next topic 
phpbb 2.0.21: A PoC exploit to change Avatar file location
PostPosted: Sat Aug 23, 2008 1:21 pm Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




http://www.milw0rm.com/exploits/2348
im asking for a detailed explanation on how to use this thing. im trying to run it with these arguments selecting my own 2.0.21 phpbb forum as the victim:
perl phpbb.pl localhost/forum [actual admin name] [actual admin password] images/avatars/shell.php
it "thinks" for a sec and then just ends without any output and the avatar location doesnt change. what the hell am i doing wrong, how do i do it right and do i really have to put in the forum's admin's name and his password in order to make it work, coz i dont think if ill find the exploit very practical then..
View user's profile Send private message
PostPosted: Sat Aug 23, 2008 4:18 pm Reply with quote
lenny
Valuable expert
Valuable expert
 
Joined: May 15, 2008
Posts: 275




I belive that it should be:
Quote:
perl phpbb.pl localhost/forum [admin password] images/avatars/shell.php


Thats just from first glance Smile

Try it and get back to us Smile
View user's profile Send private message
PostPosted: Sat Aug 23, 2008 6:42 pm Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




nope, i dont know perl but i can still tell that you need 5 arguments (although i dont use the 5th as you might have noticed coz it gives me errors, i'd like some1 to lighten my mind on this one, i use [d<DEBUG>] as the last argument (just like it says in the exploit's code) and it gives me "The system cannot find the file specified.").
but thanks for the reply anyway ^^
View user's profile Send private message
PostPosted: Sun Aug 24, 2008 12:05 am Reply with quote
gibbocool
Advanced user
Advanced user
 
Joined: Jan 22, 2008
Posts: 208




Im pretty sure you need to be admin.

_________________
http://www.gibbocool.com
View user's profile Send private message Visit poster's website
PostPosted: Sun Aug 24, 2008 8:39 am Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




could be, but as i said i am entering admin user and pass and it still doesnt work
View user's profile Send private message
PostPosted: Sun Aug 24, 2008 3:09 pm Reply with quote
lenny
Valuable expert
Valuable expert
 
Joined: May 15, 2008
Posts: 275




... If you have access to the admin account, why not just change the path manually... and also, what is the aim of this attack if you alrady have control?
View user's profile Send private message
PostPosted: Sun Aug 24, 2008 5:31 pm Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




im trying the exploit on my own forum before the actual attack
View user's profile Send private message
PostPosted: Sun Aug 24, 2008 7:38 pm Reply with quote
lenny
Valuable expert
Valuable expert
 
Joined: May 15, 2008
Posts: 275




Ok, upon closer inspection you were right - both admin username and password need to be supplied. The avatar location isn't supposed to change I believe - I think that it allows the upload of any file type to any directory through the profile page. The exploit simply adds the poison null byte to the end of the avatar path, possibly breaking any validation attempts by phpBB allowing you to upload malicious files.

Admittedly, the exploit is not very well documented, and no white-paper is provided...
View user's profile Send private message
PostPosted: Mon Aug 25, 2008 6:17 am Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




thanks alot but i still cant quite grasp how to choose where to upload the file..
View user's profile Send private message
PostPosted: Mon Aug 25, 2008 10:29 am Reply with quote
lenny
Valuable expert
Valuable expert
 
Joined: May 15, 2008
Posts: 275




Ok this is getting a little tedious Razz
I (to be absolutley honest) dont know. I get the idea behind the exploit, but it goes in no detail how to actually comprimise the system. From what I can see, all this does is add %00 to the avatar url - a simple poison null byte. Im pretty sure this can be exploited, but due to the lack of information provided by the exploit author I cannot do any more easily.

Edit: Ok, so I am doing a little more research - Ill post if i find anything.
View user's profile Send private message
PostPosted: Tue Aug 26, 2008 6:29 pm Reply with quote
c2java
Regular user
Regular user
 
Joined: Aug 17, 2008
Posts: 8




thanks, i appreciate it alot
View user's profile Send private message
phpbb 2.0.21: A PoC exploit to change Avatar file location
  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 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.126 Seconds