<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SocialDeveloper.net &#187; security</title>
	<atom:link href="http://socialdeveloper.net/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://socialdeveloper.net</link>
	<description>Building One Social Network At A Time.</description>
	<lastBuildDate>Thu, 02 Jul 2009 05:40:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SQL Injection Protection SE 2&amp;3+</title>
		<link>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/</link>
		<comments>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 00:43:40 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Mods]]></category>
		<category><![CDATA[se]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sql injection]]></category>

		<guid isPermaLink="false">http://socialdeveloper.net/?p=69</guid>
		<description><![CDATA[One of the most common forms of online misshap that plagues online applications would have to revolve around the act of sql injections. SQL injection is a code injection technique that exploits a security vulnerability within the database layer of an application. So in other words, skilled attackers might possibly exploit SE and gain access [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most common forms of online misshap that plagues online applications would have to revolve around the act of sql injections. <a href="http://en.wikipedia.org/wiki/SQL_injection" target="_blank">SQL injection</a> is a code injection technique that exploits a <span class="mw-redirect">security vulnerability within the </span>database layer of an application. So in other words, skilled attackers might possibly exploit SE and gain access to your site. SE is pretty secure but I dont know if this has been done or if anyone running SE has had this happen. But you can prevent it. Just add this code your your .htaccess and you should be set.</p>
<h2>Step 1</h2>
<p>If this code isn&#8217;t already in your .htaccess then go ahead and add it. If it is, skip to the next part.</p>
<blockquote><p>RewriteEngine On<br />
Options +Followsymlinks</p></blockquote>
<h2>Step 2</h2>
<p>Then place this within your .htaccess at the root of your site.</p>
<blockquote><p># Block out any script trying to base64_encode crap to send via URL<br />
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]<br />
# Block out any script that includes a &lt;script&gt; tag in URL<br />
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]<br />
# Block out any script trying to set a PHP GLOBALS variable via URL<br />
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]<br />
# Block out any script trying to modify a _REQUEST variable via URL<br />
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})<br />
RewriteRule ^(.*)$ /home.php [F,L]</p></blockquote>
<p>So basically this locks out any harmful queries that might be injected into your db. This is usually done through the URL so by using mod_rewrite and these restrictions, your making one SE safer at a time. Hope for the best and plan for the worst I guess. If anyone does know more about SE security bugs or stories please share.</p>
]]></content:encoded>
			<wfw:commentRss>http://socialdeveloper.net/2009/01/sql-injection-protection-se-23/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
