<?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 on: Exploiting SQL Injections In Insert Statements</title>
	<atom:link href="http://www.notsosecure.com/folder2/2007/10/07/exploiting-sql-injections-in-insert-statements/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.notsosecure.com/folder2/2007/10/07/exploiting-sql-injections-in-insert-statements/</link>
	<description>From Pentesters To Pentesters</description>
	<lastBuildDate>Sat, 22 Oct 2011 05:42:18 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arvind</title>
		<link>http://www.notsosecure.com/folder2/2007/10/07/exploiting-sql-injections-in-insert-statements/comment-page-1/#comment-95552</link>
		<dc:creator>Arvind</dc:creator>
		<pubDate>Wed, 07 Apr 2010 08:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/10/07/exploiting-sql-injections-in-insert-statements/#comment-95552</guid>
		<description>A late comment but one none the less ;) . Say there&#039;s a situation where there is just 1 field which is vulnerable to SQL Injection and the query passed to the DB is an Insert query...just like you mentioned here. For simplicity lets say its numeric like you say. Lets say its PHP-MySQL(so no stacked queries) like admin&#039;;drop table blah#

Now what&#039;s the max that can be done by an attacker here? The way I see it he can:
--- By crafting a SELECT query like you mention, detect that a dynamic query is being used. Hence be able to insert the result of the SQL query as a value which is part of the Insert query.

--- However there is no way he can select data from other tables whose name he does not know and cannot enumerate. So unless you guess tables etc there isn&#039;t much you can do..rt?

Is there something I have missed?

Thnx
Arvind</description>
		<content:encoded><![CDATA[<p>A late comment but one none the less <img src='http://www.notsosecure.com/folder2/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  . Say there&#8217;s a situation where there is just 1 field which is vulnerable to SQL Injection and the query passed to the DB is an Insert query&#8230;just like you mentioned here. For simplicity lets say its numeric like you say. Lets say its PHP-MySQL(so no stacked queries) like admin&#8217;;drop table blah#</p>
<p>Now what&#8217;s the max that can be done by an attacker here? The way I see it he can:<br />
&#8212; By crafting a SELECT query like you mention, detect that a dynamic query is being used. Hence be able to insert the result of the SQL query as a value which is part of the Insert query.</p>
<p>&#8212; However there is no way he can select data from other tables whose name he does not know and cannot enumerate. So unless you guess tables etc there isn&#8217;t much you can do..rt?</p>
<p>Is there something I have missed?</p>
<p>Thnx<br />
Arvind</p>
]]></content:encoded>
	</item>
</channel>
</rss>

