<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Web Application Security</title>
	<atom:link href="http://websec.id3as.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://websec.id3as.com</link>
	<description>Application and network security research and other interesting things...</description>
	<lastBuildDate>Sun, 04 Apr 2010 11:51:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>Comment on Aardvark Topsites PHP 5.2.1 security vulnerabilities disclosure by Martyn</title>
		<link>http://websec.id3as.com/aardvark-topsites-php-521-security-vulnerabilities-disclosure/comment-page-1/#comment-126</link>
		<dc:creator>Martyn</dc:creator>
		<pubDate>Sun, 04 Apr 2010 11:51:12 +0000</pubDate>
		<guid isPermaLink="false">http://websec.id3as.com/?p=3#comment-126</guid>
		<description>running 5.2.1 here - I fixed the information disclosure 1 problem by adding a check for the start value being less than zero in search.php as follows

old code....

if (isset($FORM[&#039;start&#039;])) {
      $start = intval($FORM[&#039;start&#039;]);
      if ($start &gt; 0) {
        $start--;
      }
else {
      $start = 0;
    }
      
new code....

if (isset($FORM[&#039;start&#039;])) {
      $start = intval($FORM[&#039;start&#039;]);
      if ($start &gt; 0) {
        $start--;
      }
      if ($start &lt; 0) {
        $start = 0;
      }
else {
      $start = 0;
    }</description>
		<content:encoded><![CDATA[<p>running 5.2.1 here &#8211; I fixed the information disclosure 1 problem by adding a check for the start value being less than zero in search.php as follows</p>
<p>old code&#8230;.</p>
<p>if (isset($FORM['start'])) {<br />
      $start = intval($FORM['start']);<br />
      if ($start &gt; 0) {<br />
        $start&#8211;;<br />
      }<br />
else {<br />
      $start = 0;<br />
    }</p>
<p>new code&#8230;.</p>
<p>if (isset($FORM['start'])) {<br />
      $start = intval($FORM['start']);<br />
      if ($start &gt; 0) {<br />
        $start&#8211;;<br />
      }<br />
      if ($start &lt; 0) {<br />
        $start = 0;<br />
      }<br />
else {<br />
      $start = 0;<br />
    }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

