<?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/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>Inclusion &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/inclusion/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Wed, 25 Jan 2023 05:17:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>Inclusion &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to exploit Website&#8217;s Local File Inclusion vulnerability?</title>
		<link>https://en.anonyviet.com/how-to-exploit-websites-local-file-inclusion-vulnerability/</link>
					<comments>https://en.anonyviet.com/how-to-exploit-websites-local-file-inclusion-vulnerability/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Wed, 25 Jan 2023 05:17:57 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[Inclusion]]></category>
		<category><![CDATA[Local]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[Websites]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=2588</guid>

					<description><![CDATA[This article will explain what a local file is and how we can use it to exploit the computer. You can use this knowledge to solve Christmas Advent of Cyber ​​challenge number 14! Join the channel Telegram of the AnonyViet 👉 Link 👈 How to exploit the Local File Inclusion vulnerability Some web applications will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p><strong>This article will explain what a local file is and how we can use it to exploit the computer.  You can use this knowledge to solve <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Ftryhackme.com%2Froom%2F25daysofchristmas" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Christmas Advent of Cyber ​​challenge number 14!</a></strong></p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<p><img post-id="2588" fifu-featured="1" fetchpriority="high" decoding="async" class="aligncenter wp-image-33806 size-full" src="https://anonyviet.com/wp-content/uploads/2021/09/lfi.jpg" alt="How to exploit Website&#8217;s Local File Inclusion vulnerability?" title="How to exploit Website&#8217;s Local File Inclusion vulnerability?" width="1420" height="603" srcset="https://anonyviet.com/wp-content/uploads/2021/09/lfi.jpg 1420w, https://anonyviet.com/wp-content/uploads/2021/09/lfi-300x127.jpg 300w, https://anonyviet.com/wp-content/uploads/2021/09/lfi-1024x435.jpg 1024w, https://anonyviet.com/wp-content/uploads/2021/09/lfi-768x326.jpg 768w, https://anonyviet.com/wp-content/uploads/2021/09/lfi-750x318.jpg 750w, https://anonyviet.com/wp-content/uploads/2021/09/lfi-1140x484.jpg 1140w" sizes="(max-width: 1420px) 100vw, 1420px" title="How to exploit Website 6's Local File Inclusion vulnerability"/></p>
<h2 id="ftoc-cach-khai-thac-lo-hong-local-file-inclusion" class="ftwp-heading">How to exploit the Local File Inclusion vulnerability</h2>
<p>Some web applications will take the contents of the file and upload it to the website.  Or the application can include it in the document and parse it as part of the programming language.</p>
<p>For example, if a web application has the following path:</p>
<p><code>https://example.com/?include_file=file1.php</code></p>
<p>This link will get content from <strong>file1.php</strong> and display it on the web.  If an application does not whitelist what files can be uploaded and accessed via the path, the user can request the /etc/shadow file, which shows all encrypted users on the system running web application.</p>
<p>When the web application contains a file, it reads the file with the permissions of the user running the web server.  For example, if user joe runs the webserver, it will read the file with the permissions of joe, if run as root, it will have the permissions of the root user.  It&#8217;s a good idea to anticipate this when creating files, first try to create a file that you know the web server has read permission (such as robots.txt if the web server has it), to see if it&#8217;s vulnerable. exploit this way or not.</p>
<p>With the Local File Inclusion vulnerability, you can try and view the following files to assist you in server management.</p>
<ul>
<li>/etc/shadow – View encrypted passwords of all users on the system</li>
<li>server.js or index.js – If the application is written in NodeJS, these are common filenames containing the main code of the application – API credentials may be exposed.</li>
<li> /etc/hosts – Contains information about what other devices the web server is communicating with on the network.</li>
<li>/uploads/evil.php – If you upload your own web shell to a web server, you can execute it using this vulnerability.</li>
</ul>
<h2 id="ftoc-meo-de-hoan-thanh-thu-thach" class="ftwp-heading">Tips for completing the challenge</h2>
<p>Some web servers will treat every slash (/) as a path to the new page, but what if we want to dig into a file like /etc/shadow?</p>
<p><code>https://example.com/notes/?include=/etc/shadow</code></p>
<p>The server will think it will access <strong>/notes/include/etc/shadow</strong>.  So you can&#8217;t add a slash in the URL because the web server will think it&#8217;s accessing a different directory.</p>
<p>The solution is to use URL encoding.  URL encoding replaces unsafe ASCII characters with &#8216;%&#8217; followed by two hexadecimal digits.  The slash (/) can be URL encoded as %2F.  Hence we can change the path to:</p>
<p><code>https://example.com/notes/?include=%2Fetc%2Fshadow</code></p>
<p>This new request will access /notes/ and then convert %2F to a slash.  So that&#8217;s it then.</p>
<p>https://meyerweb.com/eric/tools/dencoder/ – This is a useful URL encoder and decoder you can use.</p>
<p>Also, you can see how to solve shodan.io on TryHackMe <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fhuong-dan-giai-bai-ve-shodan-io-tren-tryhackme%2F" rel="noopener" class="local-link">here</a>.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;33795&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-exploit-websites-local-file-inclusion-vulnerability/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/09/lfi.jpg" medium="image"></media:content>
            	</item>
	</channel>
</rss>
