<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"><channel><title>Preventing Open Redirection Attacks</title><link>http://asp.net</link><pubDate>Fri, 26 Apr 2013 05:18:13 GMT</pubDate><generator>umbraco</generator><description>Comments for Preventing Open Redirection Attacks</description><language>en</language><atom:link href="http://asp.net/rss/comments/27604" rel="self" type="application/rss+xml" /><item><title>Comment Posted by nachid</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Thu, 30 Dec 2010 13:40:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011365</guid><description><![CDATA[ <p>Thank you so much</p><p>I am using MVC3 and I did not note this option</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/nachid.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by larsenutah08</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Mon, 17 Jan 2011 18:02:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000011579</guid><description><![CDATA[ <p>Thank you for showing the codes. It helps me. </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/larsenutah08.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by crossmonk</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Tue, 23 Aug 2011 07:51:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014014</guid><description><![CDATA[ <p>What&#39;s this &quot;FormsService&quot; then?  Oh, it&#39;s a magical class not part of the framework that you&#39;ve created for this demo....but haven&#39;t explained?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/crossmonk.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ricka6</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Wed, 26 Oct 2011 14:29:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014503</guid><description><![CDATA[ <p>crossmonk : What&#39;s this &quot;FormsService&quot; then? </p><p>No, it&#39;s part of the framework, specifically System.Web.Security. In MVC 2, this code is generated for you. See <a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/system.web.security.formsauthentication.aspx" target="_blank">msdn.microsoft.com/</a> or create a MVC 2 project. It&#39;s not used in MVC 3 and higher.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ricka6.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ANILBABU</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Wed, 01 Aug 2012 02:41:30 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016082</guid><description><![CDATA[ <p>What is URL REDIRECTION?How can i use this concept in my .net?</p><p>my task is i have generated one url like this &quot;<a rel="nofollow" href="http://example.com/" target="_blank">example.com/</a>&quot;</p><p>I am passing one pearameter like &quot;<a rel="nofollow" href="http://example.com/Empno=1" target="_blank">example.com/</a>&quot;</p><p>I want to display Ename in Database table that corresponding &quot;Empno&quot;</p><p>plz Help me Give me one simple example</p><p></p><p>I am new this concepts</p><p>plz Help me send source code to my mailID:mandla.anilbabu@gmail.com</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ANILBABU.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vijay.jangid</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Wed, 03 Oct 2012 03:01:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016568</guid><description><![CDATA[ <p>Indeed a good (must learn) tutorial. </p><p>Thanks Jon.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/vijay.jangid.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hotfusion</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Sat, 13 Oct 2012 01:50:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016612</guid><description><![CDATA[ <p>Thanks for the article - it&#39;s really great.</p><p>But I don&#39;t understand how changed redirect url gets to an ordinary user ?</p><p>If a hacker changes return url - it&#39;s only changed in his browser, right ?</p><p>Did I miss something ?</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/hotfusion.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ahzzz</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Wed, 31 Oct 2012 16:49:59 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016717</guid><description><![CDATA[ <p>I was working on MVC4 and I had Url.IsLocalUrl in MVC3.</p><p>However it gave different results once upgrade to MVC4.</p><p></p><p>In MVC3, these 2 evaluates to true.</p><p>Assert.IsTrue(sut.Url.IsLocalUrl(&quot;http://localhost/blah&quot;));</p><p>Assert.IsTrue(sut.Url.IsLocalUrl(&quot;http://localhost&quot;));</p><p></p><p>While in MVC4, they return false;</p><p>Reflecting against the code, it&#39;s calling WebPages.RequestExtensions.IsUrlLocalToHost(url) method.</p><p></p><p>Instead of matching Uri.Host, this method has changed to look at starting char of ~/ and / or \.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/ahzzz.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by liquidthoughts</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Fri, 26 Apr 2013 05:16:12 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018988</guid><description><![CDATA[ <p>I really dont understand the short sightedness of Microsoft devs. </p><p></p><p>bool isLocal = !url.StartsWith(&quot;http:&quot;, StringComparison.OrdinalIgnoreCase)</p><p>            &amp;&amp; !url.StartsWith(&quot;https:&quot;, StringComparison.OrdinalIgnoreCase)</p><p>            &amp;&amp; Uri.IsWellFormedUriString(url, UriKind.Relative);</p><p></p><p>Why would you assume that a url starting with HTTP or HTTPS is not a local URL? If I have a site with the login url as <a rel="nofollow" href="http://store.com/login?returnUrl=http" target="_blank">store.com/</a>://store.com/cart what happens now? </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/liquidthoughts.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by liquidthoughts</title><link>http://asp.net/mvc/tutorials/security/preventing-open-redirection-attacks</link><pubDate>Fri, 26 Apr 2013 05:18:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018989</guid><description><![CDATA[ <p>so http ://store.com/login ? http ://store.com/cart would fail?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/liquidthoughts.jpg?forceidenticon=false&amp;dt=635046652800000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>