<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[PunBB Forums — Regular expressions in confirm_refererer ??]]></title>
		<link>https://punbb.informer.com/forums/topic/17833/regular-expressions-in-confirmrefererer/</link>
		<atom:link href="https://punbb.informer.com/forums/feed/rss/topic/17833/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Regular expressions in confirm_refererer ??.]]></description>
		<lastBuildDate>Fri, 28 Dec 2007 03:34:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105935/#p105935</link>
			<description><![CDATA[<div class="quotebox"><cite>Rickard wrote:</cite><blockquote><p>Or take it straight from the horses mouth <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p><a href="http://blog.punbb.org/2007/09/18/preventing-csrf-attacks/">http://blog.punbb.org/2007/09/18/preven … f-attacks/</a></p></blockquote></div><p>I guess I can&#039;t just code my own implementations of 1.3&#039;s functionalities <img src="https://punbb.informer.com/forums/img/smilies/tongue.png" width="15" height="15" alt="tongue" />.</p><p>I got it fixed anyway.</p><p>Thanks!</p><p>Pier-Luc</p>]]></description>
			<author><![CDATA[null@example.com (KarboN)]]></author>
			<pubDate>Fri, 28 Dec 2007 03:34:49 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105935/#p105935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105926/#p105926</link>
			<description><![CDATA[<p>Or take it straight from the horses mouth <img src="https://punbb.informer.com/forums/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p><a href="http://blog.punbb.org/2007/09/18/preventing-csrf-attacks/">http://blog.punbb.org/2007/09/18/preven … f-attacks/</a></p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Thu, 27 Dec 2007 15:29:25 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105926/#p105926</guid>
		</item>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105924/#p105924</link>
			<description><![CDATA[<p>Oh... true that.</p><p>*Opens Google <img src="https://punbb.informer.com/forums/img/smilies/roll.png" width="15" height="15" alt="roll" />*</p>]]></description>
			<author><![CDATA[null@example.com (KarboN)]]></author>
			<pubDate>Thu, 27 Dec 2007 14:46:13 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105924/#p105924</guid>
		</item>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105922/#p105922</link>
			<description><![CDATA[<p>It protects against CSRF attacks. It is important.</p>]]></description>
			<author><![CDATA[null@example.com (Smartys)]]></author>
			<pubDate>Thu, 27 Dec 2007 14:29:57 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105922/#p105922</guid>
		</item>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105921/#p105921</link>
			<description><![CDATA[<p>Hmm...&nbsp; Okay.</p><p>I was wondering if this function was a real add-up in security, since the rights (moderator, admin, post-owner) are verified at each operation.</p><p>Is there any situation where this can really be exploited, or can I just keep the function disabled without much trouble?</p>]]></description>
			<author><![CDATA[null@example.com (KarboN)]]></author>
			<pubDate>Thu, 27 Dec 2007 14:20:12 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105921/#p105921</guid>
		</item>
		<item>
			<title><![CDATA[Re: Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105911/#p105911</link>
			<description><![CDATA[<p>Unless you figure out how to solve this yourself, you&#039;ll have to wait for PunBB 1.3 in which the referrer check has been obsoleted.</p>]]></description>
			<author><![CDATA[null@example.com (Rickard)]]></author>
			<pubDate>Thu, 27 Dec 2007 10:00:02 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105911/#p105911</guid>
		</item>
		<item>
			<title><![CDATA[Regular expressions in confirm_refererer ??]]></title>
			<link>https://punbb.informer.com/forums/post/105751/#p105751</link>
			<description><![CDATA[<p>Hello guys,</p><p>I&#039;ve done an URL-rewriting modification on my BB which makes topics have url like http://[mytld]/##-Forum-Name/t###-thread-name.html</p><p>Since then, I can neither lock, or move threads because of the referer confirmation.</p><div class="codebox"><pre><code>function confirm_referrer($script)
{
    global $pun_config, $lang_common;

    if (!preg_match(&#039;#^&#039;.preg_quote(str_replace(&#039;www.&#039;, &#039;&#039;, $pun_config[&#039;o_base_url&#039;]).&#039;/&#039;.$script, &#039;#&#039;).&#039;#i&#039;, str_replace(&#039;www.&#039;, &#039;&#039;, (isset($_SERVER[&#039;HTTP_REFERER&#039;]) ? $_SERVER[&#039;HTTP_REFERER&#039;] : &#039;&#039;))))
        message($lang_common[&#039;Bad referrer&#039;]);
}</code></pre></div><p>I&#039;m quite bad with regex and I have a quite hard time figuring out how to do this one...</p><p>Anyone can help?</p><p>Pier-Luc</p>]]></description>
			<author><![CDATA[null@example.com (KarboN)]]></author>
			<pubDate>Mon, 24 Dec 2007 00:49:50 +0000</pubDate>
			<guid>https://punbb.informer.com/forums/post/105751/#p105751</guid>
		</item>
	</channel>
</rss>
