<?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>The Accidental Developer &#187; xss</title>
	<atom:link href="http://osric.com/chris/accidental-developer/tag/xss/feed/" rel="self" type="application/rss+xml" />
	<link>http://osric.com/chris/accidental-developer</link>
	<description>What if Gregor Samsa awoke a computer programmer?</description>
	<lastBuildDate>Mon, 30 Apr 2012 21:16:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Validating the Referer: Not as Useless as I Thought?</title>
		<link>http://osric.com/chris/accidental-developer/2009/05/validating-the-referer/</link>
		<comments>http://osric.com/chris/accidental-developer/2009/05/validating-the-referer/#comments</comments>
		<pubDate>Thu, 07 May 2009 21:46:37 +0000</pubDate>
		<dc:creator>Chris Herdt</dc:creator>
				<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[csrf]]></category>
		<category><![CDATA[referer]]></category>
		<category><![CDATA[xsrf]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://osric.com/chris/accidental-developer/?p=167</guid>
		<description><![CDATA[I used to validate the HTTP referer header to verify that users were accessing certain pages from certain other pages. For example, users accessing sampleapp/edit.cfm should be getting there from sampleapp/index.cfm. Anyone accessing sampleapp/edit.cfm without coming from sampleapp/index.cfm was probably monkeying around and should be send back to the index page, or possibly even logged [...]]]></description>
			<content:encoded><![CDATA[<p>I used to validate the HTTP referer header to verify that users were accessing certain pages from certain other pages. For example, users accessing <code>sampleapp/edit.cfm</code> should be getting there from <code>sampleapp/index.cfm</code>. Anyone accessing <code>sampleapp/edit.cfm</code> without coming from <code>sampleapp/index.cfm</code> was probably monkeying around and should be send back to the index page, or possibly even logged out.</p>
<p>However, it is fairly trivial to modify your referer header, so anyone who wants to monkey around with <code>sampleapp/edit.cfm</code> can make it look like they are coming from <code>sampleapp/index.cfm</code>. (If you&#8217;re interested in modifying your HTTP headers, I suggest checking out the <a href="https://addons.mozilla.org/en-US/firefox/addon/966">Tamper Data</a> Firefox plugin.) The check provides absolutely no assurance that the user is really coming from the page. Therefore, I decided the check was useless.</p>
<p>I&#8217;ve been attending a weekly web application security study group with some of my colleagues for the past several weeks, where we&#8217;ve been reading and discussing <a href="http://portswigger.net/wahh/">The Web Application Hacker&#8217;s Handbook</a>. The past couple sessions have been about cross-site scripting (XSS). <a href="http://www.madirish.net/">Justin Klein Keane</a> brought up a good point at today&#8217;s session: checking the referer may not keep a malicious user from altering his or her referer string, but could help identify victims of XSS attacks who were possibly directed to submit malicious data from a third-party site.</p>
<p>Checking the referer isn&#8217;t a sufficient protection against malicious users, by any means, but it could still be helpful. What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://osric.com/chris/accidental-developer/2009/05/validating-the-referer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

