<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>x83.net &#187; Pentest</title>
	<atom:link href="http://www.x83.net/category/pentest/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.x83.net</link>
	<description></description>
	<lastBuildDate>Sat, 24 Jul 2010 09:50:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Local File Inclusion</title>
		<link>http://www.x83.net/local-file-inclusion/</link>
		<comments>http://www.x83.net/local-file-inclusion/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 07:51:37 +0000</pubDate>
		<dc:creator>Giany</dc:creator>
				<category><![CDATA[Pentest]]></category>
		<category><![CDATA[LFI]]></category>
		<category><![CDATA[local file inclusion]]></category>

		<guid isPermaLink="false">http://www.x83.net/215/</guid>
		<description><![CDATA[This tutorial will guide you into the process of exploiting a website thru the LFI (Local File Inclusion).
First lets take a look at a php code that is vulnerable to LFI:

This is a piece of code that should NEVER be used, because the $page isn&#8217;t sanitized and is passed directly to the webpage, but unfortunately [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial will guide you into the process of exploiting a website thru the LFI (Local File Inclusion).</p>
<p>First lets take a look at a php code that is vulnerable to LFI:</p>
<blockquote></blockquote>
<p>This is a piece of code that should NEVER be used, because the $page isn&#8217;t sanitized and is passed directly to the webpage, but unfortunately (or not  ) is very common to be find in the www world.</p>
<p>Ok, now that we know why is it vulnerable let&#8217;s start to use this in our advantage. First let&#8217;s take a look how this give us the ability to &#8220;browse&#8221; thru the web server. Let&#8217;s imagine theres a file called test.php inside the test directory, if you type victim.com/test/test.php will retrive that file correct? Ok, but if the php code that we examined was in the index.php we could also retrive that file thru victim.com/index.php?page=test/test.php , see what happened there? Now, if the index.php was in victim.com/test/index.php and the test.php in victim.com/test.php you will have to type victim.com/test/index.php?page=../test.php . The ../ is called directory<br />
transversal using that will allow you to go up in the directories.</p>
<p>Now that we can go up and down thru the server let&#8217;s use it to access files that we are not supposed to. If this was hosted in a Unix server we can then possibly view the password file of the server, to do this you will have to type something like this (the nr of ../ may vary depending of where the vulnerable file is)</p>
<p><a title="References" href="http://www.packetstormsecurity.org/papers/general/lfi-paper.pdf" target="_blank">http://www.packetstormsecurity.org/papers/general/lfi-paper.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.x83.net/local-file-inclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
