<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Rules on Inliniac</title>
    <link>https://inliniac.net/blog/tag/rules/</link>
    <description>Recent content in Rules on Inliniac</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 16 Jun 2007 12:37:13 +0000</lastBuildDate>
    <atom:link href="https://inliniac.net/blog/tag/rules/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Debian should update their Snort package</title>
      <link>https://inliniac.net/blog/2007/06/16/debian-should-update-their-snort-package/</link>
      <pubDate>Sat, 16 Jun 2007 12:37:13 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/06/16/debian-should-update-their-snort-package/</guid>
      <description>&lt;p&gt;Last week there was some discussion in the #snort IRC channel about why Debian distributes such an ancient version of Snort, namely version 2.3.3. This release is more than 2 years old and no longer supported by &lt;a href=&#34;http://www.sourcefire.com&#34;&gt;SourceFire&lt;/a&gt;. The snort.org website says about the old versions:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;You should not use these unless you &lt;strong&gt;really&lt;/strong&gt; know what you are doing. Many bugs may have been fixed, including remote vulnerabilities&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Even though Debian is able to fix any security bugs themselves, and they don&amp;rsquo;t need to rely on SourceFire for this, Snort 2.3.3 is still going to be inferior to the recent 2.6.1.5. Why? Well recent Snort versions have many more and improved detection options, such as a better pattern matcher, defragmentation preprocessor, improved stream preprocessor, smtp plugin, etc, etc.&lt;/p&gt;</description>
    </item>
    <item>
      <title>New WordPress issue &#43; Snort and ModSecurity rules</title>
      <link>https://inliniac.net/blog/2007/03/20/new-wordpress-issue-modsecurity-rule/</link>
      <pubDate>Tue, 20 Mar 2007 18:03:21 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/03/20/new-wordpress-issue-modsecurity-rule/</guid>
      <description>&lt;p&gt;I just read about a new issue with &lt;a href=&#34;http://www.wordpress.org/&#34;&gt;WordPress&lt;/a&gt; &lt;a href=&#34;http://www.securityfocus.com/archive/1/463291&#34;&gt;here&lt;/a&gt; at SecurityFocus. It&amp;rsquo;s a potential credential stealing vulnerability, so I quickly created these &lt;a href=&#34;http://www.modsecurity.org&#34;&gt;ModSecurity&lt;/a&gt; 2 rules:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;SecDefaultAction &amp;ldquo;log,deny,status:403,phase:2,t:lowercase,t:escapeSeqDecode&amp;rdquo;&lt;/strong&gt;&#xA;&lt;strong&gt;SecRule REQUEST_FILENAME &amp;ldquo;/wp-login.php$&amp;rdquo; &amp;ldquo;chain,msg:&amp;lsquo;WORDPRESS wp-login.php redirect_to credentials stealing attempt&amp;rsquo;,severity:2,t:normalisePath&amp;rdquo;&lt;/strong&gt;&#xA;&lt;strong&gt;SecRule ARGS_NAMES &amp;ldquo;^redirect_to$&amp;rdquo; &amp;ldquo;chain&amp;rdquo;&lt;/strong&gt;&#xA;&lt;strong&gt;SecRule ARGS:redirect_to &amp;ldquo;(ht|f)tps?://&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I can still login to my WordPress install, so it seems that the rule does no harm. Use at your own risk!&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: I&amp;rsquo;ve created a Snort rule as well:&lt;/p&gt;</description>
    </item>
    <item>
      <title>ModSecurity evasion vulnerability</title>
      <link>https://inliniac.net/blog/2007/03/06/modsecurity-evasion-vulnerability/</link>
      <pubDate>Tue, 06 Mar 2007 17:35:09 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/03/06/modsecurity-evasion-vulnerability/</guid>
      <description>&lt;p&gt;ModSecurity author Ivan Ristic just reported that a ModSecurity evasion vulnerability has been published without him being notified in advance, so there is no update available yet. Check &lt;a href=&#34;http://permalink.gmane.org/gmane.comp.apache.mod-security.user/2697&#34;&gt;here&lt;/a&gt; for his announcement. And &lt;a href=&#34;http://www.php-security.org/MOPB/BONUS-12-2007.html&#34;&gt;here&lt;/a&gt; for the advisory. Ivan Ristic suggests everyone to use this workaround until an updated version of ModSecurity is released (put on a single line):&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;SecRule REQUEST_BODY &amp;ldquo;@validateByteRange 1-255&amp;rdquo; &amp;ldquo;log,deny,phase:2,t:none,msg:&amp;lsquo;ModSecurity ASCIIZ Evasion Attempt&amp;rsquo;&amp;rdquo;&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been using that rule for an hour or so, and have seen no false positives so far.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Migrating from ModSecurity 1.9.4 to 2.0.4</title>
      <link>https://inliniac.net/blog/2007/01/20/migrating-from-modsecurity-194-to-204/</link>
      <pubDate>Sat, 20 Jan 2007 10:34:05 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/01/20/migrating-from-modsecurity-194-to-204/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.modsecurity.org/&#34;&gt;ModSecurity&lt;/a&gt; 2 has been out for a while now, and although I have played with it some, I never found some time to upgrade my own servers. The upgrading generally went quite smooth, even though ModSecurity 2 changed quite a bit.&lt;/p&gt;&#xA;&lt;p&gt;First of all there are now 5 phases where you can filter. Actually, one of them only applies to the logging, so you can filter in 4 phases. The phases are headers and body for both request and response traffic. Filtering on specific URIs can be done in phase 1 (request headers), while inspecting a POST payload requires phase 2 (request body).&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
