<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Webapp security: Different DB permissions for different requests</title>
	<atom:link href="http://www.brainonfire.net/blog/set-db-permission-per-request/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainonfire.net/blog/set-db-permission-per-request/</link>
	<description>Tim McCormack, distilled</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:07:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tim McCormack</title>
		<link>http://www.brainonfire.net/blog/set-db-permission-per-request/comment-page-1/#comment-22347</link>
		<dc:creator>Tim McCormack</dc:creator>
		<pubDate>Sun, 13 Jan 2008 05:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2008/01/12/set-db-permission-per-request/#comment-22347</guid>
		<description>Don&#039;t be daft. Of course it&#039;s harder to use POST than GET. I know that forms can be auto-submitted in iframes, but it&#039;s easier to set up a CSS background-image-based attack in forums and other areas that get a lot more traffic. So yeah, from a layered security standpoint, it &lt;em&gt;is&lt;/em&gt; advantageous to add these couple lines of code.</description>
		<content:encoded><![CDATA[<p>Don't be daft. Of course it's harder to use POST than GET. I know that forms can be auto-submitted in iframes, but it's easier to set up a CSS background-image-based attack in forums and other areas that get a lot more traffic. So yeah, from a layered security standpoint, it <em>is</em> advantageous to add these couple lines of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cairnarvon</title>
		<link>http://www.brainonfire.net/blog/set-db-permission-per-request/comment-page-1/#comment-22346</link>
		<dc:creator>Cairnarvon</dc:creator>
		<pubDate>Sun, 13 Jan 2008 04:53:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2008/01/12/set-db-permission-per-request/#comment-22346</guid>
		<description>There&#039;s a good way to do design by contract, a lot of bad ways, and a huge number of meaningless ways. This would be an example of a meaningless way.

And trust me, I know more about CSRF than you do, if you think it&#039;s harder to use POST than GET with it.</description>
		<content:encoded><![CDATA[<p>There's a good way to do design by contract, a lot of bad ways, and a huge number of meaningless ways. This would be an example of a meaningless way.</p>
<p>And trust me, I know more about CSRF than you do, if you think it's harder to use POST than GET with it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim McCormack</title>
		<link>http://www.brainonfire.net/blog/set-db-permission-per-request/comment-page-1/#comment-22312</link>
		<dc:creator>Tim McCormack</dc:creator>
		<pubDate>Sat, 12 Jan 2008 19:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2008/01/12/set-db-permission-per-request/#comment-22312</guid>
		<description>@Cairnarvon: I take it you have a similarly low opinion of assertions, preconditions, postconditions, and other design-by-contract mechanisms?  Ever read up on CSRF? And did you know that you&#039;re not logged into your site anymore?

&lt;img src=&quot;http://cairnarvon.rotahall.org/wp-login.php?action=logout&quot;&gt;</description>
		<content:encoded><![CDATA[<p>@Cairnarvon: I take it you have a similarly low opinion of assertions, preconditions, postconditions, and other design-by-contract mechanisms?  Ever read up on CSRF? And did you know that you're not logged into your site anymore?</p>
<p><img src="http://cairnarvon.rotahall.org/wp-login.php?action=logout"/></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cairnarvon</title>
		<link>http://www.brainonfire.net/blog/set-db-permission-per-request/comment-page-1/#comment-22310</link>
		<dc:creator>Cairnarvon</dc:creator>
		<pubDate>Sat, 12 Jan 2008 19:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.brainonfire.net/2008/01/12/set-db-permission-per-request/#comment-22310</guid>
		<description>&lt;blockquote&gt;Why not enforce this at the permissions level?&lt;/blockquote&gt;

Because it&#039;s a waste of time? I hope you don&#039;t think forcing the distinction between GET and POST passes for any kind of input validation.

All you&#039;re really doing is adding a roadblock for yourself as a developer. One you generally shouldn&#039;t be running into if you&#039;re being consistent in your implementation, but one that&#039;s completely unnecessary when you do run into it.
At best, this falls under &quot;enforcing design principles purely for the sake of design principles&quot;. Very &lt;i&gt;&lt;b&gt;ENTERPRISE READY&lt;/b&gt;&lt;/i&gt;.</description>
		<content:encoded><![CDATA[<blockquote><p>Why not enforce this at the permissions level?</p></blockquote>
<p>Because it's a waste of time? I hope you don't think forcing the distinction between GET and POST passes for any kind of input validation.</p>
<p>All you're really doing is adding a roadblock for yourself as a developer. One you generally shouldn't be running into if you're being consistent in your implementation, but one that's completely unnecessary when you do run into it.<br />
At best, this falls under "enforcing design principles purely for the sake of design principles". Very <i><b>ENTERPRISE READY</b></i>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

