<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quickpost: Quasi-Tautologies &amp; SQL-Injection</title>
	<atom:link href="http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/</link>
	<description>(blog 'DidierStevens)</description>
	<lastBuildDate>Sat, 11 Feb 2012 16:16:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Didier Stevens</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37647</link>
		<dc:creator><![CDATA[Didier Stevens]]></dc:creator>
		<pubDate>Thu, 04 Feb 2010 23:43:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37647</guid>
		<description><![CDATA[@dblackshell: Actually, when you provide a constant as seed value, you can predict the next numbers and thus achieve 100% (or 0%) success rate.]]></description>
		<content:encoded><![CDATA[<p>@dblackshell: Actually, when you provide a constant as seed value, you can predict the next numbers and thus achieve 100% (or 0%) success rate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dblackshell</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37638</link>
		<dc:creator><![CDATA[dblackshell]]></dc:creator>
		<pubDate>Thu, 04 Feb 2010 09:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37638</guid>
		<description><![CDATA[As specified in the MySQL documentation for function RAND():
&lt;blockquote&gt;
Returns a random floating-point value v in the range 0 &lt;= v  &lt;  1.0. &lt;strong&gt;If&lt;/strong&gt; a constant integer argument N is specified, it is used as the seed value, which produces a repeatable sequence of column values.
&lt;/blockquote&gt;
So to produce a Pseudo-random number, a parameter should be specified; and in that case would you have a 99% success rate]]></description>
		<content:encoded><![CDATA[<p>As specified in the MySQL documentation for function RAND():</p>
<blockquote><p>
Returns a random floating-point value v in the range 0 &lt;= v  &lt;  1.0. <strong>If</strong> a constant integer argument N is specified, it is used as the seed value, which produces a repeatable sequence of column values.
</p></blockquote>
<p>So to produce a Pseudo-random number, a parameter should be specified; and in that case would you have a 99% success rate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Clarke</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37632</link>
		<dc:creator><![CDATA[Justin Clarke]]></dc:creator>
		<pubDate>Wed, 03 Feb 2010 23:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37632</guid>
		<description><![CDATA[This is a nice twist on the concept - and its equally true that just looking for tautologies isn&#039;t going to be a reliable measure as you can find something that will return true most of the time. I&#039;m more of a fan of something that learns the syntax of the SQL code itself, and then notes where it deviates. GreenSQL does this to some extent, however I did see a fascinating talk at BlackHat USA a few years ago on using formal grammars for detecting SQL Injection - this would be a good example in that having a tautology (or even near one) would change the grammar tree generated and allow you detect tampering. Haven&#039;t heard anything on anyone trying this approach since then - its a bit of a challenge as you need a grammar for each dialect of SQL, unfortunately.]]></description>
		<content:encoded><![CDATA[<p>This is a nice twist on the concept &#8211; and its equally true that just looking for tautologies isn&#8217;t going to be a reliable measure as you can find something that will return true most of the time. I&#8217;m more of a fan of something that learns the syntax of the SQL code itself, and then notes where it deviates. GreenSQL does this to some extent, however I did see a fascinating talk at BlackHat USA a few years ago on using formal grammars for detecting SQL Injection &#8211; this would be a good example in that having a tautology (or even near one) would change the grammar tree generated and allow you detect tampering. Haven&#8217;t heard anything on anyone trying this approach since then &#8211; its a bit of a challenge as you need a grammar for each dialect of SQL, unfortunately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier Stevens</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37622</link>
		<dc:creator><![CDATA[Didier Stevens]]></dc:creator>
		<pubDate>Wed, 03 Feb 2010 10:08:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37622</guid>
		<description><![CDATA[@dblackshell No, I assume the PRNG produces random numbers following a uniform distribution (http://en.wikipedia.org/wiki/Pseudorandom_number_generator), so on average, the injection will succeed around 99% of the time.]]></description>
		<content:encoded><![CDATA[<p>@dblackshell No, I assume the PRNG produces random numbers following a uniform distribution (<a href="http://en.wikipedia.org/wiki/Pseudorandom_number_generator" rel="nofollow">http://en.wikipedia.org/wiki/Pseudorandom_number_generator</a>), so on average, the injection will succeed around 99% of the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dblackshell</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37620</link>
		<dc:creator><![CDATA[dblackshell]]></dc:creator>
		<pubDate>Wed, 03 Feb 2010 07:33:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37620</guid>
		<description><![CDATA[&lt;blockquote&gt;
you stand a 99% chance of being succesful (provided the application is vulnerable to SQL-injection)!
&lt;/blockquote&gt;
I think the chances are unknown, because it&#039;s random.]]></description>
		<content:encoded><![CDATA[<blockquote><p>
you stand a 99% chance of being succesful (provided the application is vulnerable to SQL-injection)!
</p></blockquote>
<p>I think the chances are unknown, because it&#8217;s random.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xanda</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37590</link>
		<dc:creator><![CDATA[xanda]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 16:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37590</guid>
		<description><![CDATA[GreenSQL will also detect the attempt of quasi-tautologies with &#039;or&#039; token]]></description>
		<content:encoded><![CDATA[<p>GreenSQL will also detect the attempt of quasi-tautologies with &#8216;or&#8217; token</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Didier Stevens</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37589</link>
		<dc:creator><![CDATA[Didier Stevens]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 14:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37589</guid>
		<description><![CDATA[@oldami Yes, this is a pure tautology.]]></description>
		<content:encoded><![CDATA[<p>@oldami Yes, this is a pure tautology.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oldami</title>
		<link>http://blog.didierstevens.com/2010/02/02/quickpost-quasi-tautologies-sql-injection/#comment-37585</link>
		<dc:creator><![CDATA[oldami]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 13:13:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.didierstevens.com/?p=1966#comment-37585</guid>
		<description><![CDATA[how about comparing the current seconds != 99?
Always true and the system would have to know the valid range for anything that might be compared to detect this.]]></description>
		<content:encoded><![CDATA[<p>how about comparing the current seconds != 99?<br />
Always true and the system would have to know the valid range for anything that might be compared to detect this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

