<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/26/prevent-url-manipulation-attacks.aspx</link><description>In this tip, Stephen Walther explains how hackers can steal sensitive information from an ASP.NET MVC website by manipulating URLs. I also discuss how you can build unit tests to prevent this type of attack by mocking the ControllerContext.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/26/prevent-url-manipulation-attacks.aspx#6719345</link><pubDate>Tue, 04 Nov 2008 09:06:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6719345</guid><dc:creator>Nelis</dc:creator><author>Nelis</author><description>&lt;p&gt;How about always preventing a certain link? In case you only want to render that view as a result of a post on another page.&lt;/p&gt;
&lt;p&gt;I could imagine to not use RedirectToAction but to return View('&amp;lt;name&amp;gt;'). However, you get the F5/Refresh problem on the previous page in return.&lt;/p&gt;
&lt;p&gt;Furthermore, if the new page contains a FORM you still need an action that accepts the POST command.&lt;/p&gt;
&lt;p&gt;I'd like any thoughts on this subject&lt;/p&gt;
&lt;p&gt;Session state?&lt;/p&gt;
&lt;p&gt;ActionFilter?&lt;/p&gt;
&lt;p&gt;combination of those?&lt;/p&gt;
&lt;p&gt;something completely different?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6719345" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC Archived Blog Posts, Page 1</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/26/prevent-url-manipulation-attacks.aspx#6325716</link><pubDate>Fri, 27 Jun 2008 04:28:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6325716</guid><dc:creator>ASP.NET MVC Archived Blog Posts, Page 1</dc:creator><author>ASP.NET MVC Archived Blog Posts, Page 1</author><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC Archived Blog Posts, Page 1&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6325716" width="1" height="1"&gt;</description></item><item><title>ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks - Stephen Walther on ASP.NET MVC</title><link>http://weblogs.asp.net/stephenwalther/archive/2008/06/26/prevent-url-manipulation-attacks.aspx#6324889</link><pubDate>Thu, 26 Jun 2008 23:36:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6324889</guid><dc:creator>ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks - Stephen Walther on ASP.NET MVC</dc:creator><author>ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks - Stephen Walther on ASP.NET MVC</author><description>&lt;p&gt;Pingback from &amp;nbsp;ASP.NET MVC Tip #10 - Prevent URL Manipulation Attacks - Stephen Walther on ASP.NET MVC&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6324889" width="1" height="1"&gt;</description></item></channel></rss>