<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — CSRF in common.php question...]]></title>
		<link>https://punbb.informer.com/forums/topic/18404/csrf-in-commonphp-question/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/18404/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in CSRF in common.php question....]]></description>
		<lastBuildDate>Mon, 25 Feb 2008 19:06:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/110440/#p110440</link>
			<description><![CDATA[<div class="quotebox"><cite>StevenBullen wrote:</cite><blockquote><div class="quotebox"><cite>intedinmamma wrote:</cite><blockquote><p>One solution is to have a &quot;proxy script&quot;, which just adds the CSRF token and sends it all along to wherever it should go.</p></blockquote></div><p>Will this work on 100% of what PunBB 1.3 will work on? I am positive not all people/hosting lets you run proxy scripts etc.</p></blockquote></div><p>It should be quite easy as long as you can use fsockopen(). (available in both PHP4 &amp; 5) Doing it that way you will just have to resend the POST data along with a CSRF token, check <a href="http://php.net/function.fsockopen">php.net</a> for examples on doing the harder half of it.</p>]]></description>
			<author><![CDATA[null@example.com (intedinmamma)]]></author>
			<pubDate>Mon, 25 Feb 2008 19:06:28 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/110440/#p110440</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/110438/#p110438</link>
			<description><![CDATA[<div class="quotebox"><cite>intedinmamma wrote:</cite><blockquote><p>One solution is to have a &quot;proxy script&quot;, which just adds the CSRF token and sends it all along to wherever it should go.</p></blockquote></div><p>Will this work on 100% of what PunBB 1.3 will work on? I am positive not all people/hosting lets you run proxy scripts etc.</p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Mon, 25 Feb 2008 18:00:00 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/110438/#p110438</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/110421/#p110421</link>
			<description><![CDATA[<div class="quotebox"><cite>StevenBullen wrote:</cite><blockquote><p>Any idea of a way around this?</p></blockquote></div><div class="quotebox"><cite>intedinmamma wrote:</cite><blockquote><p>One solution is to have a &quot;proxy script&quot;, which just adds the CSRF token and sends it all along to wherever it should go.</p></blockquote></div><p><img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (intedinmamma)]]></author>
			<pubDate>Mon, 25 Feb 2008 13:54:26 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/110421/#p110421</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/110416/#p110416</link>
			<description><![CDATA[<p>No, for security reasons there is no way around it.</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 25 Feb 2008 11:25:22 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/110416/#p110416</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/110403/#p110403</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>game.swf?csrf_token=foo<br />You can&#039;t get the value of csrf_token from that?</p></blockquote></div><p>Yeah but doing this I will still need to edit all the games to POST the csrf_token. Correct?</p><p>I done a few and this works fine. But I have no interest in doing all the games.<br />Any idea of a way around this?</p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Mon, 25 Feb 2008 06:24:47 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/110403/#p110403</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109977/#p109977</link>
			<description><![CDATA[<p>Thanks, corrected <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 18 Feb 2008 23:57:54 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109977/#p109977</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109976/#p109976</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>No, it&#039;s very simple. You should be able to understand it just by looking at the code. <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />Basically, when POSTing, you need to include a hidden field. The name should be csrf_token and the value should be the output of the function generate_csrf_token. The function takes one parameter, which is the absolute URL of the page you&#039;re submitting to.</p></blockquote></div><p>Thanks Smartys, I was actually using the relative path.</p><p>(sidenote: the function&#039;s name is generate_form_token, not generate_csrf_token, just for those wondering).</p>]]></description>
			<author><![CDATA[null@example.com (Strofanto)]]></author>
			<pubDate>Mon, 18 Feb 2008 23:52:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109976/#p109976</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109975/#p109975</link>
			<description><![CDATA[<p>No, it&#039;s very simple. You should be able to understand it just by looking at the code. <img src="https://punbb.informer.com/forums/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />Basically, when POSTing, you need to include a hidden field. The name should be csrf_token and the value should be the output of the function generate_form_token. The function takes one parameter, which is the absolute URL of the page you&#039;re submitting to.</p><p>Edit: Corrected the function name</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Mon, 18 Feb 2008 23:35:14 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109975/#p109975</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109973/#p109973</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>You can&#039;t get around the CSRF check. You need to implement it.</p></blockquote></div><p>Can you explain how to do that or is too complicated?</p>]]></description>
			<author><![CDATA[null@example.com (Strofanto)]]></author>
			<pubDate>Mon, 18 Feb 2008 23:31:42 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109973/#p109973</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109704/#p109704</link>
			<description><![CDATA[<p>One solution is to have a &quot;proxy script&quot;, which just adds the CSRF token and sends it all along to wherever it should go.</p>]]></description>
			<author><![CDATA[null@example.com (intedinmamma)]]></author>
			<pubDate>Thu, 14 Feb 2008 13:23:40 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109704/#p109704</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109698/#p109698</link>
			<description><![CDATA[<p>game.swf?csrf_token=foo<br />You can&#039;t get the value of csrf_token from that?</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 14 Feb 2008 11:39:20 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109698/#p109698</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109697/#p109697</link>
			<description><![CDATA[<p>The posting is done from the flash object not from the page. Correct? Which means anything I have passed to the page will not be passed via the submit score button. Unless im missing something. Which is probably whats happening here... <img src="https://punbb.informer.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Thu, 14 Feb 2008 11:30:46 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109697/#p109697</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109696/#p109696</link>
			<description><![CDATA[<p>When you&#039;re writing your own arcade.php file you can&#039;t add a call to the CSRF generation function in the right place? o.O</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 14 Feb 2008 11:24:21 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109696/#p109696</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109695/#p109695</link>
			<description><![CDATA[<div class="quotebox"><cite>Smartys wrote:</cite><blockquote><p>I have absolutely no idea. But I don&#039;t see why you can&#039;t pass the game the proper CSRF token via the URL and then have it use that when POSTing.</p></blockquote></div><p>This is probably possible... But not really the ideal for 300 or so games. It would take me years... <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>This is a little worrying because I cant even get round it lol. The hook wont let me as its after it lol.</p>]]></description>
			<author><![CDATA[null@example.com (StevenBullen)]]></author>
			<pubDate>Thu, 14 Feb 2008 11:23:30 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109695/#p109695</guid>
		</item>
		<item>
			<title><![CDATA[Re: CSRF in common.php question...]]></title>
			<link>https://punbb.informer.com/forums/post/109694/#p109694</link>
			<description><![CDATA[<p>I have absolutely no idea. But I don&#039;t see why you can&#039;t pass the game the proper CSRF token via the URL and then have it use that when POSTing.</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 14 Feb 2008 11:21:49 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/109694/#p109694</guid>
		</item>
	</channel>
</rss>
