<?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>Query7 &#187; security</title>
	<atom:link href="http://query7.com/category/security/feed" rel="self" type="application/rss+xml" />
	<link>http://query7.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 09 Apr 2010 09:36:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Securing User Input in PHP</title>
		<link>http://query7.com/securing-user-input-in-php</link>
		<comments>http://query7.com/securing-user-input-in-php#comments</comments>
		<pubDate>Mon, 21 Apr 2008 14:57:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=19</guid>
		<description><![CDATA[<p>In nearly all of my PHP tutorials you&#8217;ll see me using the secure function to sanitise incoming user data from things like forms, and <em>$_GET</em>s . Its a small function, which no doubt alot of you already have, but here&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>In nearly all of my PHP tutorials you&#8217;ll see me using the secure function to sanitise incoming user data from things like forms, and <em>$_GET</em>s . Its a small function, which no doubt alot of you already have, but here it is anyway.</p>
<pre lang="php">function secure($string) {
		$string = strip_tags($string);
		$string = htmlspecialchars($string);
		$string = trim($string);
		$string = stripslashes($string);
		$string = mysql_real_escape_string($string);
	return $string;

	}</pre>
<p>As you can see, it basically sanitises the heck out of everything. Some people say its an overkill but you can use it in almost every situation when user data is incoming.</p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/securing-user-input-in-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping Your Website Secure</title>
		<link>http://query7.com/keeping-your-website-secure</link>
		<comments>http://query7.com/keeping-your-website-secure#comments</comments>
		<pubDate>Sun, 20 Apr 2008 04:45:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.query7.com/?p=12</guid>
		<description><![CDATA[<p>This isn&#8217;t Yet Another PHP Security blog post, like you see on all the other websites. This is aimed at people who run existing software such as SMF, Joomla and WordPress.</p>
<p>Some people using pre-made software think they are immune&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>This isn&#8217;t Yet Another PHP Security blog post, like you see on all the other websites. This is aimed at people who run existing software such as SMF, Joomla and WordPress.</p>
<p>Some people using pre-made software think they are immune to hacking attempts. 4 days ago, there was a vulnerability found in the latest version of the Coppermine Gallery software, after the vulnerability was made public, hundreds of people got hit, and their galleries essentially destroyed. Infact there were 2 SQL injection vulnerabilities found within 5 days of each other. For something that has been in development since September 7th 2003, thats pretty scary.</p>
<p>Now, if you owned a Coppermine Gallery what measures could you take to make sure that your installation was safe, even if you couldn&#8217;t patch it yourself, you could take it offline until one is released. The website securityfocus.com is a security and vulnerability website. People post the latest vulnerabilities there in software, for example one of the coppermine vulns , http://www.securityfocus.com/bid/28767 . If you do a daily run of your blogs/forums, you could also go there and type in the version and software that your using to do a quick check. Social news websites such as digg, stumbleupon and del.icio.us are also good for checking for a vulnerability. Again, just type in your software name and version number and some results might come up!</p>
<p>There is no proper way to prevent your website from being hacked, all of these new exploits are 0 days. Its a race between you shutting down or patching your website, and the hacker getting to it first.</p>
]]></content:encoded>
			<wfw:commentRss>http://query7.com/keeping-your-website-secure/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
