<?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>My Little Black Book &#187; security</title>
	<atom:link href="http://blog.williegoosen.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.williegoosen.com</link>
	<description></description>
	<lastBuildDate>Tue, 24 Aug 2010 11:42:07 +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>Evolution of Web Security</title>
		<link>http://blog.williegoosen.com/2010/02/evolution-of-web-security/</link>
		<comments>http://blog.williegoosen.com/2010/02/evolution-of-web-security/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 09:27:12 +0000</pubDate>
		<dc:creator>Willie Goosen</dc:creator>
				<category><![CDATA[Webstock2010]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[day1]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://blog.williegoosen.com/?p=87</guid>
		<description><![CDATA[Presenter : Chris Shiflett Twitter: @shiflett Site: shiflet.org / analog.coop photo credit: Chris Shiflett Security is always a hot topic, and in today&#8217;s world it&#8217;s always good to have a fresh look at web security on the first day of the Webstock 2010 workshops. Chris Shiflett is currently part of a web development co-op Analog and [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Chris Shiflett" href="http://www.flickr.com/photos/shiflett/3639618407/" target="_blank"><img class="alignright" style="border: 0pt none;" src="http://farm4.static.flickr.com/3406/3639618407_c6e7cfbf66_m.jpg" border="0" alt="Chris Shiflett" width="240" height="160" /></a><br />
Presenter : Chris Shiflett<br />
Twitter: @shiflett<br />
Site: <a href="http://shiflet.org/" target="_blank">shiflet.org</a> / <a href="http://analog.coop" target="_blank">analog.coop</a></p>
<p><small><a title="Attribution-NonCommercial-NoDerivs License" href="http://creativecommons.org/licenses/by-nc-nd/2.0/" target="_blank"><img src="../wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> photo credit: <a title="Link to Chris Shiflett's photostream" rel="dc:creator cc:attributionURL" href="http://www.flickr.com/photos/shiflett/" target="_blank"><strong>Chris Shiflett</strong></a></small></p>
<p>Security is always a hot topic, and in today&#8217;s world it&#8217;s always good to have a fresh look at web security on the first day of the Webstock 2010 workshops. Chris Shiflett is currently part of a web development co-op Analog and has a keen interest in PHP and web security.  He is also a webstock veteran and author of <a href="http://shiflett.org/books" target="_blank">Essential PHP Security</a>.</p>
<p>At risk of missing any of the important points, please check out the full presentation at the end of my notes.</p>
<p>Fundamentals</p>
<ul>
<li>Defense in depth, use all safeguards available, use <a href="http://www.owasp.org" target="_blank">owasp.org</a>.</li>
<li>Least privilege, lock the system down as much as possible.</li>
<li>Least complicated, complexity allows mistakes to happen.</li>
</ul>
<p>Golden Rule, ok more like a golden acronym &#8211; FI EO</p>
<ul>
<li>Filter input &#8211; ensure any inputs are what you expect and no more.</li>
<li>Escape output &#8211; ensure data going out is not misinterpreted.</li>
</ul>
<p>List of common exploits</p>
<ul>
<li><strong>Cross-Site Scripting</strong> &#8211; an XSS flaw occurs whenever an application takes user supplied data and sends it to a web browser without first validating or encoding that content. XSS allows attackers to execute script in the victim&#8217;s browser which can hijack user sessions, deface web sites and possibly introduce worms.</li>
<li><strong>Cross-Site Request Forgeries</strong> &#8211; a CSRF attack forces a logged-on victim&#8217;s browser to send a pre-authenticated request to a vulnerable web application, which then forces the victim&#8217;s browser to perform a hostile action to the benefit of the attacker. CSRF can be as powerful as the web application that it attacks.</li>
<li><strong>SQL Injection</strong> &#8211; injection occurs when user-supplied data is sent to an interpreter as part of a command or query. The attacker&#8217;s hostile data tricks the interpreter into executing unintended commands or changing data.</li>
<li><strong>Session Fixation</strong> &#8211; attempt to exploit the vulnerability of a system which allows one person to fixate (set) another person&#8217;s session identifier.</li>
<li><strong>Session Hijacking &#8211; </strong>session tokens are often not properly protected. Attackers compromise passwords, keys, or authentication tokens to assume other users&#8217; identities.</li>
<li><strong>Email Injection</strong> &#8211; similar to SQL injection.</li>
<li><strong>Remote Code Injection</strong> &#8211; similar to SQL injection.</li>
</ul>
<p>In a lot of  these attacks it is rather trivial to get the basics right by following the golden acronym FIEO, but all posible defences should be used for defence in depth.  The full presentaion goes into the ways to &#8220;Stop It&#8221;. Also do your own research to pick up on latest trends.  A rather concise resource was mentioned by @nzrob see www.owasp.org <a href="http://www.owasp.org/index.php/Top_10_2007" target="_self">Top 10 vulnerabilities</a> which gives large amount option to protect your application.</p>
<p>The full presentation can be found here,  <a href="http://shiflett.org/evolution-of-web-security.pdf" target="_blank">http://shiflett.org/evolution-of-web-security.pdf</a>.</p>
<p>Tips</p>
<ul>
<li>Specify character encoding and make sure it is consistant from front to back end.</li>
<li>Get users to reconfirm password for important actions like changing password.</li>
<li>Good understanding of http and session management helps with prevention.</li>
<li>Keep source code short and concise.  Complexity breeds flaws.</li>
<li>Human peception can also lead to perceved security breaches &#8211; see <a href="http://blogoscoped.com/archive/2008-01-28-n59.html" target="_self">SmugMug example</a>.</li>
<li>Host static files on separate subdomain to limit session token exposure.</li>
</ul>
<p>Final thoughs were around trending of user behaviour to identifying abnormalities and maybe using something like <a href="https://panopticlick.eff.or/" target="_blank">https://</a><a href="https://panopticlick.eff.or/" target="_blank">panopticlick</a><a href="https://panopticlick.eff.org/" target="_blank">.eff.org/</a> for uniquely identifying users from bots.</p>
<p>Chris did an excellent job in presenting the information in an easily ledgible format and good concrete examples. I am gutted I prioritised another talk over his &#8220;Security-Centered Design&#8221; talk at the Webstock conference but I&#8217;ll be sure to catch up on it when the video is available and post the link here if I remember.</p>
<p>Be Safe :)</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;t=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=RT%3A%40willie_g+Evolution+of+Web+Security+-+http://tinyurl.com/2bj4rel&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-netvibes">
			<a href="http://www.netvibes.com/share?title=Evolution+of+Web+Security&amp;url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/" rel="nofollow" class="external" title="Submit this to Netvibes">Submit this to Netvibes</a>
		</li>
		<li class="shr-posterous">
			<a href="http://posterous.com/share?linkto=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security&amp;selection=%0D%0APresenter%20%3A%20Chris%20Shiflett%0D%0ATwitter%3A%20%40shiflett%0D%0ASite%3A%20shiflet.org%20%2F%20analog.coop%0D%0A%0D%0A%20photo%20credit%3A%20Chris%20Shiflett%0D%0A%0D%0ASecurity%20is%20always%20a%20hot%20topic%2C%20and%20in%20today%27s%20world%20it%27s%20always%20good%20to%20have%20a%20fresh%20look%20at%20web%20security%20on%20the%20first%20day%20of%20the%20Webstock%202010%20workshops.%20Chris%20Shiflett%20is%20currentl" rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://blog.williegoosen.com/2010/02/evolution-of-web-security/&amp;title=Evolution+of+Web+Security" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-mail">
			<a href="mailto:?subject=%22Evolution%20of%20Web%20Security%22&amp;body=Link: http://blog.williegoosen.com/2010/02/evolution-of-web-security/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A %0D%0APresenter%20%3A%20Chris%20Shiflett%0D%0ATwitter%3A%20%40shiflett%0D%0ASite%3A%20shiflet.org%20%2F%20analog.coop%0D%0A%0D%0A%20photo%20credit%3A%20Chris%20Shiflett%0D%0A%0D%0ASecurity%20is%20always%20a%20hot%20topic%2C%20and%20in%20today%27s%20world%20it%27s%20always%20good%20to%20have%20a%20fresh%20look%20at%20web%20security%20on%20the%20first%20day%20of%20the%20Webstock%202010%20workshops.%20Chris%20Shiflett%20is%20currentl" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a>
		</li>
		<li class="shr-comfeed">
			<a href="http://blog.williegoosen.com/2010/02/evolution-of-web-security/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://blog.williegoosen.com/2010/02/evolution-of-web-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
