<?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>Vidar's Musings &#187; Security</title>
	<atom:link href="http://www.kongsli.net/nblog/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kongsli.net/nblog</link>
	<description>Deep thoughts on shallow topics</description>
	<lastBuildDate>Fri, 27 Jan 2012 07:36:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Is the Internet security battle lost?</title>
		<link>http://www.kongsli.net/nblog/2009/02/19/is-the-internet-security-battle-lost/</link>
		<comments>http://www.kongsli.net/nblog/2009/02/19/is-the-internet-security-battle-lost/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 12:10:53 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=94</guid>
		<description><![CDATA[According to this New York Times article, researchers at Stanford University vote in favor of starting all over, redesigning the Internet. I wonder if that is the way to go? At the same time, they suggest an evolutionary approach: &#8220;They argue that their new strategy is intended to allow new ideas to emerge in an [...]]]></description>
			<content:encoded><![CDATA[<p>According to <a title="Do we need a new Internet? NYTimes.com" href="http://www.nytimes.com/2009/02/15/weekinreview/15markoff.html?pagewanted=1&amp;_r=1">this</a> New York Times article, researchers at<a title="Link to Stanford University homepage" href="http://www.stanford.edu/"> Stanford University</a> vote in favor of starting all over, redesigning the Internet. I wonder if that is the way to go? At the same time, they suggest an evolutionary approach:</p>

<blockquote><em>&#8220;They argue that their new strategy is intended to allow new ideas to emerge in an evolutionary fashion, making it possible to move data traffic seamlessly to a new networking world.&#8221; </em></blockquote>

<p>The Internet has indeed been evolutionary, how can one prevent ending up in the same mess once again?</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2009%2F02%2F19%2Fis-the-internet-security-battle-lost%2F&amp;title=Is%20the%20Internet%20security%20battle%20lost%3F" id="wpa2a_2"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2009/02/19/is-the-internet-security-battle-lost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows CardSpace anyone?</title>
		<link>http://www.kongsli.net/nblog/2008/06/20/windows-cardspace-anyone/</link>
		<comments>http://www.kongsli.net/nblog/2008/06/20/windows-cardspace-anyone/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 10:59:09 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[cardspace]]></category>
		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=59</guid>
		<description><![CDATA[I was at a presentation about Windows CardSpace a couple of days ago. Beautiful technology it might be, but I cannot help questioning the adoption of CardSpace in the real world. I cannot say I have ever come across any site that supports it. Have you? (If so, please let me know). On the other [...]]]></description>
			<content:encoded><![CDATA[<p>I was at a presentation about <a href="http://en.wikipedia.org/wiki/Windows_CardSpace">Windows CardSpace</a> a couple of days ago. Beautiful technology it might be, but I cannot help questioning the adoption of CardSpace in the real world. I cannot say I have ever come across any site that supports it. Have you? (If so, please let me know). On the other hand, <a href="http://en.wikipedia.org/wiki/OpenID">OpenId</a> seems to get quite a bit of momentum being supported by some of the big Internet companies out there (Yahoo!, Google, AOL to name a few).</p>

<p>OK, CardSpace and OpenId do not offer exactly the same solution, and are in some respects not comparable. Biggest difference would be OpenId&#8217;s reliance of passwords as authentication mechanism (which is one of the reasons for its lack of phishing attack protection), while CardSpace solves this problem using cryptography. However, there are a lot of similarities:</p>

<ul>
    <li>Both offer a distributed model that accepts various Identity providers (the user can choose from a number of IdPs)</li>
    <li>Both address the challenge with maintaining several user account/password for different Internet services</li>
</ul>

<h2>&#8220;OpenId is no good because it isn&#8217;t secure&#8221;</h2>

<p>When asking the presenter about the adoption of CardSpace versus the adoption of OpenId, this was his response. I think that this is a gross oversimplification that serves no other purpose than spreading FUD about security.</p>

<p>First of all, if OpenId is good enough for Yahoo! and the like, it will probably be good enough for 80% of the Internet sites out there. I can think of a lot more sites out there that require &#8220;less security&#8221; than Yahoo! out there, than sites  that require a higher security level.</p>

<p>Secondly, security is not binary (secure &#8211; not secure). There are different levels of security. Saying that one solution is secure and another one isn&#8217;t, is being ignorant towards the field of security. Basically, security (as everything else) come at a cost. In the case of CardSpace, the cost is maintenance of your cards and the corresponding public/private key infrastructure. I do not know CardSpace in detail, but a main challenge here I suspect will be exactly the same as for other public/private key based solutions: how do you bring your keys with you? For instance, if you created a card in a CardSpace on your workstation at work, how do you bring them with you when you want to log in from your home computer or from an Internet café? Having them on a USB stick would probably be a choice, but even that limits the usage quite a lot. Passwords, on the other hand, you carry with you in your head (at least, that&#8217;s the idea <img src='http://www.kongsli.net/nblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2008%2F06%2F20%2Fwindows-cardspace-anyone%2F&amp;title=Windows%20CardSpace%20anyone%3F" id="wpa2a_4"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2008/06/20/windows-cardspace-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPSLA&#8217;07: Security Testing with Selenium</title>
		<link>http://www.kongsli.net/nblog/2007/10/25/oopsla07-security-testing-with-selenium/</link>
		<comments>http://www.kongsli.net/nblog/2007/10/25/oopsla07-security-testing-with-selenium/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 15:30:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software testing]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=46</guid>
		<description><![CDATA[I ran my demo at OOPSLA today entitled &#8216;Security Testing with Selenium&#8217;. You may find the presentation slides here.]]></description>
			<content:encoded><![CDATA[<p>I ran my demo at <a href="http://www.oopsla.org/oopsla2007/">OOPSLA</a> today entitled &#8216;Security Testing with Selenium&#8217;. You may find the presentation slides <a href="http://www.kongsli.net/oopsla/OOPSLA'07%20Security%20Testing%20with%20Selenium%20v1.0.pdf">here</a>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F10%2F25%2Foopsla07-security-testing-with-selenium%2F&amp;title=OOPSLA%26%238217%3B07%3A%20Security%20Testing%20with%20Selenium" id="wpa2a_6"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/10/25/oopsla07-security-testing-with-selenium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OOPSLA&#8217;07 &#8211; Security</title>
		<link>http://www.kongsli.net/nblog/2007/10/23/oopsla07-security/</link>
		<comments>http://www.kongsli.net/nblog/2007/10/23/oopsla07-security/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 21:02:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Software development]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=43</guid>
		<description><![CDATA[My second day at OOPSLA consisted of two security related workshops. The first one as entitled &#8220;Security Patterns and Secure Software Architecture&#8221; and was presented by Munawar Hafiz. Security patterns seems to be an interesting topic and will perhaps be an important tool for security professionals. The second tutorial was &#8220;Software Security: Building Security in&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>My second day at OOPSLA consisted of two security related workshops. The first one as entitled &#8220;Security Patterns and Secure Software Architecture&#8221; and was presented by <a href="https://netfiles.uiuc.edu/mhafiz/www/">Munawar Hafiz</a>. Security patterns seems to be an interesting topic and will perhaps be an important tool for security professionals.</p>

<p>The second tutorial was &#8220;Software Security: Building Security in&#8221; by <a href="http://www.cigital.com/~gem/">Gary MacGraw</a>. Although I have read a couple of his books, I found the tutorial very interesting. Many good insights (and some funny ones) were touched upon.</p>

<h3>Perimeter defense does not work</h3>

<p>One of the important things is that making an insecure application secure by putting up a firewall in front of it is flawed for many reasons. Trying to shield the application from the world is kind of the opposite of what we want to do. We <strong>want</strong> to be on the net, hence we should make the applications secure accordingly. Furthermore, it will not prevent attacks from insiders.</p>

<h3>Security people&#8217;s job is to say &#8220;no&#8221;!</h3>

<p>I can honestly say that this has crossed my mind one or few times. Although I am often involved with security, my job is <strong>not</strong> to say no, so hence I can deduce that I am not a &#8220;security person&#8221;. <img src='http://www.kongsli.net/nblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<h3>Does the choice if programming language matter for security?</h3>

<p>According to <a href="http://www.cigital.com/~gem/">Gary MacGraw</a>, it certainly does. For security, keep away from C and C++. In general, you should select a language that offers type safety. (This excludes C and C++). Furthermore, a question is if a statically typed language is better for security than a dynamically typed language. In my opinion, the answer here is not clear, although the presenter would probably go for a statically typed language.</p>

<h3>More code &#8211; more bugs</h3>

<p>This holds true for any bugs, not only those related to security. Hence, this is a fact that all people dealing with software development should be aware of. When your codebase grows, your number of bugs grow. Simple as that. You should honestly work on reducing your codebase as much as possible.</p>

<h3>Security is not a feature or a function</h3>

<p>Security is more of a quality aspect rather than a feature. I think this makes very much sense, and in fact I think that is reflected in Microsoft&#8217;s notion of &#8220;trustworthy computing&#8221;.</p>

<h3>One-pager architecture</h3>

<p>A good starting point for doing a security review of the architecture is to start with a one-page logical overview of the application as a starting point for discussion. I guess this is not only a practice related to security.</p>

<h3>Penetration testing has limited use</h3>

<p>I guess this can be summarized as follows: Penetration testing cannot verify that your code is good. It can only verify that your code stinks. The thought here is that penetration testing can only discover the uttermost serious problems, and running penetration testing is alone not enough to conclude that your application is secure.</p>

<h3>Attackers use same tools as software people do</h3>

<p>Attackers use compilers, decompilers, static analysis tools, coverage tools the same way as software developers do. Hence, developers who are familiar with these tools should learn how attackers use them so that they can defend against it. Network people would not know a compiler if it bit them.</p>

<h3>Time and state will be biggest problem in the future</h3>

<p>Today, proper input handling is regarded as the biggest security problem in applications. Looking into the crystal ball, time and state will probably move up to be the most important one since we see applications getting more distributed all the time and keeping track of time and state across locations will be more important.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F10%2F23%2Foopsla07-security%2F&amp;title=OOPSLA%26%238217%3B07%20%26%238211%3B%20Security" id="wpa2a_8"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/10/23/oopsla07-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Norwegian sites leaking information</title>
		<link>http://www.kongsli.net/nblog/2007/07/31/norwegian-sites-leaking-information/</link>
		<comments>http://www.kongsli.net/nblog/2007/07/31/norwegian-sites-leaking-information/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 07:52:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[identity theft]]></category>
		<category><![CDATA[information leakage]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=15</guid>
		<description><![CDATA[Norwegian tabloid Dagbladet revealed yesterday that several commercial and non-commercial sites can be exploited to perform identity theft. In Norway, all persons get assigned a unique number (&#8216;f&#38;oslash;dselsnummer in Norwegian), similar to the US Social Security Number. Altough law restrictions apply, several sites use this number for uniquely identifying a person. In this particular case, [...]]]></description>
			<content:encoded><![CDATA[<p>Norwegian tabloid <a href="http://www.dagbladet.no">Dagbladet</a> revealed yesterday that several commercial and non-commercial sites can be exploited to perform identity theft.</p>

<p>In Norway, all persons get assigned a unique number (&#8216;f&amp;oslash;dselsnummer in Norwegian), similar to the US Social Security Number. Altough law restrictions apply, several sites use this number for uniquely identifying a person.</p>

<p>In this particular case, a hacker created a tool that could reveal identity information by collecting information from several sites, including the following steps:</p>

<ul>
    <li>Generate a random identifier. The format and the algorithm for creating one is publicly known.</li>
    <li>Use site 1 to test whether the generated identifier is in use. This is possible because site 1 uses the number as user name. The logon procedure acts differently depending on whether the user name exists.</li>
    <li>Use site 2 to get personal details about the person to which the generated identifier belongs. (Surname, given name, address)</li>
</ul>

<p>This is of course possible because the sites are designed poorly and leak information (<a href="http://www.owasp.org/index.php/Top_10_2007">OWASP Top Ten</a> vulnerability #6). Second mistake is that site number two use the unique number for authentication.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F07%2F31%2Fnorwegian-sites-leaking-information%2F&amp;title=Norwegian%20sites%20leaking%20information" id="wpa2a_10"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/07/31/norwegian-sites-leaking-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Security analogies</title>
		<link>http://www.kongsli.net/nblog/2007/05/30/security-analogies/</link>
		<comments>http://www.kongsli.net/nblog/2007/05/30/security-analogies/#comments</comments>
		<pubDate>Wed, 30 May 2007 06:47:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=17</guid>
		<description><![CDATA[I just read Scott Granneman&#8217;s article on Security Analogies on SecurityFocus.com. He argues that the use of analogies is essential when explaining security to users. He makes a very good point. I think that in general, techies like myself should make more effort when explaining technical stuff to &#8220;ordinary&#8221; users. Analogy is an effective tool [...]]]></description>
			<content:encoded><![CDATA[<p>I just read Scott Granneman&#8217;s article on <a href="http://www.securityfocus.com/columnists/445?ref=rss">Security Analogies</a> on <a href="http://www.securityfocus.com">SecurityFocus.com</a>. He argues that the use of analogies is essential when explaining security to users. He makes a very good point. I think that in general, techies like myself should make more effort when explaining technical stuff to &#8220;ordinary&#8221; users. Analogy is an effective tool in that respect.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F05%2F30%2Fsecurity-analogies%2F&amp;title=Security%20analogies" id="wpa2a_12"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/05/30/security-analogies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design considerations for Web Services</title>
		<link>http://www.kongsli.net/nblog/2007/01/29/design-considerations-for-web-services/</link>
		<comments>http://www.kongsli.net/nblog/2007/01/29/design-considerations-for-web-services/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 13:01:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Web services]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=9</guid>
		<description><![CDATA[I came across this very good article discussing web services security: Security Concepts, Challenges, and Design Considerations for Web Services Integration. It discusses concepts and design in a very straightforward manner.]]></description>
			<content:encoded><![CDATA[<p>I came across this very good article discussing web services security: <a href="https://buildsecurityin.us-cert.gov/daisy/bsi/articles/best-practices/assembly/639.html">Security Concepts, Challenges, and Design Considerations for Web Services Integration</a>. It discusses concepts and design in a very straightforward manner.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F01%2F29%2Fdesign-considerations-for-web-services%2F&amp;title=Design%20considerations%20for%20Web%20Services" id="wpa2a_14"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/01/29/design-considerations-for-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HttpOnly broke my Selenium tests</title>
		<link>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests-2/</link>
		<comments>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests-2/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 10:28:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=10</guid>
		<description><![CDATA[On my current project (running .NET 2.0), I have been using Selenium to test various security related aspects of the application. (Could Selenium be used for security testing?, Selenium with support for cookie-management) I have been happily using Firefox for running my tests, but today I tried to run the tests in Internet Explorer 7. [...]]]></description>
			<content:encoded><![CDATA[<p>On my current project (running .NET 2.0), I have been using Selenium to test various security related aspects of the application. (<a href="http://www.kongsli.net/nblog/2006/05/11/could-selenium-be-used-for-security-testing/">Could Selenium be used for security testing?</a>, <a href="http://www.kongsli.net/nblog/2006/10/22/selenium-with-support-for-cookie-management/">Selenium with support for cookie-management</a>) I have been happily using Firefox for running my tests, but today I tried to run the tests in Internet Explorer 7. Without success.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F01%2F24%2Fhttponly-broke-my-selenium-tests-2%2F&amp;title=HttpOnly%20broke%20my%20Selenium%20tests" id="wpa2a_16"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HttpOnly broke my Selenium tests</title>
		<link>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests/</link>
		<comments>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 10:27:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=12</guid>
		<description><![CDATA[On my current project (running .NET 2.0), I have been using Selenium to test various security related aspects of the application. (Could Selenium be used for security testing?, Selenium with support for cookie-management) I have been happily using Firefox for running my tests, but today I tried to run the tests in Internet Explorer 7. [...]]]></description>
			<content:encoded><![CDATA[<p>On my current project (running .NET 2.0), I have been using Selenium to test various security related aspects of the application. (Could<a href="http://www.kongsli.net/nblog/2006/05/11/could-selenium-be-used-for-security-testing/"> Selenium be used for security testing?</a>, <a href="http://www.kongsli.net/nblog/2006/10/22/selenium-with-support-for-cookie-management/">Selenium with support for cookie-management</a>) I have been happily using Firefox for running my tests, but today I tried to run the tests in Internet Explorer 7. Without success.</p>

<p>The thing is that I have been using Selenium to verify login related functionality, so for instance a test could be something like these:</p>

<ul>
    <li>Test that a user can successfully log in by providing correct username and password</li>
    <li>Test that a user&#8217;s cookie session is ended when logging out</li>
    <li>&#8230;</li>
</ul>

<p>In order to successfully run these tests, I had to manipulate cookies in my tests:</p>

<ul>
    <li>To prevent tests from interfering with each other, I had to remove any session cookies in between tests</li>
    <li>Test for existence of session cookies</li>
    <li>&#8230;</li>
</ul>

<p>When running my tests in Firefox, this worked well. I could perform operations on the .ASPXAUTH cookie, which is the cookie that .NET uses to identify an authenticated session. When running IE 7 it breaks. The reason for this, is that Microsoft has created a new attribute on cookies called &#8216;HttpOnly&#8217; that .NET uses, and the Set-cookie HTTP header looks for instance like this:</p>

<blockquote>Set-Cookie: .ASPXAUTH=bisxfb45rbiclmjmqu4aa345893763387328743238736; path=/; HttpOnly</blockquote>

<p>IE 6 SP1 (and apparently also IE 7) makes such cookies inaccessible by JavaScript, as explained here: <a href="http://msdn.microsoft.com/workshop/author/dhtml/httponly_cookies.asp">Mitigating Cross-site Scripting With HTTP-only Cookies</a>.
Hence, my Selenium tests were unable to test for and to manipulate these cookies.</p>

<p>I have a mixed feeling about this. Everything that helps security makes me happy. However, everything that makes my application hard to test is baaaaaad. And I mean really bad. I think that the technical solution that Microsoft has come up with here is good &#8211; it really makes sense. Why should JavaScript be able to manipulate session cookies like these anyway? I cannot think of any good use case for that. <strong>However</strong>, this is proprietary stuff that Microsoft has come up with and is not an agreed standard. Makes my life as a developer harder. Not good.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2007%2F01%2F24%2Fhttponly-broke-my-selenium-tests%2F&amp;title=HttpOnly%20broke%20my%20Selenium%20tests" id="wpa2a_18"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2007/01/24/httponly-broke-my-selenium-tests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password insanity &#8211; once again</title>
		<link>http://www.kongsli.net/nblog/2006/12/13/password-insanity-once-again/</link>
		<comments>http://www.kongsli.net/nblog/2006/12/13/password-insanity-once-again/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 12:31:00 +0000</pubDate>
		<dc:creator>vidarkongsli</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[password policy]]></category>

		<guid isPermaLink="false">http://www.kongsli.net/nblog/?p=16</guid>
		<description><![CDATA[Yes, it&#8217;s a fact that people are not good at coming up with good passwords. Some administrators, security people, and such try to improve the sitatuation by providing the users &#8220;help&#8221; with coming up with good, strong passwords in the form of password rules. What those guys often forget, is that people are just that [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, it&#8217;s a fact that people are not good at coming up with good passwords. Some administrators, security people, and such try to improve the sitatuation by providing the users &#8220;help&#8221; with coming up with good, strong passwords in the form of password rules. What those guys often forget, is that people are just that &#8211; people, and not computers. It all ends up in insanity, like Jeremy Zawodny talks about in his <a title="Jeremy Zawodny: Password insanity" href="http://jeremy.zawodny.com/blog/archives/006309.html">blog entry</a>.</p>

<p>Of course, the classical source of enlightenment on this subject is the <a title="The Center for Password Sanity" href="http://www.smat.us/sanity/">Center for Password Sanity.</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.kongsli.net%2Fnblog%2F2006%2F12%2F13%2Fpassword-insanity-once-again%2F&amp;title=Password%20insanity%20%26%238211%3B%20once%20again" id="wpa2a_20"><img src="http://www.kongsli.net/nblog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.kongsli.net/nblog/2006/12/13/password-insanity-once-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

