<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tikiwiki on Inliniac</title>
    <link>https://inliniac.net/blog/category/tikiwiki/</link>
    <description>Recent content in Tikiwiki on Inliniac</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 11 Oct 2007 11:13:44 +0000</lastBuildDate>
    <atom:link href="https://inliniac.net/blog/category/tikiwiki/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ModSecurity rules for Tikiwiki 1.x tiki-graph_formula.php Function Injection Vulnerability</title>
      <link>https://inliniac.net/blog/2007/10/11/modsecurity-rule-for-tikiwiki-tiki-graph_formulaphp-function-injection-vulnerability/</link>
      <pubDate>Thu, 11 Oct 2007 11:13:44 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/10/11/modsecurity-rule-for-tikiwiki-tiki-graph_formulaphp-function-injection-vulnerability/</guid>
      <description>&lt;p&gt;A new vulnerability has been found in Tikiwiki. Read more about it &lt;a href=&#34;http://secunia.com/advisories/27190/&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve created the following ModSecurity rule to block it.&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SecDefaultAction &amp;ldquo;log,deny,phase:2,status:403,t:urlDecodeUni,t:lowercase&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;SecRule REQUEST_FILENAME &amp;ldquo;tiki-graph_formula.php&amp;rdquo; &amp;ldquo;chain,msg:&amp;lsquo;TIKIWIKI tiki-graph_formula.php link inclusion attempt&amp;rsquo;,severity:2&amp;rdquo;&#xA;SecRule ARGS:/^s*[a-z]+$/ &amp;ldquo;^(ht|f)tps?://&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;SecRule REQUEST_FILENAME &amp;ldquo;tiki-graph_formula.php&amp;rdquo; &amp;ldquo;chain,msg:&amp;lsquo;TIKIWIKI tiki-graph_formula.php f parameter Function Injection Vulnerability&amp;rsquo;,severity:2&amp;rdquo;&#xA;SecRule ARGS_NAMES &amp;ldquo;^s*f[.*]$&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Ivan, I hope these rules survive your scrutiny ;-)&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated at 13:50&lt;/strong&gt;: The first rule only covered the file inclusion in the title parameter which was what I was seeing in my logs. These rules should cover both the inclusion and the injection.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ModSecurity rule for Tikiwiki XSS</title>
      <link>https://inliniac.net/blog/2007/08/27/modsecurity-rule-for-tikiwiki-xss/</link>
      <pubDate>Mon, 27 Aug 2007 15:06:22 +0000</pubDate>
      <guid>https://inliniac.net/blog/2007/08/27/modsecurity-rule-for-tikiwiki-xss/</guid>
      <description>&lt;p&gt;I just read about a Tikiwiki XSS here. Since the Vuurmuur wiki runs Tikiwiki I created a ModSecurity rule for it:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SecDefaultAction &amp;ldquo;log,deny,phase:2,status:403,t:urlDecodeUni,t:lowercase&amp;rdquo;&lt;/p&gt;&#xA;&lt;p&gt;# XSS in remind password field&#xA;SecRule REQUEST_METHOD &amp;ldquo;^post$&amp;rdquo; &amp;ldquo;chain,msg:&amp;lsquo;TIKIWIKI lost password XSS&amp;rsquo;&amp;rdquo;&#xA;SecRule REQUEST_FILENAME &amp;ldquo;tiki-remind_password.php&amp;rdquo; &amp;ldquo;chain&amp;rdquo;&#xA;SecRule ARGS:/s*username/ &amp;ldquo;!^(:?[a-z0-9-_]{1,37})$&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;This allows only valid usernames to be entered.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Update&lt;/strong&gt;: Ivan Ristic privately pointed me at some possible problems with the rule:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;the escaping of the - and _ chars is not needed, although it seems to be harmless.&lt;/li&gt;&#xA;&lt;li&gt;the $ at the end of the filename is dangerous, because Apache treats tiki-remind_password.php/xxx as tiki-remind_password.php. In this case the rule is evaded.&lt;/li&gt;&#xA;&lt;li&gt;PHP (which Tikiwiki uses) ignores leading spaces in request arguments. So it treats &amp;rsquo; username&amp;rsquo; the same as &amp;lsquo;username&amp;rsquo;. The rule needs to deal with that.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Thanks for your feedback Ivan!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Rules for reported Tikiwiki vulnerabilities</title>
      <link>https://inliniac.net/blog/2006/11/02/rules-for-reported-tikiwiki-vulnerabilities/</link>
      <pubDate>Thu, 02 Nov 2006 11:02:52 +0000</pubDate>
      <guid>https://inliniac.net/blog/2006/11/02/rules-for-reported-tikiwiki-vulnerabilities/</guid>
      <description>&lt;p&gt;Yesterday there was a mail to the bugtraq mailinglist about two types of vulnerabilties in Tikiwiki 1.9.5. The most serious is a claimed MySQL password disclosure through a special URI. The second is an XSS, also through an special URI. The message can be found &lt;a href=&#34;http://www.securityfocus.com/archive/1/450268/30/0&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;I wrote &amp;lsquo;claimed password disclosure&amp;rsquo;, because on the Tikiwiki server I run, I could not reproduce it. With that I mean the password disclosure, since I do see that Tikiwiki gives an error that reveals other information, most notably the location of the website on the local filesystem.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ModSecurity: rule for latest Tikiwiki vulnerability</title>
      <link>https://inliniac.net/blog/2006/09/06/mod_security-rule-for-latest-tikiwiki-vulnerability/</link>
      <pubDate>Wed, 06 Sep 2006 13:02:57 +0000</pubDate>
      <guid>https://inliniac.net/blog/2006/09/06/mod_security-rule-for-latest-tikiwiki-vulnerability/</guid>
      <description>&lt;p&gt;A few days ago a new vulnerability was &lt;a href=&#34;http://isc.sans.org/diary.php?storyid=1672&#34;&gt;reported&lt;/a&gt; in &lt;a href=&#34;http://tikiwiki.org/tiki-index.php&#34;&gt;Tikiwiki&lt;/a&gt; 1.9.x, the software I use for the Vuurmuur Wiki. Luckily, the Snort.org Community rules quickly had &lt;a href=&#34;http://www.snort.org/pub-bin/snortnews.cgi#506&#34;&gt;a rule for detecting&lt;/a&gt; the attack. Because I also run ModSecurity on the webserver, i wanted to have protection there as well. This rule should block the attack:&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;SecFilterSelective POST_PAYLOAD &amp;ldquo;jhot.php&amp;rdquo; &amp;ldquo;log,deny,status:403,msg:&amp;lsquo;LOCAL tikiwiki jhot.php attempt&amp;rsquo;&amp;rdquo;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s see if I ever get a hit on it. An update for Tikiwiki as been released, so that should fix the issue completely.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
