<?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 on: How I hacked a site, and how to defend properly</title>
	<atom:link href="http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/</link>
	<description></description>
	<pubDate>Fri, 21 Nov 2008 04:43:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: A one day pause of posts&#8230; &#187; - Jeff Kee Consulting &#124;&#124; Vancouver, BC -</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-290</link>
		<dc:creator>A one day pause of posts&#8230; &#187; - Jeff Kee Consulting &#124;&#124; Vancouver, BC -</dc:creator>
		<pubDate>Sat, 10 Feb 2007 08:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-290</guid>
		<description>[...] How I hacked a site, and how to defend properly [...]</description>
		<content:encoded><![CDATA[<p>[...] How I hacked a site, and how to defend properly [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#124;&#124; Jeff Kee Consulting &#124;&#124; Vancouver, BC - My Favorite Firefox Add-ons (especially for web developers!!!) &#187;</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-135</link>
		<dc:creator>&#124;&#124; Jeff Kee Consulting &#124;&#124; Vancouver, BC - My Favorite Firefox Add-ons (especially for web developers!!!) &#187;</dc:creator>
		<pubDate>Thu, 25 Jan 2007 21:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-135</guid>
		<description>[...] go on. It can do so many things. And it was also a crucial part of my hack as described in my previous post here! This tool is so perfect for troubleshooting of javascript, configuring your HTML and CSS for [...]</description>
		<content:encoded><![CDATA[<p>[...] go on. It can do so many things. And it was also a crucial part of my hack as described in my previous post here! This tool is so perfect for troubleshooting of javascript, configuring your HTML and CSS for [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-117</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Tue, 23 Jan 2007 08:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-117</guid>
		<description>Yes, that's the method I use.. sometimes with more measures if necessary, such as cookies, matching MD5 hash etc.</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s the method I use.. sometimes with more measures if necessary, such as cookies, matching MD5 hash etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-114</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Tue, 23 Jan 2007 01:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-114</guid>
		<description>OK apparantly there is a protection scheme against writing out too much PHP code.. but anyhow. 

I use the If statements to check the auth level and go from there.</description>
		<content:encoded><![CDATA[<p>OK apparantly there is a protection scheme against writing out too much PHP code.. but anyhow. </p>
<p>I use the If statements to check the auth level and go from there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-113</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Tue, 23 Jan 2007 01:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-113</guid>
		<description>well that comment got cut off but the rest of it is here.

if($session[â€™typeâ€™]</description>
		<content:encoded><![CDATA[<p>well that comment got cut off but the rest of it is here.</p>
<p>if($session[â€™typeâ€™]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-111</link>
		<dc:creator>Jared</dc:creator>
		<pubDate>Tue, 23 Jan 2007 00:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-111</guid>
		<description>Do PHP Sessions work as a good security measure? I usually do something like this ...

... MySQL queries...

$user = mysql_fetch_array($result);

$session['type']=$user['type'];    // user's level of authority
$session['userid']=$user['id'];    //user's unique ID in teh table for pointing
$session['name']= $user['first_name']." ".$user['last_name'];   // save the name for any kind of displays etc. 


And then each authorization page that requires users to be logged on, and at a certain security clearance, it displays the page or hides it depending on the results..

if($session['type']</description>
		<content:encoded><![CDATA[<p>Do PHP Sessions work as a good security measure? I usually do something like this &#8230;</p>
<p>&#8230; MySQL queries&#8230;</p>
<p>$user = mysql_fetch_array($result);</p>
<p>$session['type']=$user['type'];    // user&#8217;s level of authority<br />
$session['userid']=$user['id'];    //user&#8217;s unique ID in teh table for pointing<br />
$session['name']= $user['first_name'].&#8221; &#8220;.$user['last_name'];   // save the name for any kind of displays etc. </p>
<p>And then each authorization page that requires users to be logged on, and at a certain security clearance, it displays the page or hides it depending on the results..</p>
<p>if($session['type']</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-110</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Mon, 22 Jan 2007 21:58:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-110</guid>
		<description>Ya ya ya matt... SURE YOU DID. Please don't try though.</description>
		<content:encoded><![CDATA[<p>Ya ya ya matt&#8230; SURE YOU DID. Please don&#8217;t try though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Housser</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-109</link>
		<dc:creator>Housser</dc:creator>
		<pubDate>Mon, 22 Jan 2007 21:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-109</guid>
		<description>Jeff Kee paid me $10 to leave this comment.

PS I hacked your site ^_^</description>
		<content:encoded><![CDATA[<p>Jeff Kee paid me $10 to leave this comment.</p>
<p>PS I hacked your site ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-108</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Mon, 22 Jan 2007 21:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-108</guid>
		<description>yes, I do have that one, I've fooled around with it a few times. These plug-ins are great... One of the top reasons why i prefer Firefox over IE, obviously.. especially from a developer's perspective.</description>
		<content:encoded><![CDATA[<p>yes, I do have that one, I&#8217;ve fooled around with it a few times. These plug-ins are great&#8230; One of the top reasons why i prefer Firefox over IE, obviously.. especially from a developer&#8217;s perspective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-107</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 22 Jan 2007 21:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-107</guid>
		<description>This particular hack was cross-browser, it took advantage of the fact that if you for example copy-and-paste the following: "javascript:alert('hi');" into your address bar in any browser, it will execute the actual javascript in the context of the current page. Add in some DOM modification and you can create a way to do hacks like this out-of-the box with any browser.

By the way, have you tried the FireBug plug-in? It works well in conjunction with the developer toolbar, but it has more advanced debugging features.</description>
		<content:encoded><![CDATA[<p>This particular hack was cross-browser, it took advantage of the fact that if you for example copy-and-paste the following: &#8220;javascript:alert(&#8217;hi&#8217;);&#8221; into your address bar in any browser, it will execute the actual javascript in the context of the current page. Add in some DOM modification and you can create a way to do hacks like this out-of-the box with any browser.</p>
<p>By the way, have you tried the FireBug plug-in? It works well in conjunction with the developer toolbar, but it has more advanced debugging features.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-106</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Mon, 22 Jan 2007 18:40:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-106</guid>
		<description>Yeah faking javascript is part of the Firefox extension as well. 

Of course, so far I've used it to test my javascript applications to trouble shoot and debug but...</description>
		<content:encoded><![CDATA[<p>Yeah faking javascript is part of the Firefox extension as well. </p>
<p>Of course, so far I&#8217;ve used it to test my javascript applications to trouble shoot and debug but&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-105</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Mon, 22 Jan 2007 18:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-105</guid>
		<description>HA yes, there is a function after all!!! &lt;strong&gt;"Add Cookies"&lt;/strong&gt; to add your own.. WOW&gt;</description>
		<content:encoded><![CDATA[<p>HA yes, there is a function after all!!! <strong>&#8220;Add Cookies&#8221;</strong> to add your own.. WOW></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-104</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 22 Jan 2007 16:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-104</guid>
		<description>One would hope... I remember a similar problem happened to Microsoft before the launch of live.com email - a "javascript:" pseudo-url was passed around the internet which added an option to the drop down box and allowed people to sign up for @live.com names before it was officially allowed.</description>
		<content:encoded><![CDATA[<p>One would hope&#8230; I remember a similar problem happened to Microsoft before the launch of live.com email - a &#8220;javascript:&#8221; pseudo-url was passed around the internet which added an option to the drop down box and allowed people to sign up for @live.com names before it was officially allowed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-103</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 22 Jan 2007 13:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-103</guid>
		<description>Anything that comes from the browser should be treated as if it could be faked. Even if common browsers don't have the ability to fake it, someone using CURL or some other software could find a way around it.

In the case of cookies, they are defiantly editable. FireFox's developer toolbar has a feature that lets you add your own cookies and delete existing ones, so effectively you could use that to modify existing cookies.</description>
		<content:encoded><![CDATA[<p>Anything that comes from the browser should be treated as if it could be faked. Even if common browsers don&#8217;t have the ability to fake it, someone using CURL or some other software could find a way around it.</p>
<p>In the case of cookies, they are defiantly editable. FireFox&#8217;s developer toolbar has a feature that lets you add your own cookies and delete existing ones, so effectively you could use that to modify existing cookies.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Kee</title>
		<link>http://www.jeffkee.com/web-development-design/how-i-hacked-a-site-and-how-to-defend-properly/#comment-101</link>
		<dc:creator>Jeff Kee</dc:creator>
		<pubDate>Mon, 22 Jan 2007 10:15:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffkee.com/2007/01/22/how-i-hacked-a-site-and-how-to-defend-properly/#comment-101</guid>
		<description>Yes, always guard the goods, not JUST the keys to the goods!</description>
		<content:encoded><![CDATA[<p>Yes, always guard the goods, not JUST the keys to the goods!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
