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

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

www.waraxe.us Forum Index -> Shell commands injection -> make use of a misconfigured php
Post new topic  Reply to topic View previous topic :: View next topic 
make use of a misconfigured php
PostPosted: Mon May 15, 2006 10:02 pm Reply with quote
tux
Beginner
Beginner
 
Joined: May 16, 2006
Posts: 1




hi all,
first of all i gotta say, that i've been visiting and reading these forums regulary for some time now. and i really learned a lot. thank you all for this.
now i got a problem. there is a website i want to get control of, running phpbb 2.0.18, disallowing html, etc. so there is no actual possibility to exploit the forum software, as well as any other remotely-accessible software installed on this host (to my knowledge). but i discovered something else, very interesting.
i can call a php-script (not related to phpbb) and get to display remote webpages/-apps inside the mainsite. it's no iframe or anything alike, but poorly written php (i must admit, i don't think i would have made it any better...). of course i tried to exploit this misbehaviour by calling a script from a remote host to execute commands on the target host. without luck.
the url looks like this: http://xxx.de/?seite=http://yyy.de/cmd.php
i tried every possible combination via passthru(), exec(), system() etc. in the cmd.* file, but it parses the php file on the remote host and displays the output on the target host. when changing the file to *.txt or *.gif or whatever, there is no output at all. also nesting php tags inside the php tags shows no difference.
i am really lost and definately want to succeed. its a friends site i want to have some 'polite' fun with. i really don't want to destroy things or whatever.
i already succeeded with this method elsewhere, but this one is quite important for me Wink

if there is anyone who could help me out, like pointing me into the right direction, that would be great!
thanks in advance and please excuse my english, since im german. curious and willing to learn. pls help me with this one. i am even willing to name you a host you could have a lot of fun with (more or less - who knows).

philipp
View user's profile Send private message
PostPosted: Tue May 16, 2006 6:47 am Reply with quote
daemon_azazel
Regular user
Regular user
 
Joined: Apr 16, 2006
Posts: 17




show up the vulnerable php script source and i will tell you
what's that about. so far i understood you found some RFI?

btw, don't use GET - this got logged and you may experience
some issues later... allways use POST - much wise i can tell you.
View user's profile Send private message Visit poster's website
PostPosted: Wed May 17, 2006 1:10 pm Reply with quote
tux
Beginner
Beginner
 
Joined: May 16, 2006
Posts: 1




yes. i think you're right. this seems to be a remote file inclusion vulnerability. sorry for posting in the wrong forum then.
now i don't know the source code of this php script. it seems to be written by himself. so is there a way to get the code without asking him to show me?

thank you for trying to help!

regards
philipp
View user's profile Send private message
PostPosted: Wed May 17, 2006 1:50 pm Reply with quote
daemon_azazel
Regular user
Regular user
 
Joined: Apr 16, 2006
Posts: 17




well so you don't know the source...

and how did you noticed this?

Quote:
the url looks like this: http://xxx.de/?seite=http://yyy.de/cmd.php


send me a PM with the URL and iwill try to help you.

edit: btw that including thru ?seite= may be also some local inclusion,
i doubt some coder may be so stupid and include remotely whole URL's
View user's profile Send private message Visit poster's website
make use of a misconfigured php
  www.waraxe.us Forum Index -> Shell commands injection
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.195 Seconds