iExploit
Recent
Activity
Sign up
Have an account?
Sign in
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Top Posters
Xin
3251
Sh3llc0d3
1910
chroniccommand
1389
undead
822
George
707
GameOver
675
Bursihido
406
m0rph
332
Mr. P-teo
269
D0WNGRADE
220
Who's Online (0)
Powered by
Vanilla.
Made with
Bootstrap.
Looking to introduce yourself? Look no further, and click here! We also have IRC! [irc.evilzone.org #iexploit]
Web Application Security
Doubt regarding Local File Inclusion(PHP Knowledge enough)
XinR
January 2
Posts: 4
Let this be the LFI Vulnerable script
<?php<br /> $file = str_replace('../', '', $_GET['file']);
if(isset($file))
{
include("pages/$file");
}
else
{
include("index.php");
}
?>
And we pass
http://example.com/index.php?file=..%2F..%2F..%2F..%2Fetc%2Fpasswd to attack
But how exactly is the file included now? Wont the scipt now be equivalent so that $file = ..%2F..%2F..%2F..%2Fetc%2Fpasswd
Only browser knows 2F = '/' so how can server include the file? HOw does it exactly understands it??
Danks>
Xin R
Mr. P-teo
January 2
Posts: 269
Its a good tutorial, but there should be no breakline within the php tags as this would just error.
Skype: mrpt3o
Twitter: MrPteo
Add a Comment