<?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>Mike Andrews &#187; Uncategorized</title>
	<atom:link href="http://www.mikeandrews.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikeandrews.com</link>
	<description></description>
	<lastBuildDate>Sat, 03 Oct 2009 15:41:35 +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>Call for stronger webappsec &#8211; enable HTTPS by default</title>
		<link>http://www.mikeandrews.com/2009/06/16/call-for-stronger-webappsec-enable-https-by-default/</link>
		<comments>http://www.mikeandrews.com/2009/06/16/call-for-stronger-webappsec-enable-https-by-default/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 05:07:48 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2009/06/16/call-for-stronger-webappsec-enable-https-by-default/</guid>
		<description><![CDATA[In an open letter to Google, some familiar names in security call for Google, and other web-based application providers by proxy, to strengthen security by doing one simple thing – enable HTTPS by default.
If you haven’t read the letter, go back an do so [PDF link].&#160; Please.&#160; I’ll wait.&#160; Lots of people don’t get the [...]]]></description>
			<content:encoded><![CDATA[<p>In an <a href="http://googleonlinesecurity.blogspot.com/2009/06/https-security-for-web-applications.html" target="_blank">open letter to Google</a>, some familiar names in security call for Google, and other web-based application providers by proxy, to strengthen security by doing one simple thing – enable HTTPS by default.</p>
<p>If you haven’t read the letter, <a href="http://www.wired.com/images_blogs/threatlevel/2009/06/google-letter-final2.pdf" target="_blank">go back an do so</a> [PDF link].&#160; Please.&#160; I’ll wait.&#160; Lots of people don’t get the importance of a complete HTTPS session (not just when logging in) and hopefully this will help.&#160; Cliff Notes version:</p>
<ol>
<li>Once you have logged in, your session (often via a cookie but not always) is your “token” to that account.&#160; Steal it, or inadvertently disclose it (via HTTP), and the person who has that token can effectively become logged in without knowing the credentials or having to going through the authentication process(1).&#160; If you don’t know what that means, <a href="http://www.pcworld.com/businesscenter/article/166144/hackers_claim_10000_prize_for_breaking_into_strongwebmail.html" target="_blank">look here for an example</a>.</li>
<li>On a mixed HTTP/HTTPS session, an attacker can <a href="http://conference.hitb.org/hitbsecconf2009dubai/?page_id=126" target="_blank">do some funky things</a> that can break the cross-domain protections and then once again it’s game over – you can’t trust the screen you are seeing and the attacker has control over the browser (session token stealing again, malicious code injection, DOM manipulation, browser flaws, etc, etc).</li>
<li>You would assume that in most cases even without account takeover or other injection issues that the information going over the wire you don’t want to broadcast to anyone that’s listening.&#160; Many people’s personal lives are run via web-based email setups and it’s been said many times – gaining someone’s webmail account effectively mean you can gain access to <em>lots</em> of other accounts belonging to that person via password reset functionality.&#160; Webmail is the <a href="http://www.codinghorror.com/blog/archives/001128.html" target="_blank">de-facto master password</a> of the net.</li>
</ol>
<p>So, there’s very good reason to go HTTPS only.&#160; However, there’s downsides to this.&#160;&#160; First one is pretty obvious, second one no so much.</p>
<ol>
<li>Performance.&#160; Many companies assume that having everything go over HTTPS will have a <em>huge</em> performance impact.&#160; There’s no doubt that there’s some performance impact, but the major cost is the HTTPS handshake in the browser and server agreeing on a cipher.&#160; Once that is done, modern browsers can cache that agreement and not have to go through it again.&#160; In some cases it makes sense to keep the connection open.&#160; I should really do my own experiments, but it seems the even <a href="http://www.cs.nyu.edu/artg/research/comparison/comparison_slides/index.htm" target="_blank">an old comparison</a> showed very little degradation of performance on old(er) servers/browsers and without SSL concentrators.&#160; A <a href="http://www.bsc.es/media/389.pdf" target="_blank">newer paper</a> [PDF link] with lot more detail certainly shows degradation, but only at high throughputs – something certainly Google or a large/popular service would be concerned about. </li>
<li>Injections.&#160; Not the kind of injections we don’t want (2), but injecting ads into HTTPS pages is a lot harder.&#160; If it’s being done cross-site you get those horrible popup “mixed content” warning messages, and if it’s “force injected” (which no-one seems to be doing now, <a href="http://www.pcworld.com/businesscenter/article/144682/isps_meddled_with_their_customers_web_traffic_study_finds.html" target="_blank">but ISP’s had some fun trying it</a>.&#160; With Google’s main revenue being ads, I can see how that might be an issue.</li>
</ol>
<p>So, first props for Google mentioning it and of all the main providers of web-based apps out there are doing the right thing, even if not by default.&#160; Second, I’m sure that it would have been done already if there wasn’t concerns, and I’m certain that Google (being Google) are crunching the number to see what impact it will have.&#160; I’m not going to hold my breath, but at least it’s “out there” and I hope more people <a href="http://gmailblog.blogspot.com/2008/07/making-security-easier.html" target="_blank">enable SSL by default</a>.</p>
<p>My belief is that we’re relying on the web so much now that we’re going to have to consider encrypted communication to be the default.&#160; Whether that’s VPNs, SSL concentrators, HTTPS-by-default, I’m not sure – it would be really interesting to see some recent stats of a) the amount of HTTP vs HTTPS traffic out there and b) the impact of HTTPS on a well-designed infrastructure setup to handle it.&#160; If anyone has that info please get in touch while I go about looking for it myself and update here if I find anything interesting.&#160; HTTPS/SSL isn’t the great panacea/silver bullet, but <a href="http://www.mikeandrews.com/2008/01/14/silver-bullets-or-magic-beans/" target="_blank">as the story goes</a>, it does provide something and from there we can worry about all the other issues in webapps.</p>
<p>&#160;</p>
<p>(1) There are ways of further protecting the session token if it is disclosed through tying it to an IP address, browser version, etc, etc, but it’s not foolproof.</p>
<p>(2) I still would rather not have ads injected into <em>any</em> of my pages, but understand the model.&#160; I don’t mind paying for services that I use, but it seems I’m in the minority.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2009/06/16/call-for-stronger-webappsec-enable-https-by-default/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hackers 1, Marketing 0</title>
		<link>http://www.mikeandrews.com/2009/06/04/hackers-1-marketing-0/</link>
		<comments>http://www.mikeandrews.com/2009/06/04/hackers-1-marketing-0/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 06:53:43 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2009/06/04/hackers-1-marketing-0/</guid>
		<description><![CDATA[I’m really sorry – I stole the title to this post from Rich at Securosis.&#160; It was just so perfect I couldn’t resist.&#160; On a side note before I say my piece, will you guys (Secrosis) calm it down for a bit?&#160; I can only read so many good posts a day (I have to [...]]]></description>
			<content:encoded><![CDATA[<p>I’m really sorry – I <a href="http://securosis.com/blog/hackers-1-marketing-0/" target="_blank">stole the title to this post</a> from Rich at <a href="http://securosis.com" target="_blank">Securosis</a>.&#160; It was just so perfect I couldn’t resist.&#160; On a side note before I say my piece, will you guys (Secrosis) calm it down for a bit?&#160; I can only read so many good posts a day (I have to share my time with other feeds don’t you know), but most certainly stop mentioning stuff that I want to write about myself as that just takes even more time.&#160; Cut it out damn it – don’t you have some sort of company to run <img src='http://www.mikeandrews.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Anyway, normal service resuming.</p>
<p>When I saw the challenge – <a href="http://www.strongwebmail.com/secure/email/contests/hack" target="_blank">break into some companies web-based email system</a> – I pretty much knew it would all end in tears.&#160; The idea behind this company and their “security” (the challenge was to break into the CEO’s email account, and they provided the username and password “to make things easier”) <a href="http://www.strongwebmail.com/secure/email/howitworks" target="_blank">is that it uses “two-factor” authentication</a> by calling your registered phone number(s) after you authenticate to confirm a code that was sent to you.&#160; It’s closer to side-channel authentication than two-factor, but I’m really splitting hairs here.</p>
<p>Anyway, the thing that we’ve <a href="http://www.schneier.com/blog/archives/2005/03/the_failure_of.html" target="_blank">known for a long time</a> is that even with two-factor authentication, there’s <em>still</em> some <em>really effective</em> attacks, one of which looking at <a href="http://www.pcworld.com/businesscenter/article/166144/hackers_claim_10000_prize_for_breaking_into_strongwebmail.html" target="_blank">an article reporting the end of the contest and some of the hack technique</a> was clearly used – the good old Trojan attack (via XSS it seems &#8211; I would class XSS as a Trojan rather than MITM, but that’s me).</p>
<p>When two-factor authentication is in use, why bother trying to break/crack/defeat the authentication – it’s much easier to wait for the user to authenticate (do all the hard work) and then take over from there.&#160; And that’s probably the attack pattern used (and what I would try myself).&#160; If, as the article suggests, StrongWebmail was susceptible to XSS, then all you have to do is get some javascript (or other script/applet/etc) up onto their server, entice the user to that page (or email message), and let the script pull cookies/authentication tokens.&#160; Once you have them, replay them to the app (substituting them for your original ones), and you’re in and able to masquerade as the target user.</p>
<p>There’s a few things that are a little concerning here though.&#160; </p>
<p>First, that a “secure” webmail provider is susceptible to XSS is unforgivable – it’s just such an obvious attack mechanism and should be easily mitigated (well, not easily – there’s lots of places to “hide” script in HTML, but there’s certainly ways to protect against it).&#160; Not everyone has <a href="http://noscript.net/" target="_blank">NoScript</a> (although they should), but even if they did I very much doubt it would have helped.&#160; See, if the user had NoScript, they would have likely had the site trusted (they would have been there before, and as it’s not an “unknown” so would have allowed scripts to run as to probably make the site function correctly).&#160; When the XSS code tries to grab the session cookie, NoScript could have got in the way and stopped it from being POST’ed off site, but it could quite as easily been a GET or even better just <a href="http://en.wikipedia.org/wiki/Cross-site_request_forgery" target="_blank">CSRF</a>’ed an email back to yourself and voila! no “cross-site” and practically all detection techniques would have missed this.&#160; </p>
<p>Secondly, if this was the case (and I’m by no means sure about this, but looking at the site in <a href="http://www.parosproxy.org" target="_blank">Paros</a> it seems to correct), <a href="http://www.owasp.org/index.php/HTTPOnly" target="_blank">having session cookies set to HTTPOnly</a> may not have been a complete mitigation, but may have saved them.</p>
<p>In conclusion, what was clearly a marketing stunt backfired badly.&#160; They deserve to get their ass handed to them because a) having the community do your pentest work for you is kinda shady, especially for marketing purposes and b) this is such and obvious attack it should have come up in a threat model and have been <em>very</em> strongly validated that it had been mitigated against.&#160; </p>
<p><a href="http://www.kgoradio.com/article.asp?id=1353710&amp;spid=20399" target="_blank">From the CEO</a> of StrongWebMail:</p>
<blockquote><p>I think if anything this contest will bring attention [that] the major mail providers &#8230; really need to take additional steps to secure their email.&quot; We all have sensitive info in our inboxes&#8211; how secure are you?</p>
</blockquote>
<p>Answer: Not very.</p>
<p>EDIT: In the comments of the PCWorld article, it looks like someone else was onto a different strategy by discovering the “two-factor” phone number (via brute force) and spoofing it – a technique that was also likely to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2009/06/04/hackers-1-marketing-0/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Security auditor gets sued</title>
		<link>http://www.mikeandrews.com/2009/06/03/security-auditor-gets-sued/</link>
		<comments>http://www.mikeandrews.com/2009/06/03/security-auditor-gets-sued/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 17:40:07 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2009/06/03/security-auditor-gets-sued/</guid>
		<description><![CDATA[I don’t think all that many people consider this when working as an external security auditor/tester/consultant, but something that worries me and sometimes keeps me up at night is knowing that you’ve “done enough” and “looked at and tested the right things, fully” on a particular engagement – especially when they are time-boxed (like most [...]]]></description>
			<content:encoded><![CDATA[<p>I don’t think all that many people consider this when working as an external security auditor/tester/consultant, but something that worries me and sometimes keeps me up at night is knowing that you’ve “done enough” and “looked at and tested the right things, fully” on a particular engagement – especially when they are time-boxed (like most engagements are).</p>
<p>If you are working for a product company and testing your own software and “miss” something, then that’s ok – it’s your own (well, your companys) ass, and hopefully there’s enough controls on the process that someone, somewhere, will catch the most glaringly obvious issues.  You fix it, absorb the loss (if any), and make sure you don’t do it again.  When you are being paid to provide that service externally and also companies are relying on you to ensure security (another issue all-together – simply passing on that responsibility is madness IMO) you <em>have</em> to get it right.</p>
<p>I’m surprised it’s taken this long, but a security (PCI) auditor is <a href="http://www.wired.com/threatlevel/2009/06/auditor_sued/" target="_blank">being sued</a> for giving the thumbs-up to a company that turned out to be (very) vulnerable.</p>
<p>Now, there’s a lot of <span style="text-decoration: line-through;">squirming</span> PR from the PCI council that every company that was breached and just so happened to have compliance were in-face not in compliance at the time of the breach.  However, what, if to really make it simple, I tested a site and later it was hacked through some SQLi and the client said that they hadn’t update the code or anything so I should have found that vuln.  Obviously, all services consultancies have some legalize in their statements of work that cover them for this (if not, there’s a huge hole waiting for you to fall into), as it’s impossible to “prove” anything is “secure”, but what protects that from happening.</p>
<p>At the moment, I think the only things we have are methodologies/checklists (so we know what was looked at and have a “minimum level of inspection”), some “best practices” (that most of the industry seems to agree on, so we should be looking/testing/advising on them), the professionalism of the people doing the work (goes without question), and reputation (which you don’t want to lose – either individually or as a company as your ability to get future employment/work/contract will certainly suffer).</p>
<p>Are there things that we can do to assure that the assurers (auditors, security consultancies) are doing their job right?  Do we have the same worries with accountants, CPA’s, and people that help you with your taxes?</p>
<p>Rich at Securosis (when those guys post, it’s so insightful it often triggers my own thoughts and a post – it’s been quiet for me from them for a while, but they are back on all cylinders now <img src='http://www.mikeandrews.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ) has posted some of <a href="http://securosis.com/blog/how-market-forces-can-fix-pci" target="_blank">his thoughts</a> up on how to make the PCI audit process better, but I think looking at the accounting professionals might be a way to go.  After all, aren’t they doing a similar job as we are doing (approving the state of a company and that there’s no “lying” going on), and they have just as much “wiggle-room/fuzziness” (although numbers are numbers, and much easier to quantify and prove than software and computer systems).</p>
<p>I think we’re going to have to go that way at some point, and perhaps more and more security auditors will get sued in the process.  Privately I’ve said quite a few times that the only two things that might shake the security industry on it’s head both being with ‘L’ – Legislation or Litigation – and now we are seeing both.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2009/06/03/security-auditor-gets-sued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Software Security Model &#8211; BSI-MM released</title>
		<link>http://www.mikeandrews.com/2009/03/12/software-security-model-bsi-mm-released/</link>
		<comments>http://www.mikeandrews.com/2009/03/12/software-security-model-bsi-mm-released/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 18:54:27 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2009/03/12/software-security-model-bsi-mm-released/</guid>
		<description><![CDATA[Haven’t been posting for a while because work is really busy right now.&#160; More on that, and what I’m up to perhaps in another post but I’ve been asked to have a look at and post about The Building Security In Maturity Model.
I’ve always liked the idea of maturity models – it gives organizations an [...]]]></description>
			<content:encoded><![CDATA[<p>Haven’t been posting for a while because work is really busy right now.&#160; More on that, and what I’m up to perhaps in another post but I’ve been asked to have a look at and post about <a href="http://bsi-mm.com/" target="_blank">The Building Security In Maturity Model</a>.</p>
<p>I’ve always liked the idea of maturity models – it gives organizations an idea of what other places are doing, and a “where they stand” in the industry (one of the things I’m <em><strong>always</strong></em> asked at the end of project is how did the client compared to “others”, so even post-school/university, people still want to know where on “the curve” they sit!).&#160; The thing that I dislike about maturity models are that they encapsulate a set of activities with associated levels and the assumption is that as you do more of the activities the higher up the levels you get and thus the better you are at whatever the model encapsulates.</p>
<p>That’s not always the truth though.&#160; SEI-CMM was always presented in a way that if you don’t do all the activities for a certain level then you were “stuck” there.&#160; i.e. didn’t do all the activities for level one, but most (if not all) of level two – you’re de-facto level one.&#160; One of the papers my research professor back in the UK (the eminent computer scientist <a href="http://en.wikipedia.org/wiki/Les_Hatton" target="_blank">Les Hatton</a> <img src='http://www.mikeandrews.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) was a favorite of mine titled <a href="http://www.leshatton.org/Documents/Linux_and_CMM.pdf" target="_blank">Linux and the CMM</a> [PDF link].&#160; In summary, despite Linux being a rather good bit of software engineering (both process and quality) it is firmly rooted in level 1 – apparently not all of the “activities” are necessary to build good software.&#160; The SEI-CMM has been retired now and we’ve moved on from this idea, but in many cases this view of activities –&gt; levels –&gt; “good/bad” remains.</p>
<p>In BSI-MM there are “levels”, but from what I understand of it you don’t necessarily progress up them (although there’s clearly going to be this thought in some organizations), but rather a set of practices/good ideas/activities that are embodied in the software security initiatives for the organizations(9 of them – all <em>really</em> doing something to improve their software security) that were analyzed to make the model.&#160; To really bring this home you have to see the graph at the end of the <a href="http://bsi-mm.com/faq/" target="_blank">FAQ</a> – The “average” maturity for each of the sections in the model are all over the place which means that some companies focus more/less on some activities over others.&#160; Actually digging into the full document itself and reading the introduction/prolog really brings it home of how to best use the model, which I hope more people will do than simply browsing the framework online (how about linking to this text before the model Gary?&#160; I think it might help “set the idea” of how to use the SSF better for casual viewers that don’t want to download and read the entire PDF document <s>– maybe I didn’t find the link on the site though</s> Edit: Ok, I found some at the bottom of the FAQ but I still think it&#8217;s a little easy to skip over).</p>
<p>The part for me that I really liked was the section that gave the real stats on who does what.&#160; Like all 9 of the companies did these activities (which made them “core” and probably critical – much like the core competencies in Linux development that made it much more than a level 1 maturity).&#160; Seeing the raw count of how many did each activity was interesting as well – the activities that only one organization was observed doing I would guess that some of it is driven by their operating requirements or compliance needs (perhaps breaking this down by vertical as well would show some interesting correlations?).&#160; One big question as well is answered &#8211; “How many security people should I have”.&#160; The answer, at least within the 9 organizations that the model is based on, is 1% of the development staff are dedicated to a “software security group”.&#160; I think there’s there’s an important distinction thought in “development staff” vs “operational staff”, and I believe that this model is only looking at the former so bear that in mind before using this stat too directly which I’m sure is going to be quoted in many a under-resourced IT departments.</p>
<p>In all I think this is a great piece of work and a good insight into the software security practices of companies that are really hard to uncover and even worse to get them to share.&#160; Thanks must go to the authors of this – Gary McGraw, Brian Chess and Sammy Mingues – but also to the organizations that opened up their practices and allowed them to be analyzed, reviewed, categorized and shared.&#160; Information really is power, and this kind of knowledge I fell really does help move our little corner of the industry along for everyone involved that wants to get better and take security engineering seriously.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2009/03/12/software-security-model-bsi-mm-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The war on WAFs</title>
		<link>http://www.mikeandrews.com/2008/06/28/the-war-on-wafs/</link>
		<comments>http://www.mikeandrews.com/2008/06/28/the-war-on-wafs/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 14:52:03 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2008/06/28/the-war-on-wafs/</guid>
		<description><![CDATA[Well, it looks like the war of WAFs is ON!&#160; TS/Sci Security have done a great series of posts on the topic, the vast majority of which I whole-heartedly agree with.&#160; I&#8217;m sure that any readers of this blog would be reading TS/Sci, but if only so I can remember myself and have a record, [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it looks like the war of WAFs is ON!&nbsp; TS/Sci Security have done a great series of posts on the topic, the vast majority of which I whole-heartedly agree with.&nbsp; I&#8217;m sure that any readers of this blog would be reading TS/Sci, but if only so I can remember myself and have a record, I&#8217;ll (badly) summarize the posts.</p>
<p><a href="http://www.tssci-security.com/archives/2008/06/23/week-of-war-on-wafs-day-1-top-ten-reasons-to-wait-on-wafs/">Week of War on WAF’s: Day 1 — Top ten reasons to wait on WAF’s</a> &#8211; As it says on the tin, reasons to wait and not deploy a WAF.&nbsp; I guess, that this is the post that I disagree with the most out of the series because of some of the items on the list, but that&#8217;s beside the point &#8211; it&#8217;s a good place to start the argument.</p>
<p><a href="http://www.tssci-security.com/archives/2008/06/25/week-of-war-on-wafs-day-2-a-look-at-the-past/">Week of War on WAF’s: Day 2 — A look at the past</a> &#8211; To show that the argument against has been going on for quite some time, a copy of an email from OWASP to the Application Security Consortium (PCI) in 2004 is presented.</p>
<p><a href="http://www.tssci-security.com/archives/2008/06/26/week-of-war-on-wafs-day-3-language-specific/">Week of War on WAF’s: Day 3 — Language specific</a> &#8211; Points out that differences in how languages/frameworks (PHP, Ruby, ASP.NET, etc, etc) parse CGI variables may leave open holes.&nbsp; For example, if the WAF is written in C/C++ and parses URL&#8217;s one way, the target script may parse it differently (despite what the RFC says) because of canoncalization issues.</p>
<p><a href="http://www.tssci-security.com/archives/2008/06/26/week-of-war-on-wafs-day-4-closer-to-the-code/">Week of War on WAF’s: Day 4 — Closer to the code</a> &#8211; Argues that validation should be closer to the code and that there are methods that this can easily be added (one way put forward is Aspect Oriented Programming)</p>
<p><a href="http://www.tssci-security.com/archives/2008/06/27/week-of-war-on-wafs-day-5-final-thoughts/">Week of War on WAF’s: Day 5 — Final thoughts</a> &#8211; Identifies some short-term alternatives to using a WAF without going through a full SDLC.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2008/06/28/the-war-on-wafs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Does Hollywood have no imagination?</title>
		<link>http://www.mikeandrews.com/2008/06/18/does-hollywood-have-no-imagination/</link>
		<comments>http://www.mikeandrews.com/2008/06/18/does-hollywood-have-no-imagination/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 00:26:59 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2008/06/18/does-hollywood-have-no-imagination/</guid>
		<description><![CDATA[I know that it may seem that I&#8217;m on a big rant as I&#8217;m moving out of SoCal, but honestly this has been brewing (and talked about with various people) for some time &#8211; I just haven&#8217;t had anything to point to and say &#8220;there!&#8221;.
A really cool article in the NYT a week or so [...]]]></description>
			<content:encoded><![CDATA[<p>I know that it may seem that I&#8217;m on a big rant as I&#8217;m moving out of SoCal, but honestly this has been brewing (and talked about with various people) for some time &#8211; I just haven&#8217;t had anything to point to and say &#8220;there!&#8221;.</p>
<p>A really cool article in the NYT a week or so ago detailed some &#8220;additions&#8221; that an architect did to a client&#8217;s apartment in New York without telling them.&nbsp; I won&#8217;t go into detail because it&#8217;s a <a href="http://www.nytimes.com/2008/06/12/garden/12puzzle.html?_r=3&amp;pagewanted=2&amp;partner=rssnyt&amp;emc=rss&amp;oref=slogin#" target="_blank">fascinating read</a> and it will spoil the story.&nbsp; However, just today I saw that JJ Abrams wants to <a href="http://feeds.gawker.com/~r/gawker/full/~3/314906398/" target="_blank">make a movie</a> based on that article.</p>
<p>Is it me, or does Hollywood have no original ideas left in them?&nbsp; Sure, it&#8217;s an interesting story, but as the Gawker post says, it&#8217;s been done before.&nbsp; McG tried to bring one of my <a href="http://en.wikipedia.org/wiki/Spaced" target="_blank">favorite TV shows</a> back in the UK over to the US (in what I heard was a a word-for-word remake) <a href="http://www.variety.com/article/VR1117975292.html?categoryid=2526&amp;cs=1" target="_blank">without even consulting</a> with the originators/cast &#8211; that went so well a <a href="http://www.aintitcool.com/node/36016" target="_blank">fan</a> <a href="http://www.spaced-out.org.uk/">revolt</a> eventually canceled the show at the pilot.</p>
<p>It&#8217;s not even a few people.&nbsp; Lots of films recently seem to me to be either remakes, bad sequels, or TV shows adapted for the big screen (how the hell is <a href="http://www.imdb.com/title/tt0429493/" target="_blank">The A-Team</a> getting remade!).</p>
<p>I thought that Hollywood was the land of the creative geniuses?&nbsp; What has happened to all the interesting, engaging films and TV series (ok, I&#8217;m a big fan of <a href="http://www.scifi.com/battlestar/" target="_blank">BSG</a>, but that is so different and original vs the 1980&#8217;s series I&#8217;m not lumping it in with all the others).&nbsp; There&#8217;s a lot of talent out there, so why isn&#8217;t it being used?&nbsp; Is it because the studios just don&#8217;t want to take the risk(s) any more and just go for the &#8220;safe&#8221; option with &#8220;established&#8221; brands? (how did that work out for you Knight Rider?).&nbsp; All my favorite shows seem to get canceled very quickly, so how is one supposed to &#8220;invest&#8221; in a program &#8211; looks like I&#8217;m just going to have to wait for the DVD&#8217;s to appear on NetFlix.</p>
<p>Ideas anyone?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2008/06/18/does-hollywood-have-no-imagination/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The State of Web Security</title>
		<link>http://www.mikeandrews.com/2008/05/20/the-state-of-web-security/</link>
		<comments>http://www.mikeandrews.com/2008/05/20/the-state-of-web-security/#comments</comments>
		<pubDate>Tue, 20 May 2008 23:44:48 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2008/05/20/the-state-of-web-security/</guid>
		<description><![CDATA[It&#8217;s been a little under a month since I last posted for various reasons &#8211; both work (some interesting engagements have taken my time) and personal (family/friends visiting &#8211; it&#8217;s a bit rude to be surfing and posting while you have guests  ) &#8211; and although there&#8217;s been a lot software and web security [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a little under a month since I last posted for various reasons &#8211; both work (some interesting engagements have taken my time) and personal (family/friends visiting &#8211; it&#8217;s a bit rude to be surfing and posting while you have guests <img src='http://www.mikeandrews.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) &#8211; and although there&#8217;s been a lot software and web security news, honestly I&#8217;ve got a little &quot;jaded&quot; with it all.&#160; That&#8217;s not really me because I&#8217;m (still) really into security and software engineering in general, however, I just can&#8217;t shake the feeling of &quot;d&#233;j&#224; vu&quot; that all the talk is about things we <em>all ready know!</em>&#160; So please bear with me while I revisit some old news and regurgitate my thoughts</p>
<p><strong>XSS silliness</strong></p>
<p>Obama&#8217;s website was found to have <a href="http://xssed.com/news/65/Barack_Obamas_official_site_hacked/">lots of XSS issues</a>, and just to be non-partisan, Clinton&#8217;s <a href="http://xssed.com/search?key=clinton">also</a> seems to have had some issues as well. </p>
<p>Is anyone really surprised here?&#160; XSS is the most widespread vulnerability on the web, despite it being one of the simplest to mitigate against.&#160; As the guys as <a href="http://www.veracode.com/blog/?p=89">Veracode</a> point out, and the <a href="http://www.owasp.org/index.php/XSS#How_to_Protect_Yourself">guidance from OWASP</a>, it&#8217;s not all about input validation (although that&#8217;s not a bad thing), but in this case more specifically output encoding.&#160; It would seem that <em>still,</em> programmers, site developers, etc, just aren&#8217;t concerned about doing a very simple API call (such as <a href="http://us2.php.net/manual/en/function.htmlentities.php">htmlentities</a> or <a href="http://msdn.microsoft.com/en-us/library/ms525347(VS.85).aspx">Server.HTMLEncode</a>) or perhaps even better using one of the <a href="http://www.owasp.org/index.php/Category:OWASP_PHP_AntiXSS_Library_Project">AntiXSS</a>&#160;<a href="http://www.microsoft.com/downloads/details.aspx?familyid=EFB9C819-53FF-4F82-BFAF-E11625130C25&amp;displaylang=en">libraries</a> before writing to the page, which IMO would mitigate probably 90%+ of all attacks.&#160; I&#8217;m not sure if this is simply people being uninformed, laziness, or simple risk acceptance, but I would have expected better of them knowing the exposure the site(s) would obviously get.</p>
<p><strong>Mass SQL injection</strong></p>
<p>If it&#8217;s not XSS, it seems that that vulnerability du jour is SQL injection.&#160; <a href="http://www.darkreading.com/document.asp?doc_id=153770">Recent news</a> has been circulating about a <a href="http://blog.washingtonpost.com/securityfix/2008/04/hundreds_of_thousands_of_micro_1.html">mass SQLi attack</a> on windows-based webservers.&#160; Looking at the attack myself (there&#8217;s good examples <a href="http://ddanchev.blogspot.com/2008/04/united-nations-serving-malware.html">here</a> and <a href="http://forums.iis.net/t/1148917.aspx?PageIndex=1">here</a>) it seems that it&#8217;s not MSFT specific, but from reports, the script/bots were specifically targeting ASP pages.&#160; Seems reasonable targeting ASP as it&#8217;s an old(er) platform and doesn&#8217;t have the same level of in-build protection as ASP.NET and is probably &quot;legacy&quot; code that hasn&#8217;t been reviewed/fixed for known security issues as much as &quot;new&quot; code would have been.</p>
<p>Michael Howard wrote about the issue on the <a href="http://blogs.msdn.com/sdl/archive/2008/05/15/giving-sql-injection-the-respect-it-deserves.aspx">SDL blog</a>, and once again, this is an issue that is well known and easily protected against &#8211; even more so by looking at the exploit (which was to write scripting to the page via SQLi to change any text in the DB that would in all likelihood get output at some point) and doing some output encoding as discussed above &#8211; just because the data is coming from the database doesn&#8217;t mean it&#8217;s &quot;trusted&quot;.&#160; So, defense in depth people!&#160; Stored procedures, read only access, output encoding.</p>
<p>This is why I&#8217;m a bit jaded &#8211; there&#8217;s a lot of talk about vulnerabilities we already know lots about, and have simple ways of mitigating.&#160; What&#8217;s at issue is, as I&#8217;ve already said above, is ignorance, inactivity, or arrogance, and I&#8217;m not sure which is worse.&#160; I&#8217;ll get onto each of these in the final section of this post</p>
<p><strong>PCI-DSS 6.6</strong></p>
<p>I&#8217;ve said for some time that only two things really force companies to do things they don&#8217;t want to, security included, both begin with the letter &#8216;L&#8217; &#8211; <a href="http://en.wikipedia.org/wiki/Legislation">legislation</a> or <a href="http://en.wikipedia.org/wiki/Litigation">litigation</a>.&#160;&#160; Legislation usually is associated with a government passing laws down (e.g. HIPPA, SOX, etc) so companies have to be in compliance, whereas companies may do certain activities to defend themselves and try to avoid costly litigation from people suing them if things go wrong.</p>
<p>The <a href="http://en.wikipedia.org/wiki/PCI_DSS">PCI-DSS</a> sort of in my mind falls between these two, with legislation from the major credit card companies giving &quot;guidance&quot; of how to protect cardholder data (and with the vendor risking losing their ability to process credit cards if they are out of this &quot;guidance&quot;,&#160; or not in &quot;compliance&quot;) and legislation (where if there is a breach, a company that is in compliance can claim that they were at least not negligent in their security).&#160; Often the criticism is that PCI doesn&#8217;t have any real &quot;teeth&quot; and it&#8217;s mostly a CYA activity.&#160; I disagree to some level because at least it&#8217;s doing something (and although I&#8217;m not a network guy, it seems that from that aspect it&#8217;s doing a reasonably good job), however I do agree that from a software perspective it doesn&#8217;t go far enough.&#160; That&#8217;s why the next version (specifically the section PCI-DSS 6.6) was so eagerly anticipated, not to mention that it is a requirement (in contrast to optional) starting in June.</p>
<p>There&#8217;s been <a href="http://jeremiahgrossman.blogspot.com/2008/04/finally-finally-pci-66-clarification.html">lots</a> of <a href="http://www.veracode.com/blog/?p=85">comments</a> about this (too numerous to link to all of them, but there&#8217;s refs from these main two), including <a href="https://www.pcisecuritystandards.org/pdfs/infosupp_6_6_applicationfirewalls_codereviews.pdf">clarification</a> from PCI themselves.&#160; My take?&#160; Nothing really has changed and as ever things are (still) as clear as mud.&#160; It&#8217;s still using OWASP top 10 as it&#8217;s &quot;secure coding guidelines&quot; (although it&#8217;s dropped the &quot;top 10&quot; part), and there&#8217;s still general &quot;fuzziness&quot; over how the testing should be conducted.&#160; I&#8217;ve banged my head against this for some time, and not going to waste effort on it any more, but Mark Curphey wrote up what he (and I) feel are the <a href="http://securitybuddha.com/2007/03/23/the-problems-with-the-pci-data-security-standard-part-1/">main</a> <a href="http://securitybuddha.com/2007/01/29/why-the-pci-standard-needs-as-serious-re-think/">problems</a> some time ago, along with a <a href="http://securitybuddha.com/2007/06/25/principles-of-a-good-security-evaluation-criteria/">possible solution</a> if the effort was ever put into it to really design/write it properly.&#160; Even if a such a &quot;risk based&quot; evaluation criteria ever does get completed, I very much doubt it will be ever replace something like PCI &#8211; an approach like that costs money, and no-one really want&#8217;s to spend much of it (especially now) on anything that doesn&#8217;t provide a clear &quot;return&quot;. </p>
<p><strong>Automated scanning</strong></p>
<p>That last sentence is really why so many people signing up for &quot;automated scanning&quot; solutions &#8211; it&#8217;s generally cheaper, repeatable, and easier to &quot;off-load&quot; to some 3rd-party.&#160; I&#8217;ll have to be really careful here (as people that both know me, follow the PCI + scanning news, and know who I ultimately work for can appreciate), but I have huge issues with <em>any</em> fully automated system claiming that they comprehensively test security and give you any form of &quot;you are secure&quot; result.&#160; Gary McGraw calls them &quot;<a href="http://www.cigital.com/justiceleague/2007/03/19/badness-ometers-are-good-do-you-own-one/">Badness-ometers</a>&quot;, which is a great term.</p>
<p>The danger of automated scanning today is that some sites are basing their entire security to them and believing the results these tools/services give them.&#160; When the tool/service fails (a vulnerability is discovered that the tool/service hasn&#8217;t found), there&#8217;s a big circle of blame that starts &#8211; the vuln isn&#8217;t all that serious/the tool didn&#8217;t find it because it was badly configured/it&#8217;s not &quot;real world&quot; exploitable/we don&#8217;t test for that/out of scope/etc/etc.&#160; What is even more worrying is that many companies just don&#8217;t know that many (most in fact) of the real security issues a site might be concerned about <em>can&#8217;t be tested in any (current) meaningful way automatically</em>. I say &quot;current&quot;, because who knows what advances we might have in the next 5-10 years.&#160; Automated network scanning works to a useful level because what is being scanned is so homogeneous &#8211; there are only so many operating system, only so many network devices &#8211; so it&#8217;s a lot easier to write tests for them.&#160; From my experience though most websites are bespoke, and there are few similarities from one site to the next &#8211; writing generic/reusable tests for these are difficult at best.&#160; I&#8217;ve a few ideas that would require more research and investigation, but I&#8217;ll leave those for another time.</p>
<p>Software security takes effort and few-and-far-between are putting that effort in.&#160; Some simple activity to give &quot;feel good&quot; security may work to a small degree, <a href="http://www.schneier.com/essay-165.html">but it shouldn&#8217;t</a> &#8211; the buyer and the vendor don&#8217;t have equal information on what is being provided.&#160; Any attempt at pointing out these inconsistencies or providing a standardized way for evaluation results in finger pointing to biases, or just plain obstruction.&#160; Sometimes I wish that I were back in academia to actually do some real analysis on this issue and not worry about upsetting anyone or worrying about job security if you say something that isn&#8217;t taken favorably.&#160; One shouldn&#8217;t be worried about saying that the Emperor has no clothes, and looking to solve the issue (if it is an issues, and it&#8217;s necessary), but many of us are.&#160; </p>
<p><strong>Does security really matter?</strong></p>
<p>Watching all these items arrive in my RSS reader has led me to question if security really does matter outside of us that do it for a living &#8211; the first two sections of this post show that extremely common and well-known vulnerabilities are still not being addressed, whereas the last two (if I take them at face value from a very high level) are that web security seems to be heading toward becoming a &quot;checklist&quot; process which a &quot;do the easiest&quot; bent and few people are questioning this move.&#160; The &quot;ignorance, inactivity, or arrogance&quot; question that I mentioned above can be &quot;all of the above&quot;, but at different times, like the <a href="http://en.wikipedia.org/wiki/K%C3%BCbler-Ross_model">5 stages of grief</a>.</p>
<p>Please correct me if I&#8217;m wrong on any of the above.&#160; The only answer I can possibly come up with is security doesn&#8217;t matter until it <em>matters</em> (no surprise there) and it appears that everyone is just waiting for that &quot;silver bullet&quot; to solve all their problems, most of which they don&#8217;t know/care/have the time to deal with.&#160; Jeremiah Grossman writes a <a href="http://jeremiahgrossman.blogspot.com/2008/05/does-secure-software-really-matter.html">similar story</a>, and his conclusion seems to be &quot;virtual patching&quot;, which stands to reason as his company is pushing scanning + WAF integration.&#160; There&#8217;s a good comment feed that goes along with his post that&#8217;s worth following.&#160; </p>
<p>This &quot;point and shoot&quot; method concerns me, even if I benefit from it somewhat in my current employment and industry.&#160; However, with the amount of legacy code out there, and the apparent unconcern (as identified above) at &quot;doing the right thing&quot;, it really does seem that a paralysis is setting in while we wait for that &quot;silver bullet&quot; instead of incrementally doing better things (I&#8217;ve written about silver bullets and magic beans before) &#8211; what we appear to be doing is simply putting a band-aid on the problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2008/05/20/the-state-of-web-security/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Web Attack Trends 2007</title>
		<link>http://www.mikeandrews.com/2008/02/25/web-attack-trends-2007/</link>
		<comments>http://www.mikeandrews.com/2008/02/25/web-attack-trends-2007/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 23:23:59 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Industry]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2008/02/25/web-attack-trends-2007/</guid>
		<description><![CDATA[ Also crossing my RSS feed today is the Web Hacking Incidents Database Annual report for 2007 [warning: PDF link behind free registration - I'm sure if you don't want to register, you know what do to  ]
The ModSecurity blog summarized it nicely, but there are some areas of it that I find a [...]]]></description>
			<content:encoded><![CDATA[<p><img border="0" align="left" width="260" src="http://www.mikeandrews.com/wp-content/uploads/2008/02/whid2007.png" alt="whid2007" height="183" style="margin: 0px 10px 5px 0px; border: 0px" /> Also crossing my RSS feed today is the <a href="https://bsn.breach.com/account/login.php?_return=%2Fdownloads%2Fwhid%2FThe%2520Web%2520Hacking%2520Incidents%2520Database%2520Annual%2520Report%25202007.pdf">Web Hacking Incidents Database Annual report for 2007</a> [warning: PDF link behind free registration - I'm sure if you don't want to register, you know what do to <img src='http://www.mikeandrews.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ]</p>
<p>The <a href="http://www.modsecurity.org/blog/archives/2008/02/web_hacking_inc.html">ModSecurity</a> blog summarized it nicely, but there are some areas of it that I find a bit weird.</p>
<p>First thing that hits me is that SQL injection is listed as the number one attack vector.  This surprises me somewhat, as XSS seems clearly to be where so many vulnerabilities are being found &#8211; you just have to step over to the <a href="http://sla.ckers.org/forum/">sl.ackers.org</a> forum to see how often.  However, saying that, some companies (who shall remain nameless) don&#8217;t rate XSS injections too highly because it mostly targets end-users &#8211; often (but not always) no &#8220;data&#8221; is lost on the server.  This attitude I think just shows disrespect to users because it pushes security (or <em>in</em>security) on to them, and could allow them to throw up their hands and say &#8220;well you allowed for your account to be compromised&#8221; or &#8220;hey, you fell for it&#8221; (obviously not using those exact words though).</p>
<p>Although it&#8217;s only a few quick sentences, there&#8217;s an interesting revelation that one third of the attacks were &#8220;operational mistakes&#8221; where unintentional publishing of information caused either the site to be at risk, or it&#8217;s users details being left out there in the open.  Doesn&#8217;t sound far-fetched at all &#8211; I&#8217;ve had one client that had a very sensitive access database left completely open on a public webserver, and didn&#8217;t even have the logs any more to at least see if it was ever accessed!</p>
<p>I&#8217;ve <a href="http://www.mikeandrews.com/2008/02/13/to-patch-or-not-to-patch/">argued it before</a>, but 15% of the vulnerabilities exploited were previously known.  &#8216;Nuf said.</p>
<p>Cross-site request forgery is a tiny 2% of the total.  This is one of the big worrying stats to me because either attackers aren&#8217;t yet taking advantage of this vector (which most sites are vulnerable to in some way) or the attacks are just going unnoticed (which wouldn&#8217;t be to surprising either as the traffic looks so much like &#8220;legitimate&#8221; use, and if it&#8217;s kept small, users probably wouldn&#8217;t notice).</p>
<p>Finally, despite lots of efforts of people either talking about secure code/websites, awareness, community projects, improvements in frameworks, technology, etc, it appears that things are getting worse, not better.  I&#8217;m not going to steal another graph from the report as I appreciate I&#8217;m pushing it with just one &#8211; please grab the report for yourself &#8211; but there&#8217;s clearly an upwards trend.  There could be an bias as maybe reporting is just better/more frequent because the focus is shifting away from traditional software (and unlike tracking patches from established companies, websites can be patched silently), but it feels about right.</p>
<p>Anyway, interesting stuff, and a big &#8220;keep up the great work&#8221; to the guys at <a href="http://www.breach.com">Breach</a> for doing this and everyone over at the <a href="http://www.webappsec.org/">Web Application Security Consortium</a>.  Hit up the links for more info and post your own analysis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2008/02/25/web-attack-trends-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>And we&#8217;re live&#8230;</title>
		<link>http://www.mikeandrews.com/2008/01/01/and-were-live/</link>
		<comments>http://www.mikeandrews.com/2008/01/01/and-were-live/#comments</comments>
		<pubDate>Wed, 02 Jan 2008 12:25:27 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikeandrews.com/2008/01/01/and-were-live/</guid>
		<description><![CDATA[So, after a few technical hiccups, I&#8217;m finally &#34;live&#34;.&#160; 
Check out the &#34;about&#34; and &#34;contact&#34; pages to the right, for more information, but for now it&#8217;s nice to have you visit, and hope you find something interesting.
]]></description>
			<content:encoded><![CDATA[<p>So, after a few technical hiccups, I&#8217;m finally &quot;live&quot;.&#160; </p>
<p>Check out the &quot;about&quot; and &quot;contact&quot; pages to the right, for more information, but for now it&#8217;s nice to have you visit, and hope you find something interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikeandrews.com/2008/01/01/and-were-live/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
