<?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>Computer Security Is My Interest! &#187; Security Posts</title>
	<atom:link href="http://soroush.secproject.com/blog/category/securityposts/feed/" rel="self" type="application/rss+xml" />
	<link>http://soroush.secproject.com/blog</link>
	<description>Soroush Dalili's Weblog</description>
	<lastBuildDate>Thu, 01 Jul 2010 19:05:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IIS5.1 Directory Authentication Bypass by using &#8220;:$I30:$Index_Allocation&#8221;</title>
		<link>http://soroush.secproject.com/blog/2010/07/iis5-1-directory-authentication-bypass-by-using-i30index_allocation/</link>
		<comments>http://soroush.secproject.com/blog/2010/07/iis5-1-directory-authentication-bypass-by-using-i30index_allocation/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 18:20:32 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[My Advisories]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[IIS5.1 Authentication Bypass]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=263</guid>
		<description><![CDATA[Download this advisory from: http://soroush.secproject.com/downloadable/IIS5.1_Authentication_Bypass.pdf or: http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf Description: Although IIS5 is very old, finding one is not impossible! Therefore, I want to introduce a technique to bypass the IIS authentication methods on a directory. This vulnerability is because of using Alternate Data Stream to open a protected folder. All of IIS authentication methods can be [...]]]></description>
			<content:encoded><![CDATA[<p>Download this advisory from: <a href="http://soroush.secproject.com/downloadable/IIS5.1_Authentication_Bypass.pdf">http://soroush.secproject.com/downloadable/IIS5.1_Authentication_Bypass.pdf</a><br />
or: <a href="http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf">http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf</a></p>
<p style="text-align: justify;"><strong><em>Description:</em></strong><br />
Although IIS5 is very old, finding one is not impossible! Therefore, I want to introduce a technique to bypass the IIS authentication methods on a directory.<br />
This vulnerability is because of using Alternate Data Stream to open a protected folder.<br />
All of IIS authentication methods can be circumvented. In this technique, we can add a “:$i30:$INDEX_ALLOCATION” to a directory name to bypass the authentication.<br />
In a protected folder such as “AuthNeeded” which includes “secretfile.asp”:<br />
It is possible to run “secretfile.asp” by using:<br />
“/AuthNeeded:$i30:$INDEX_ALLOCATION/secretfile.asp”<br />
Instead of:<br />
“/AuthNeeded/secretfile.asp”</p>
<p style="text-align: justify;"><strong>More description:</strong><br />
<strong><em>Why IIS6 and 7 are not vulnerable:</em></strong><br />
- In these versions, IIS does not accept colon (&#8220;:&#8221;) character from the URL before the querystring.</p>
<p style="text-align: justify;"><strong><em>Why we cannot use &#8220;::$Data&#8221; in IIS 5.1 anymore:</em></strong><br />
- IIS rejects the request if its URL contains &#8220;::$&#8221; (before querystring).</p>
<p style="text-align: justify;"><strong><em>Why IIS5 is vulnerable to &#8220;Directory Authentication Bypass&#8221; by using &#8220;:$I30:$Index_Allocation&#8221;:</em></strong><br />
- IIS only verifies the directory name to check for authentication. Therefore, we can use &#8220;http://victim.com/SecretFolder:$I30:$Index_Allocation/&#8221; instead of &#8220;http://victim.com/SecretFolder&#8221; to bypass the authentication.</p>
<p style="text-align: justify;"><strong><em>Is it possible to bypass something else by using &#8220;:$I30:$Index_Allocation&#8221; on a NTFS partition:</em></strong><br />
- If a checking is only based on the directory name, it can be bypassed by using this method.</p>
<p>Download this advisory from: <a href="http://soroush.secproject.com/downloadable/IIS5.1_Authentication_Bypass.pdf">http://soroush.secproject.com/downloadable/IIS5.1_Authentication_Bypass.pdf</a><br />
or: <a href="http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf">http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf</a><a href="http://0me.me/demo/IIS/IIS5.1_Authentication_Bypass.pdf"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/07/iis5-1-directory-authentication-bypass-by-using-i30index_allocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crowzers or Carzy Browsers:</title>
		<link>http://soroush.secproject.com/blog/2010/06/crowzers-or-carzy-browsers/</link>
		<comments>http://soroush.secproject.com/blog/2010/06/crowzers-or-carzy-browsers/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 20:04:14 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[My Advisories]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[browser address bar lock]]></category>
		<category><![CDATA[browser crash]]></category>
		<category><![CDATA[fix iframe src]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=256</guid>
		<description><![CDATA[I need to translate this word first: Carzy Browsers = Crowsers Now, I want to share some odd behaviour of browsers with you. Let’s make them Crazy!  1- First, we load a URL in an IFrame. Then, we load another website on the same frame. Now, by using “javascript:window.history.go(0)”, it will change the IFrame SRC [...]]]></description>
			<content:encoded><![CDATA[<p>I need to translate this word first:<br />
Carzy Browsers = Crowsers</p>
<p>Now, I want to share some odd behaviour of browsers with you. Let’s make them Crazy!</p>
<p> 1- First, we load a URL in an IFrame. Then, we load another website on the same frame. Now, by using “javascript:window.history.go(0)”, it will change the IFrame SRC to the first URL,  but it keeps the 2nd website on the IFrame!</p>
<p> Try it here: <a href="http://0me.me/demo/crowzers/irsdl/addressbar_halt.html">http://0me.me/demo/crowzers/irsdl/addressbar_halt.html</a></p>
<p> Which Browsers?</p>
<p>  - Mozilla Firefox 3.6.6</p>
<p>  - IE7</p>
<p>  - IE8</p>
<p> 2- We want to lock the address bar in different browsers by using “onblur” and “onload” events with “this.focus()”.</p>
<p> Try it here: <a href="http://0me.me/demo/crowzers/irsdl/iframe_src_fool.html">http://0me.me/demo/crowzers/irsdl/iframe_src_fool.html</a></p>
<p> Which Browsers?</p>
<p>  - Mozilla Firefox 3.6.6</p>
<p>  - IE7</p>
<p>  - IE8</p>
<p>  - Opera 10.54</p>
<p> 3- We want to stop the browsers from working by using infinite loops and so on.</p>
<p> Try it here: <a href="http://0me.me/demo/crowzers/irsdl/halt.html">http://0me.me/demo/crowzers/irsdl/halt.html</a></p>
<p> Which Browsers?</p>
<p>  - Mozilla Firefox 3.6.6: Halted with Mozilla Crash Reporter</p>
<p>  - IE7: Halted</p>
<p>  - IE8: Halted</p>
<p>  - Safari 5: Crashed on “javascriptcore.dll”</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/06/crowzers-or-carzy-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cross Site URL Hijacking by using Error Object in Mozilla Firefox</title>
		<link>http://soroush.secproject.com/blog/2010/05/cross-site-url-hijacking-by-using-error-object-in-mozilla-firefox/</link>
		<comments>http://soroush.secproject.com/blog/2010/05/cross-site-url-hijacking-by-using-error-object-in-mozilla-firefox/#comments</comments>
		<pubDate>Thu, 27 May 2010 00:04:05 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[My Advisories]]></category>
		<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Cross Site URL Hijacking]]></category>
		<category><![CDATA[Cross Site URL Hijacking by Error Object]]></category>
		<category><![CDATA[XSUH by error object]]></category>
		<category><![CDATA[XSUH in Mozilla Firefox]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=245</guid>
		<description><![CDATA[In this paper, I want to represent a method for performing Cross Site URL Hijacking (which we can call XSUH) by using the error object of Mozilla Firefox. XSUH attack is used to steal another website URL. This URL can show the client’s situation on that website, and it can contain confidential parameters such as [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In this paper, I want to represent a method for performing <strong>Cross Site URL Hijacking</strong> (which we can call <strong>XSUH</strong>) by using the<strong> error object</strong> of <strong>Mozilla Firefox</strong>. XSUH attack is used to steal another website URL. This URL can show the client’s situation on that website, and it can contain confidential parameters such as session ID as well. There is another useful article with a similar purpose but with a different approach which is “XSHM” article of CHECKMARX , and reading this article is highly recommended to you as well.<br />
As you might know, scripts error handling in Mozilla Firefox is quite useful for the developers as it can show the exact source of an error with some useful information. Now, this functionality can be misused to divulge the destination URL after the redirections (XSUH attack) which can lead to condition leakage or stealing some important parameters from the URL.</p>
<p><strong>Download From Here</strong>: <a href="http://soroush.secproject.com/downloadable/XSUH_FF_1.pdf">http://soroush.secproject.com/downloadable/XSUH_FF_1.pdf</a><br />
<strong>Or Here</strong>: <a href="http://0me.me/demo/XSUH/XSUH_FF_1.pdf">http://0me.me/demo/XSUH/XSUH_FF_1.pdf</a></p>
<p><strong>Proof of Concept</strong>: <a href="http://0me.me/demo/XSUH/XSUH_demo_firefox_all_in_1.html">http://0me.me/demo/XSUH/XSUH_demo_firefox_all_in_1.html</a></p>
<p>Note:  This technique has been tested on Mozilla Firefox 3.6.3, 3.5.9, 3.6.4build5 (26th May 2010).</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/05/cross-site-url-hijacking-by-using-error-object-in-mozilla-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New Method: Role of the “/” character in mapping the website directories! &#8211; Webservers fault?</title>
		<link>http://soroush.secproject.com/blog/2010/05/new-method-role-of-the-%e2%80%9c%e2%80%9d-character-in-mapping-the-website-directories/</link>
		<comments>http://soroush.secproject.com/blog/2010/05/new-method-role-of-the-%e2%80%9c%e2%80%9d-character-in-mapping-the-website-directories/#comments</comments>
		<pubDate>Thu, 06 May 2010 23:54:44 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Mapping directory]]></category>
		<category><![CDATA[Mapping folder]]></category>
		<category><![CDATA[Slash role]]></category>
		<category><![CDATA[using slash as a signature]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=240</guid>
		<description><![CDATA[One of the first steps of a black-box penetration testing of a website is mapping its files and directories.  And in order to do that, security scanners crawl into the website first, and then try to guess the possible directories and files. These scanners use the response header or body of the page to investigate [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">One of the first steps of a black-box penetration testing of a website is mapping its files and directories.  And in order to do that, security scanners crawl into the website first, and then try to guess the possible directories and files. These scanners use the response header or body of the page to investigate a valid file or directory. For instance, the header status “404” can be the sign of “File Not Found” and “200” can be the sign of a valid file. Also, the status “403 Forbidden” can be the sign of a valid directory without any index page. However, many websites such as Yahoo, Google, Facebook, Microsoft, and so on do not like to show the “403 Forbidden” errors for a valid directory, and instead, they show a “Page Not found” or another default page to the users. Although this functionality makes the website more user-friendly, it is not good for the scanners at all; as there is no difference between a valid and an invalid directory then.</p>
<p style="text-align: justify;">Therefore, we need something else as a signature to improve the scanners result. And as a solution we can use a “/” as an identifier. In case of requesting a valid directory without adding a slash at the end of it, the web-server will add an slash automatically, and in case of having an invalid directory there will not be any slash at the end of the directory name.</p>
<p>Some examples:</p>
<p>Invalid Directory: <a href="http://www.microsoft.com/foobars">http://www.microsoft.com/foobars</a></p>
<p>Valid Directory: <a href="http://www.microsoft.com/test">http://www.microsoft.com/test</a></p>
<p>&#8212;&#8212;&#8211;</p>
<p>Invalid Directory: <a href="http://code.google.com/foobars">http://code.google.com/foobars</a></p>
<p>Valid Directory: <a href="http://code.google.com/js">http://code.google.com/js</a></p>
<p>&#8212;&#8212;&#8211;</p>
<p>Invalid Directory: <a href="http://www.facebook.com/foobars">http://www.facebook.com/foobars</a></p>
<p>Valid Directory: <a href="http://www.facebook.com/admin">http://www.facebook.com/admin</a></p>
<p>&#8212;&#8212;&#8211;</p>
<p>Invalid Directory: <a href="http://uk.yahoo.com/foobars">http://uk.yahoo.com/foobars</a></p>
<p>Valid Directory: <a href="http://uk.yahoo.com/private">http://uk.yahoo.com/private</a></p>
<p>&#8212;&#8212;&#8211;</p>
<p>Cheers,</p>
<p><strong>Soroush Dalili</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/05/new-method-role-of-the-%e2%80%9c%e2%80%9d-character-in-mapping-the-website-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7-8 drive list enumeration!</title>
		<link>http://soroush.secproject.com/blog/2010/03/ie7-8-drive-list-enumeration/</link>
		<comments>http://soroush.secproject.com/blog/2010/03/ie7-8-drive-list-enumeration/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 23:48:53 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[My Advisories]]></category>
		<category><![CDATA[Security Posts]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=230</guid>
		<description><![CDATA[Iframe delay in loading the local drives in IE7 and IE8 can cause drive list enumeration! Proof of Concept is available from this link: http://plaincipher.com/demo/IE-Drive-Enum-Demo.html Cheers, Soroush Dalili]]></description>
			<content:encoded><![CDATA[<p>Iframe delay in loading the local drives in IE7 and IE8 can cause drive list enumeration!<br />
Proof of Concept is available from this link:<br />
<a href="http://plaincipher.com/demo/IE-Drive-Enum-Demo.html">http://plaincipher.com/demo/IE-Drive-Enum-Demo.html</a></p>
<p>Cheers,<br />
Soroush Dalili</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/03/ie7-8-drive-list-enumeration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Web Application Security Consortium Threat Classification v2.0</title>
		<link>http://soroush.secproject.com/blog/2010/01/the-web-application-security-consortium-threat-classification-v2-0/</link>
		<comments>http://soroush.secproject.com/blog/2010/01/the-web-application-security-consortium-threat-classification-v2-0/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 23:46:00 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Normal Posts]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[WASC Threat Classification v2.0]]></category>
		<category><![CDATA[Web Application Security Consortium Threat Classification]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=208</guid>
		<description><![CDATA[After OWASP updated its Top 10, now I&#8217;m very glad to quote this: The Web Application Security Consortium (WASC) is pleased to announce the long awaited release of the WASC Threat Classification v2.0. You can read more information from these links: http://projects.webappsec.org/Threat-Classification and http://projects.webappsec.org/f/WASC-TC-v2_0.pdf Cheers, Soroush]]></description>
			<content:encoded><![CDATA[<p>After OWASP updated its <a href="http://www.owasp.org/index.php/Category:OWASP_Top_Ten_Project" target="_blank">Top 10</a>, now I&#8217;m very glad to quote this:</p>
<blockquote><p>The Web Application Security Consortium (WASC) is pleased to announce the long awaited release of the WASC Threat Classification v2.0.</p></blockquote>
<p>You can read more information from these links: <a href="http://projects.webappsec.org/Threat-Classification" target="_blank">http://projects.webappsec.org/Threat-Classification</a> and <a href="http://projects.webappsec.org/f/WASC-TC-v2_0.pdf" target="_blank">http://projects.webappsec.org/f/WASC-TC-v2_0.pdf</a></p>
<p>Cheers,</p>
<p>Soroush</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/01/the-web-application-security-consortium-threat-classification-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Contradiction</title>
		<link>http://soroush.secproject.com/blog/2010/01/microsoft-contradiction/</link>
		<comments>http://soroush.secproject.com/blog/2010/01/microsoft-contradiction/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 15:36:56 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Microsoft IIS Vulnerability]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=204</guid>
		<description><![CDATA[First of all, Microsoft is one of the best companies which leads us to the better world. But, nothing is free of fault except God! I’m writing this post as a response to the Microsoft security response in: “http://blogs.technet.com/msrc/archive/2009/12/29/results-of-investigation-into-holiday-iis-claim.aspx”. They said that “We’ve completed our investigation into the claims that came up over the holiday [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">First of all, Microsoft is one of the best companies which leads us to the better world. But, nothing is free of fault except God!</p>
<p style="text-align: justify;">I’m writing this post as a response to the Microsoft security response in: “<a href="http://blogs.technet.com/msrc/archive/2009/12/29/results-of-investigation-into-holiday-iis-claim.aspx" target="_blank">http://blogs.technet.com/msrc/archive/2009/12/29/results-of-investigation-into-holiday-iis-claim.aspx</a>”.</p>
<p style="text-align: justify;">They said that “We’ve completed our investigation into the claims that came up over the holiday of a possible vulnerability in IIS and found that there is no vulnerability in IIS.”. Therefore, I realized that this is not a Microsoft IIS hole. So, it should be a feature of IIS 6.0! In my opinion it’s a good feature for the attackers to bypass the web uploaders protection. Now my question is: why have they removed this feature from IIS version 7 and 7.5 then? And why are the others so concerned about this feature and some people added it to their exploits collection?</p>
<p>I think it’s not even a critical bug for IIS, but it is highly critical for most of the web applications.</p>
<p style="text-align: justify;">Besides, Microsoft is so wrong about the default configurations since they said “customers who are using IIS 6.0 in the default don’t need to worry about this issue”.  I think they should look at the shared servers default configurations as well as the dedicated ones.</p>
<p style="text-align: justify;">Finally, I think Microsoft should fix this feature as soon as possible to eliminate its risks! And, it is up to the web security researchers and the web penetration testers to decide about the impact of this vulnerability on the web applications.</p>
<p>PS:</p>
<p>You can also look at these links:</p>
<p>-          <a href="http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/" target="_blank">http://www.darknet.org.uk/2009/12/microsoft-iis-semicolon-bug-leaves-servers-vulnerable/</a></p>
<p>-          <a href="http://www.esecurityplanet.com/trends/article.php/3855936/article.htm" target="_blank">http://www.esecurityplanet.com/trends/article.php/3855936/article.htm</a></p>
<p>-          <a href="http://www.securityfocus.com/bid/37460/references" target="_blank">http://www.securityfocus.com/bid/37460/references</a></p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2010/01/microsoft-contradiction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsers’ Pain: A recursive function!</title>
		<link>http://soroush.secproject.com/blog/2009/12/browsers%e2%80%99-pain-a-recursive-function/</link>
		<comments>http://soroush.secproject.com/blog/2009/12/browsers%e2%80%99-pain-a-recursive-function/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 20:36:55 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Browsers’ Pain]]></category>
		<category><![CDATA[Mozilla Crash Function]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=188</guid>
		<description><![CDATA[I have written a recursive function by using Javascript “setInterval” function which calls itself. Unfortunately, none of the last version of famous browsers such as Internet Explorer (8), Chrome (3.0.195.38), and Mozilla Firefox (3.5.6) blocks this script. Moreover, it takes more than 50% of my CPU which is Intel Core 2 Dou 2.50 GHz. And [...]]]></description>
			<content:encoded><![CDATA[<p>I have written a recursive function by using Javascript “setInterval” function which calls itself. Unfortunately, none of the last version of famous browsers such as Internet Explorer (8), Chrome (3.0.195.38), and Mozilla Firefox (3.5.6) blocks this script. Moreover, it takes more than 50% of my CPU which is Intel Core 2 Dou 2.50 GHz.<br />
And the worst one is Mozilla Firefox which stops working after running this script instead of showing a page to stop the script.<br />
This script is:</p>
<blockquote><p>&lt;script&gt;<br />
function recursiveFunc(){setInterval(&#8220;recursiveFunc()&#8221;,1);}<br />
recursiveFunc();<br />
&lt;/script&gt;</p></blockquote>
<p>Just save it as an HTML file, and try to open it with your browsers. You can convert “1” to “0” to get better result in Mozilla Firefox and Chrome.<br />
I reported it to Mozilla Firefox as a bug.<br />
Good luck.</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/12/browsers%e2%80%99-pain-a-recursive-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft IIS Semi-Colon Vulnerability</title>
		<link>http://soroush.secproject.com/blog/2009/12/microsoft-iis-semi-colon-vulnerability/</link>
		<comments>http://soroush.secproject.com/blog/2009/12/microsoft-iis-semi-colon-vulnerability/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 17:50:44 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[My Advisories]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Execute ASP by JPG]]></category>
		<category><![CDATA[IIS File Extension Security Bypass]]></category>
		<category><![CDATA[IIS semicolon bug]]></category>
		<category><![CDATA[IIS semicolon vulnerability]]></category>
		<category><![CDATA[Microsoft IIS Vulnerability]]></category>
		<category><![CDATA[Run ASP by JPG]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=185</guid>
		<description><![CDATA[I found a vulnerability in Microsoft IIS when I was searching about a method to execute an ASP file when we can only upload a JPG file. The result was too simple, but interesting! I need only a semicolon between the &#8220;.asp&#8221; and the &#8220;.jpg&#8221; to execute an ASP file. So, the answer was &#8220;myfilename.asp;,jpg&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>I found a vulnerability in Microsoft IIS when I was searching about a method to execute an ASP file when we can only upload a JPG file.</p>
<p>The result was too simple, but interesting! I need only a semicolon between the &#8220;.asp&#8221; and the &#8220;.jpg&#8221; to execute an ASP file. So, the answer was &#8220;myfilename.asp;,jpg&#8221;. I have written some information about this vulnerability in:</p>
<p><a href="http://soroush.secproject.com/downloadable/iis-semicolon-report.pdf" target="_blank">http://soroush.secproject.com/downloadable/iis-semicolon-report.pdf</a></p>
<p>I&#8217;ll try to update this PDF file if there was a need to add or change some information.</p>
<p>Description of this vulnerability from Secunia.com is:</p>
<blockquote><p>Description:<br />
Soroush Dalili has discovered a vulnerability in Microsoft Internet Information Services (IIS), which can be exploited by malicious people to potentially bypass certain security restrictions and compromise a vulnerable system.</p>
<p>The vulnerability is caused due to the web server incorrectly executing e.g. ASP code included in a file having multiple extensions separated by &#8220;;&#8221;, only one internal extension being equal to &#8220;.asp&#8221; (e.g. &#8220;file.asp;.jpg&#8221;). This can be exploited to potentially upload and execute arbitrary ASP code via a third-party application using file extensions to restrict uploaded file types.</p>
<p>The vulnerability is confirmed on a fully patched Windows Server 2003 R2 SP2 running Microsoft IIS version 6. Other versions may also be affected.</p></blockquote>
<p>There are also several websites which wrote about this weakness:</p>
<p>1. Secunia Advisory: <a href="http://secunia.com/advisories/37831/" target="_blank">Microsoft IIS ASP Multiple Extensions Security Bypass</a></p>
<p>2. Securityfocus: <a href="http://www.securityfocus.com/bid/37460" target="_blank"><span>Microsoft IIS Malformed Local Filename Security Bypass Vulnerability</span></a></p>
<p>3. The Register: <a href="http://www.theregister.co.uk/2009/12/25/microsoft_iis_semicolon_bug/" target="_blank">Microsoft IIS vuln leaves users open to remote attack</a></p>
<p>4. VUPEN Security: <a href="http://www.vupen.com/english/advisories/2009/3634" target="_blank">Microsoft IIS File Extension Processing Security Bypass Vulnerability</a></p>
<p>5. Securitytracker: <a href="http://securitytracker.com/alerts/2009/Dec/1023387.html" target="_blank">Microsoft Internet Information Services (IIS) Filename Extension Parsing Flaw May Let Users Bypass Security Controls</a></p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/12/microsoft-iis-semi-colon-vulnerability/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>My belief: 70% of websites are vulnerable</title>
		<link>http://soroush.secproject.com/blog/2009/11/my-belief-70-of-websites-are-vulnerable/</link>
		<comments>http://soroush.secproject.com/blog/2009/11/my-belief-70-of-websites-are-vulnerable/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 15:57:31 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Critical vulnerabilities]]></category>
		<category><![CDATA[CSRF Attacks]]></category>
		<category><![CDATA[OWASP top 10]]></category>
		<category><![CDATA[SQL Injection Vulnerability]]></category>
		<category><![CDATA[website vulnerability]]></category>
		<category><![CDATA[XSS Vulnerability]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=180</guid>
		<description><![CDATA[When I was searching for a ticket in nationalrail.co.uk website, I suddenly found an XSS and also a SQL Injection vulnerabilities in it. I reported these two vulns. to its website just for having more security. And, I think these two vulnerabilities are fixed now. However, I believe that still 70% of webistes are vulnerable [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When I was searching for a ticket in nationalrail.co.uk website, I suddenly found an XSS and also a SQL Injection vulnerabilities in it.</p>
<p style="text-align: justify;">I reported these two vulns. to its website just for having more security. And, I think these two vulnerabilities are fixed now.</p>
<p style="text-align: justify;">However, <strong>I believe that still 70% of webistes are vulnerable against the <a href="http://owasp.org/">OWASP</a> TOP 10! </strong></p>
<p style="text-align: justify;">Also, I think you should read &#8220;<a href="http://www.securityfocus.com/brief/1036"><span>Survey: Majority of Web sites vulnerable</span></a>&#8221; as well.</p>
<p style="text-align: justify;">Cheers,</p>
<p style="text-align: justify;">Soroush</p>
<p style="text-align: justify;">
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/11/my-belief-70-of-websites-are-vulnerable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Travian Game Vulnerabilities in progress&#8230;</title>
		<link>http://soroush.secproject.com/blog/2009/11/travian-game-vulnerabilities-in-progress/</link>
		<comments>http://soroush.secproject.com/blog/2009/11/travian-game-vulnerabilities-in-progress/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 14:54:08 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Normal Posts]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[logical flaw]]></category>
		<category><![CDATA[travian game]]></category>
		<category><![CDATA[travian hack]]></category>
		<category><![CDATA[travian online game]]></category>
		<category><![CDATA[website vulnerability]]></category>
		<category><![CDATA[XSS Vulnerability]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=176</guid>
		<description><![CDATA[3 weeks ago, I sent an email about some small but effective vulnerabilities in Travian online game to its providers. By using these vulnerabilities a player can make several accounts by the same email address (because of a logical flaw), and also, he/she can login to other players&#8217; accounts (by using an XSS vulnerability which [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">3 weeks ago, I sent an email about some small but effective vulnerabilities in Travian online game to its providers. By using these vulnerabilities a player can make several accounts by the same email address (because of a logical flaw), and also, he/she can login to other players&#8217; accounts (by using an XSS vulnerability which is completely proved).</p>
<p>Now, I&#8217;m still waiting for their final response as I don&#8217;t want to be harmful for them!</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/11/travian-game-vulnerabilities-in-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent phishing attacks? ‐ In 3 Pages ‐</title>
		<link>http://soroush.secproject.com/blog/2009/11/how-to-prevent-phishing-attacks-%e2%80%90-in-3-pages-%e2%80%90/</link>
		<comments>http://soroush.secproject.com/blog/2009/11/how-to-prevent-phishing-attacks-%e2%80%90-in-3-pages-%e2%80%90/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 18:06:46 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[Phishing attacks]]></category>
		<category><![CDATA[Phishing methods]]></category>
		<category><![CDATA[Phishing prevention]]></category>
		<category><![CDATA[XSS in phishing attacks]]></category>
		<category><![CDATA[XSS Vulnerability]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=166</guid>
		<description><![CDATA[In only 3 pages, I tried to explain Phishing attacks and prevention methods. Although there are some books about this topic, I tried to do my best in 3 pages only! :D I hope you enjoy :) Click here to download this mini-article! Cheers, Soroush]]></description>
			<content:encoded><![CDATA[<p>In only 3 pages, I tried to explain Phishing attacks and prevention methods. Although there are some books about this topic, I tried to do my best in 3 pages only! :D</p>
<p>I hope you enjoy :)</p>
<p><a title="phishing_in_3_pages_march_2009.pdf" href="http://soroush.secproject.com/downloadable/phishing_in_3_pages_march_2009.pdf" target="_blank">Click here to download this mini-article!</a></p>
<p>Cheers,</p>
<p>Soroush</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/11/how-to-prevent-phishing-attacks-%e2%80%90-in-3-pages-%e2%80%90/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Critical vulnerabilities in the website of my department! &#8230; were solved!</title>
		<link>http://soroush.secproject.com/blog/2009/02/critical-vulnerabilities-in-the-website-of-my-department-were-solved/</link>
		<comments>http://soroush.secproject.com/blog/2009/02/critical-vulnerabilities-in-the-website-of-my-department-were-solved/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 23:24:11 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[computer science vulnerabilities]]></category>
		<category><![CDATA[Critical vulnerabilities]]></category>
		<category><![CDATA[university of birmingham vulnerabilities]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=155</guid>
		<description><![CDATA[There were some critical vulnerabilities in website of Computer Science Department, University of Birmingham. Addresses of the website: www.cs.bham.ac.uk supportweb.cs.bham.ac.uk I reported them to the computer support section, and all of them are solved now. The vulnerabilities were: 1- File uploading attack (In WWW, attacker could upload a php file and execute it.) 2- Directory [...]]]></description>
			<content:encoded><![CDATA[<p>There were some critical vulnerabilities in website of Computer Science Department, University of Birmingham.<br />
Addresses of the website:<br />
<em><strong><a href="http://www.cs.bham.ac.uk" target="_blank">www.cs.bham.ac.uk</a></strong></em><br />
<a href="http://supportweb.cs.bham.ac.uk" target="_blank"><em><strong>supportweb.cs.bham.ac.uk</strong></em></a></p>
<p>I reported them to the computer support section, and all of them are solved now.<br />
The vulnerabilities were:<br />
1- File uploading attack (In WWW, attacker could upload a php file and execute it.)<br />
2- Directory traversal (In WWW, attacker could see the files and directories of the server and download the web files via the browser)<br />
3- Local file inclusion (In Supportweb, attacker could use LFI techniques to do some malicious works)<br />
4- Critical XSS attack in Gate Keeper&#8217;s Login (In Both, attacker could steal all the usernames and passwords of the users by using some simple social engineering techniques.)</p>
<p>Most of these vulnerabilities were because of the old part of the website.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/02/critical-vulnerabilities-in-the-website-of-my-department-were-solved/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Injection Tutorial Video</title>
		<link>http://soroush.secproject.com/blog/2009/01/sql-injection-tutorial-video/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/sql-injection-tutorial-video/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 23:44:10 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[hacking videos]]></category>
		<category><![CDATA[sql injection tutorial]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=143</guid>
		<description><![CDATA[This is a good tutorial video about SQL Injection. Although in this video, it works with mysql, you can learn the concept of SQL Injection and also some useful techniques. Creator: killerguppy101 Part1 (http://aria-security.persiangig.com/video/sqltut-Part1.rar) &#8212;&#8212;- Part2.1 (http://aria-security.persiangig.com/video/sqltut-Part2.1.rar) Part2.2 (http://aria-security.persiangig.com/video/sqltut-Part2.2.rar) &#8212;&#8212;- Part3 (http://aria-security.persiangig.com/video/sqltut-Part3.rar) Thanks from aria-security.com, Secr00t3r, ali_aria Copy/Paste these links in your browser if they [...]]]></description>
			<content:encoded><![CDATA[<p>This is a good tutorial video about SQL Injection. Although in this video, it works with mysql, you can learn the concept of SQL Injection and also some useful techniques.</p>
<p>Creator: <a href="http://www.google.co.uk/search?hl=en&amp;q=killerguppy101" target="_blank">killerguppy101</a></p>
<p><a href="http://aria-security.persiangig.com/video/sqltut-Part1.rar" target="_blank">Part1</a> (http://aria-security.persiangig.com/video/sqltut-Part1.rar)</p>
<p>&#8212;&#8212;-</p>
<p><a href="http://aria-security.persiangig.com/video/sqltut-Part2.1.rar" target="_blank">Part2.1</a> (http://aria-security.persiangig.com/video/sqltut-Part2.1.rar)</p>
<p><a href="http://aria-security.persiangig.com/video/sqltut-Part2.2.rar" target="_blank">Part2.2</a> (http://aria-security.persiangig.com/video/sqltut-Part2.2.rar)</p>
<p>&#8212;&#8212;-</p>
<p><a href="http://aria-security.persiangig.com/video/sqltut-Part3.rar" target="_blank">Part3</a> (http://aria-security.persiangig.com/video/sqltut-Part3.rar)</p>
<p>Thanks from <a href="http://www.aria-security.com/" target="_blank">aria-security.com</a>, Secr00t3r, ali_aria</p>
<p>Copy/Paste these links in your browser if they don&#8217;t work by clicking.</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/sql-injection-tutorial-video/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Hacking Videos: A Useful Link!</title>
		<link>http://soroush.secproject.com/blog/2009/01/hacking-videos-a-useful-link/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/hacking-videos-a-useful-link/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 23:29:59 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[hacking videos]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=141</guid>
		<description><![CDATA[There are some good hacking videos in this link: http://www.forcehacker.kit.net/videos.html]]></description>
			<content:encoded><![CDATA[<p>There are some good hacking videos in this link:</p>
<p><a href="http://www.forcehacker.kit.net/videos.html" target="_blank">http://www.forcehacker.kit.net/videos.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/hacking-videos-a-useful-link/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is there any way to close free websites/weblogs&#8217; advertisements?</title>
		<link>http://soroush.secproject.com/blog/2009/01/is-there-any-way-to-close-free-websitesweblogs-advertisements/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/is-there-any-way-to-close-free-websitesweblogs-advertisements/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 14:47:53 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>
		<category><![CDATA[close advertisment]]></category>
		<category><![CDATA[free web hosting]]></category>
		<category><![CDATA[javascript to close advertisements]]></category>
		<category><![CDATA[weblogs]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=97</guid>
		<description><![CDATA[Actually, there is no way for your hosting to ensure that you cannot close its advertisements (advs.)! Because of the fact that all the advs. are based on JavaScript and html, everyone can close them just by looking at their code behavior. These are some methods: 1. (Easy level) some hosts add the advs. after [...]]]></description>
			<content:encoded><![CDATA[<p>Actually, there is no way for your hosting to ensure that you cannot close its advertisements (advs.)!<br />
Because of the fact that all the advs. are based on JavaScript and html, everyone can close them just by looking at their code behavior.<br />
These are some methods:</p>
<p>1. (Easy level) some hosts add the advs. after your html codes which can be closed easily by adding some tags such as:<br />
&lt;noscript&gt; , &lt;embed&gt;, &lt;object&gt;, &lt;!&#8211;, &lt;script&gt;, and &#8230;<br />
at the end of your html page. For instance:<br />
I tested it in GoDaddy free web hosting by adding &lt;noscript&gt; tag and it works successfully: [http://www.plaincipher.com/welcome.html] (6 Jan. 2009) see its source code for more details.<br />
However, hosting can neutralize this way easily by adding some close tags before starting its advs. such as:<br />
&lt;/noscript&gt;, &lt;/embed&gt;, &lt;/object&gt;, &#8211;&gt;, &lt;/script&gt;, and &#8230;</p>
<p>2. (Medium level) some host&#8217;s advertisements can be closed by calling their close function in their JavaScript. For instance I tested this code:</p>
<p style="padding-left: 30px;"><em>&lt;script&gt;document.getElementById(&#8216;divADV&#8217;).style.visible=&#8217;hidden&#8217;;window.setInterval(&#8216;closeWindow()&#8217;,0);closeWindow();&lt;/script&gt;</em></p>
<p>at PersianBlog.ir&#8217;s weblogs and it works successfully: see [error404.persianblog.ir] (6 Jan. 2009).</p>
<p>3. (Hard level) some host&#8217;s advs. are very complicated in code, but they can also be closed by some tricks in neutralizing their frames and their JavaScript functions! I will write about some tricks after finishing this part.<br />
For instance I tested this code:</p>
<p style="padding-left: 30px;"><em>&lt;script language=&#8221;JavaScript&#8221;&gt;<br />
var settelingTime = 100;<br />
var check4closing = 4;<br />
function testjavascript()<br />
{</em></p>
<p style="padding-left: 30px;"><em>window.setTimeout(&#8220;testjavascript()&#8221;, settelingTime);<br />
if(top.d.getElementById(&#8220;FR&#8221;) &amp;&amp; check4closing!=0){<br />
if(check4closing==1)<br />
alert(&#8216;Bye yahoo advertisement! my new homepage is: soroush.secproject.com\nI will write there after that.&#8217;);<br />
eval(&#8216;top.d.getElementById(&#8220;FR&#8221;).setAttribute(&#8220;cols&#8221;,&#8221;*,0,0&#8243;);&#8217;);<br />
check4closing&#8211;;<br />
settelingTime = 1000;<br />
}<br />
}<br />
&lt;/script&gt;</em></p>
<p>at GeoCities.com and it works successfully: see [http://geocities.com/irsdl/blog/](6 Jan. 2009).</p>
<p>Now these are some techniques which I use them in neutralizing the JavaScript’s codes:<br />
1. Make a function with the same name of advertisement’s function to change its behavior and overwrite it!<br />
2. Change value of JavaScript’s global variables if they are important for advs.<br />
2. Using some Ajax methods to find and replace some html tags by my new parameters.<br />
3. Using some recursive loops too neutralize the advs. function during the time.<br />
4. Using some XSS methods to do some magic such as: true=false!</p>
<p>I think you can find your methods to close the advs. too ;)</p>
<p>BTW, do not forget my copyright rules. Thank you very much :)</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/is-there-any-way-to-close-free-websitesweblogs-advertisements/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why using the &#8220;include&#8221; techniques are dangerous for the novice developers?</title>
		<link>http://soroush.secproject.com/blog/2009/01/why-using-include-techniques-are-dangerous-for-novice-developers/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/why-using-include-techniques-are-dangerous-for-novice-developers/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 06:29:12 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=80</guid>
		<description><![CDATA[I don&#8217;t want to speak about the LFI (local file inclusion) or RFI (remote file inclusion) which we have a lot of articles about them. I just want to tell you about some simple facts ;) I have read a lot of source codes of web applications till now. And, I think one of the [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t want to speak about the LFI (local file inclusion) or RFI (remote file inclusion) which we have a lot of articles about them.<br />
I just want to tell you about some simple facts ;)<br />
I have read a lot of source codes of web applications till now.<br />
And, I think one of the most important logical vulnerabilities is incorrect using of &#8220;include&#8221; techniques.<br />
I want to explain this by some examples:<br />
&#8212;&#8212;&#8212;&#8211; Begin Example1 &#8212;&#8212;&#8212;&#8211;<br />
Example1. (ASP, PHP, JSP, ?)<br />
Assume that we have:<br />
1. Admin.asp -&gt;(Secured) which includes Check.asp, Header.asp, Main.asp<br />
2. Check.asp -&gt; Check admin session<br />
3. Header.asp -&gt; is for showing the top menu<br />
4. Main.asp -&gt; is for showing the administrator&#8217;s main page</p>
<p>So, if I execute Index.asp, I will execute all 3 other files which I mentioned too.</p>
<p>Question: What will happen if I point to the Main.asp or Header.asp directly without using the Index.asp?<br />
Answer: If Main.asp or Header.asp does not include Check.asp, attacker can see the admin page without having the administrator credential!<br />
Result: I see a lot of web application which had this problem!</p>
<p>Now assume that Check.asp is something like this:<br />
&#8212;&#8212;&#8212;&#8211; Begin Check.asp &#8212;&#8212;&#8212;&#8211;<br />
<em>some lines of codes blah blah blah<br />
&lt;%<br />
&#8216; Get an input from the user<br />
1 Input_CurrentFolder = Request(&#8220;currentFolder&#8221;)</em></p>
<p><em>2 &#8216; in order to get the root directory we must set an admin session<br />
3 session(&#8220;admin&#8221;)=true</em></p>
<p><em>4 directory = GetDirectory(Input_CurrentFolder)</em></p>
<p><em>&#8216;Terminate admin session for the security!<br />
5 session(&#8220;admin&#8221;)=false</em></p>
<p><em>%&gt;<br />
some lines of codes blah blah blah</em><br />
&#8212;&#8212;&#8212;&#8211; End Check.asp &#8212;&#8212;&#8212;&#8211;</p>
<p>I want to speak about the session. What do you think about these codes? Is there any security problem?</p>
<p>Question1: How can a user keep session(&#8220;admin&#8221;)=true for him/herself?<br />
Answer1: In order to do that, user needs to stop execution on line 4!<br />
Question2: Now, how can a user stop execution on line 4?<br />
Answer2: User must stop running the program on line 4. So, he/she must create an error on that line! So, actually it depends on some factors. And, I want to show you 2 of them which the first one is related to subject of this article.</p>
<p>1- First situation: Check.asp does not contain &#8220;GetDirectory&#8221; function and this function is in Header.asp. Now if attacker point directly to the Check.asp, he/she can get the admin session! Because the program will be crashed on line 4!<br />
2- Another situation: the &#8220;GetDirectory&#8221; function must not work with each &#8220;Input_CurrentFolder&#8221;. In other words, &#8220;GetDirectory&#8221; function must crash because of some value of &#8220;Input_CurrentFolder&#8221;.<br />
Note: we must not have something like &#8220;On error resume next&#8221; which force the program to continue.<br />
Result: I think this vulnerability is not a strange one; However, it is not very common. I had seen this vulnerability in some programs such as the old version of &#8220;hosting controller&#8221;!<br />
&#8212;&#8212;&#8212;&#8211; End Example1 &#8212;&#8212;&#8212;&#8211;<br />
&#8212;&#8212;&#8212;&#8211; Begin Example2 &#8212;&#8212;&#8212;&#8211;<br />
Example2. (PHP, ?)<br />
This is not new example but it is related to this subject.<br />
Assume that we have:<br />
1. SessionControl.php -&gt;(Secured) which control the user&#8217;s session<br />
2. EditContent.php -&gt; by using this file, administrator can edit the website&#8217;s pages<br />
3. AdminContent.php -&gt; (Secured) which includes SessionControl.php and EditContent.php.</p>
<p>And assume that EditContent.php is something like this:<br />
&#8212;&#8212;&#8212;&#8211; Begin EditContent.php &#8212;&#8212;&#8212;&#8211;<br />
<em>&lt;?<br />
if (!isset($_SESSION['Level'])) exit();<br />
if ($_SESSION['Level']==&#8217;admin&#8217;)<br />
{<br />
some lines of codes only for admin blah blah blah<br />
}<br />
?&gt;</em><br />
&#8212;&#8212;&#8212;&#8211; End EditContent.php &#8212;&#8212;&#8212;&#8211;</p>
<p>You can easily see that EditContent.php is insecure because there is not any session_start() in it and everyone can set $_SESSION['Level']. Just like this: http://[something]/EditContent.php?_SESSION[Level]=admin<br />
Note: php global variables must be on.<br />
&#8212;&#8212;&#8212;&#8211; End Example2 &#8212;&#8212;&#8212;&#8211;</p>
<p>So, you saw that the catastrophic vulnerability can easily create by the bad usage of &#8220;include&#8221; techniques.</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/why-using-include-techniques-are-dangerous-for-novice-developers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reported Security Flaws to 4 sites</title>
		<link>http://soroush.secproject.com/blog/2009/01/reported-security-flaws-to-4-sites/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/reported-security-flaws-to-4-sites/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:14:16 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=66</guid>
		<description><![CDATA[Some security flaws reported to 4 sites: ravand.com florists.com itiran.com careers.yahoo.com :)]]></description>
			<content:encoded><![CDATA[<p>Some security flaws reported to 4 sites:</p>
<p>ravand.com</p>
<p>florists.com</p>
<p>itiran.com</p>
<p>careers.yahoo.com</p>
<p>:)</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/reported-security-flaws-to-4-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Application Security in 5 Minutes</title>
		<link>http://soroush.secproject.com/blog/2009/01/web-application-security-in-5-minutes/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/web-application-security-in-5-minutes/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 06:57:19 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Posts]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=54</guid>
		<description><![CDATA[Internal Links: for .PPT (Powerpoint) file click here. for .PPTx (Powerpoint 2007) file click here. External Link: To see this PDF file click here. I do not have my handnotes now ;) I will put them here as soon as I find them.]]></description>
			<content:encoded><![CDATA[<p>Internal Links:</p>
<p style="padding-left: 60px;">for .PPT (Powerpoint) file <a href="http://soroush.secproject.com/downloadable/web_security_in_5_min.ppt" target="_blank">click here</a>.</p>
<p style="padding-left: 60px;">for .PPTx (Powerpoint 2007) file <a href="http://soroush.secproject.com/downloadable/web_security_in_5_min.pptx?office2007" target="_blank">click here</a>.</p>
<p>External Link: To see this PDF file <a title="Web Application Security in 5 Minutes" href="http://www.cs.bham.ac.uk/~mdr/teaching/modules08/security/5_min_talks/WebSECURITY.pdf" target="_blank">click here</a>.</p>
<p>I do not have my handnotes now ;)</p>
<p>I will put them here as soon as I find them.</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/web-application-security-in-5-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Incorrect solution to disable script execution by .htaccess</title>
		<link>http://soroush.secproject.com/blog/2009/01/incorrect-solution-to-disable-script-execution-by-htaccess/</link>
		<comments>http://soroush.secproject.com/blog/2009/01/incorrect-solution-to-disable-script-execution-by-htaccess/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 05:17:08 +0000</pubDate>
		<dc:creator>Soroush Dalili</dc:creator>
				<category><![CDATA[Security Articles]]></category>
		<category><![CDATA[Security Posts]]></category>

		<guid isPermaLink="false">http://soroush.secproject.com/blog/?p=50</guid>
		<description><![CDATA[I saw some people use this code in &#8220;.htaccess&#8221; to disable script execution: &#60;Files ~ &#8220;(php\.ini&#124;\.htaccess&#124;\.php.?&#124;\.pl&#124;\.cgi&#124;\.spc&#124;\.jsp&#124;\.cfm&#124;\.passwd)$&#8221;&#62; order deny,allow deny from all &#60;/Files&#62; But I think, this code is not secure at all. I bypass it by uploading a file with this name: &#8220;testpage.PhP&#8221;. (I tested it on my web hosting) The problem is: This code [...]]]></description>
			<content:encoded><![CDATA[<p>I saw some people use this code in &#8220;.htaccess&#8221; to disable script execution:</p>
<p style="text-align: left; padding-left: 30px;"><strong><span style="color: #ff0000;"><em>&lt;Files ~ &#8220;(php\.ini|\.htaccess|\.php.?|\.pl|\.cgi|\.spc|\.jsp|\.cfm|\.passwd)$&#8221;&gt;<br />
order deny,allow<br />
deny from all<br />
&lt;/Files&gt;</em></span></strong>
</p>
<p style="text-align: left;">But I think, this code is not secure at all. I bypass it by uploading a file with this name: &#8220;testpage.PhP&#8221;. (I tested it on my web hosting)</p>
<p style="text-align: left;">The problem is:</p>
<p style="text-align: left;"><strong>This code has a case sensitive regular expression.</strong></p>
<p style="text-align: left;">Note: &lt;FilesMatch&gt; is similar to &lt;Files&gt; with this problem</p>
<p style="text-align: left;">One solution: use this code instead of that code:</p>
<p style="text-align: left; padding-left: 30px;"><span style="color: #008000;"><em><strong># secure directory by disabling script execution<br />
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi<br />
Options -ExecCGI</strong></em></span>
</p>
<p style="text-align: left;">Useful links:</p>
<p style="text-align: left;"><a href="http://www.askapache.com/htaccess/using-filesmatch-and-files-in-htaccess.html" target="_blank">http://www.askapache.com/htaccess/using-filesmatch-and-files-in-htaccess.html</a></p>
<p style="text-align: left;"><a href="http://blog.differentpixel.com/archives/198-Lots-of-.htaccess-tips,-tricks-and-hacks.html" target="_blank">http://blog.differentpixel.com/archives/198-Lots-of-.htaccess-tips,-tricks-and-hacks.html</a></p>
<p style="text-align: left;"><a href="http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/" target="_blank">http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/</a></p>
<p style="text-align: left;">
<p style="text-align: left;">Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://soroush.secproject.com/blog/2009/01/incorrect-solution-to-disable-script-execution-by-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.564 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-07-17 06:34:19 -->
