<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Mon, 20 May 2013 10:01:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Evert Pot's Blog: Devshed article about SQL Injection]]></title>
      <guid>http://www.phpdeveloper.org/news/11697</guid>
      <link>http://www.phpdeveloper.org/news/11697</link>
      <description><![CDATA[<p>
<i>Evert Pot</i> responds to a <a href="http://www.phpdeveloper.org/news/11691">recent DevShed article</a> in <a href="http://feeds.feedburner.com/~r/bijsterespoor/~3/505475395/216">a new post</a> to his blog today.
</p>
<blockquote>
The one major flaw in the article is that it is suggested input validation is enough protection. This is not the case.
</blockquote>
<p>
He notes that their solution just isn't enough to really protect much of anything in your scripts. He corrects the articles where it says that mysql_real_escape_string is a good secondary line of defense by suggesting that you always use it. It is a much more effective way to remove potentially harmful characters than a regular expression of your own devise.
</p>
]]></description>
      <pubDate>Thu, 08 Jan 2009 07:51:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Database Security: Guarding Against SQL Injection]]></title>
      <guid>http://www.phpdeveloper.org/news/11383</guid>
      <link>http://www.phpdeveloper.org/news/11383</link>
      <description><![CDATA[<p>
DevShed finishes off their series on database security in PHP applications with <a href="http://www.devshed.com/c/a/PHP/Database-Security-Guarding-Against-SQL-Injection/">this look</a> at protecting your application and data from the threat of SQL injections.
</p>
<blockquote>
In this article we will continue to explore various attacks that can be made on a database and how to prevent these attacks. We will also build the last page of our site.
</blockquote>
<p>
Their example script is a login for a secured area of the site and contains a possible place for an injection - non-validated user input. With something as simple as making the username a single quote, an attacker could find out more about your database structure and use that to get further into your systems. To avoid it, they recommend validating with the <a href="http://php.net/mysql_real_escape_string">mysql_real_escape_string</a> function</a> as a first line of defense.
</p>]]></description>
      <pubDate>Tue, 11 Nov 2008 07:54:31 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Ivo Jansch's Blog: Don't use addslashes for database escapes]]></title>
      <guid>http://www.phpdeveloper.org/news/9164</guid>
      <link>http://www.phpdeveloper.org/news/9164</link>
      <description><![CDATA[<p>
<i>Ivo Jansch</i> has <a href="http://www.jansch.nl/2007/11/30/dont-use-addslashes-for-database-escapes/">a reminder</a> for developers when they're putting user data into their databases - don't use addslashes.
</p>
<blockquote>
[Addslashes] is not the best way to escape data. The most important reason is security. addslashes can lure you into a false sense of security. As <a href="http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string">Chris Shiflett</a> points out, there are situations that addslashes doesn't escape. Use <a href="http://www.php.net/manual/en/function.mysql-real-escape-string.php">mysql_real_escape_string</a> instead.
</blockquote>
<p>
<i>Ivo</i> also <a href="http://www.jansch.nl/2007/11/30/dont-use-addslashes-for-database-escapes/">talks about</a> the advantages of using the right function and suggests another even more secure way too - <a href="http://www.php.net/pdo">PDO</a>.
</p>]]></description>
      <pubDate>Mon, 03 Dec 2007 15:27:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Shiflett's Blog: The Unexpected SQL Injection]]></title>
      <guid>http://www.phpdeveloper.org/news/8753</guid>
      <link>http://www.phpdeveloper.org/news/8753</link>
      <description><![CDATA[<p>
<i>Chris Shiflett</i> <a href="http://shiflett.org/blog/2007/sep/the-unexpected-sql-injection">points out</a> an unexpected SQL injection possibility as presented by <a href="http://mordred.niama.net/blog/">Alexander Andonov</a> for PHP (involving mysql_real_escape_string).
</p>
<blockquote>
The focus of the article is stressing the importance of filtering input and escaping output, as neither is a substitute for the other, but he does so very clearly with specific examples [...] A number of example exploits are supplied for each case, and he discusses which ones work, which ones don't, and why.
</blockquote>
<p>
<i>Chris</i> also uses the post to link to <a href="http://preinheimer.com/">Paul Reinheimer</a>'s post about <a href="http://blog.preinheimer.com/index.php?/archives/247-addslashes-vs-mysql_escape_string.html">add_slashes versus mysql_escape_string</a> and his <a href="http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string">own post</a> on the same topic.
</p>]]></description>
      <pubDate>Mon, 01 Oct 2007 08:47:00 -0500</pubDate>
    </item>
  </channel>
</rss>
