<?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>Inliniac &#187; Ivan Ristic</title>
	<atom:link href="http://www.inliniac.net/blog/tag/ivan-ristic/feed" rel="self" type="application/rss+xml" />
	<link>http://www.inliniac.net/blog</link>
	<description>Everything inline.</description>
	<lastBuildDate>Thu, 02 Sep 2010 22:20:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>New security weblog by Ivan Ristic</title>
		<link>http://www.inliniac.net/blog/2008/01/22/new-security-weblog-by-ivan-ristic.html</link>
		<comments>http://www.inliniac.net/blog/2008/01/22/new-security-weblog-by-ivan-ristic.html#comments</comments>
		<pubDate>Tue, 22 Jan 2008 11:40:04 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[Ivan Ristic]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/2008/01/22/new-security-weblog-by-ivan-ristic.html</guid>
		<description><![CDATA[I just noticed that ModSecurity developer Ivan Ristic has started a new blog on computer security and open source. Check it out here: http://blog.ivanristic.com/ Great idea Ivan!]]></description>
			<content:encoded><![CDATA[<p>I just noticed that ModSecurity developer Ivan Ristic has started a new blog on computer security and open source. Check it out here: <a href="http://blog.ivanristic.com/" target="_blank">http://blog.ivanristic.com/</a></p>
<p>Great idea Ivan! <img src='http://www.inliniac.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2008/01/22/new-security-weblog-by-ivan-ristic.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update on using realtime blacklists with ModSecurity</title>
		<link>http://www.inliniac.net/blog/2007/03/01/update-on-using-realtime-blacklists-with-modsecurity.html</link>
		<comments>http://www.inliniac.net/blog/2007/03/01/update-on-using-realtime-blacklists-with-modsecurity.html#comments</comments>
		<pubDate>Thu, 01 Mar 2007 08:04:55 +0000</pubDate>
		<dc:creator>Victor Julien</dc:creator>
				<category><![CDATA[IPS]]></category>
		<category><![CDATA[ModSecurity]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[comment spam]]></category>
		<category><![CDATA[Ivan Ristic]]></category>
		<category><![CDATA[rbl]]></category>

		<guid isPermaLink="false">http://www.inliniac.net/blog/?p=66</guid>
		<description><![CDATA[A few days ago I posted a blog article about stopping comment spam with ModSecurity using realtime blacklists (rbl). While the approach was working, I noted having problems with rules when I tried to match on POST methods in HTTP requests. Luckily, ModSecurity creator Ivan Ristic was quick to point out where the problem is. [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I posted a blog article about stopping comment spam with ModSecurity using realtime blacklists (rbl). While the approach was working, I noted having problems with rules when I tried to match on POST methods in HTTP requests.</p>
<p>Luckily, ModSecurity creator Ivan Ristic was quick to point out where the problem is. I&#8217;m using the Core Ruleset for ModSecurity, and one thing that ruleset does is use the &#8216;lowercase&#8217; transformation. This converts all text from arguments to lowercase, so my ^POST$ match would never be able to match. So like Ivan suggested, using ^post$ solved this part.</p>
<p>Next Ivan pointed out a weakness in the rules. My rules looked for /blog/wp-comment-post.php, and would be easily evaded by just using /blog//wp-comment-post.php. He suggested using the &#8216;normalisePath&#8217; transformation. I did this, but I also slightly changed the rules to not look for the /blog/ part at all (maybe this makes normalisePath useless, but I decided to rather be safe than sorry).</p>
<p>The rules I&#8217;m using now look like this:</p>
<p align="left"><strong>SecRule REQUEST_METHOD &#8220;^post$&#8221; &#8220;log,deny,chain,msg:&#8217;LOCAL comment spammer at rbl list.dsbl.org&#8217;&#8221;<br />
SecRule REQUEST_URI &#8220;wp-(comments-post|trackback)\.php$&#8221; &#8220;chain,t:normalisePath&#8221;<br />
SecRule REMOTE_ADDR &#8220;@rbl list.dsbl.org&#8221;</strong></p>
<p align="left"><strong> SecRule REQUEST_METHOD &#8220;^post$&#8221; &#8220;log,deny,chain,msg:&#8217;LOCAL comment spammer at rbl bl.spamcop.net&#8217;&#8221;</strong><br />
<strong> SecRule REQUEST_URI &#8220;wp-(comments-post|trackback)\.php$&#8221; &#8220;chain,t:normalisePath&#8221;</strong><br />
<strong> SecRule REMOTE_ADDR &#8220;@rbl bl.spamcop.net&#8221;</strong></p>
<p align="left"><strong> SecRule REQUEST_METHOD &#8220;^post$&#8221; &#8220;log,deny,chain,msg:&#8217;LOCAL comment spammer at rbl sbl-xbl.spamhaus.org&#8217;&#8221;</strong><br />
<strong> SecRule REQUEST_URI &#8220;wp-(comments-post|trackback)\.php$&#8221; &#8220;chain,t:normalisePath&#8221;</strong><br />
<strong> SecRule REMOTE_ADDR &#8220;@rbl sbl-xbl.spamhaus.org&#8221;</strong></p>
<p>Thanks a lot Ivan Ristic for your comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.inliniac.net/blog/2007/03/01/update-on-using-realtime-blacklists-with-modsecurity.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
