<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: httponly</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/httponly.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2008-08-29T02:01:48+00:00</updated><author><name>Simon Willison</name></author><entry><title>Coding Horror: Protecting Your Cookies: HttpOnly</title><link href="https://simonwillison.net/2008/Aug/29/coding/#atom-tag" rel="alternate"/><published>2008-08-29T02:01:48+00:00</published><updated>2008-08-29T02:01:48+00:00</updated><id>https://simonwillison.net/2008/Aug/29/coding/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.codinghorror.com/blog/archives/001167.html"&gt;Coding Horror: Protecting Your Cookies: HttpOnly&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Jeff Atwood discovers the hard way that writing an HTML sanitizer is significantly harder than you would think. HttpOnly cookies aren’t the solution though: they’re potentially useful as part of a defense in depth strategy, but fundamentally if you have an XSS hole you’re going to get 0wned, HttpOnly cookies or not. Auto-escape everything on output and be extremely cautious with things like HTML sanitizers.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/html"&gt;html&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/httponly"&gt;httponly&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/jeff-atwood"&gt;jeff-atwood&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/sanitization"&gt;sanitization&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/security"&gt;security&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/xss"&gt;xss&lt;/a&gt;&lt;/p&gt;



</summary><category term="html"/><category term="httponly"/><category term="javascript"/><category term="jeff-atwood"/><category term="sanitization"/><category term="security"/><category term="xss"/></entry><entry><title>HTTPOnly cookie support in Firefox</title><link href="https://simonwillison.net/2007/Sep/6/brads/#atom-tag" rel="alternate"/><published>2007-09-06T06:27:33+00:00</published><updated>2007-09-06T06:27:33+00:00</updated><id>https://simonwillison.net/2007/Sep/6/brads/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://brad.livejournal.com/2340595.html"&gt;HTTPOnly cookie support in Firefox&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Five years after the bug was filed, HTTPOnly cookie support has gone in to the Mozilla 1.8 branch. This is a defence in depth feature that has been in IE for years—it lets you set cookies that aren’t available to JavaScript, and hence can’t be hijacked in the event of an XSS flaw.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/brad-fitzpatrick"&gt;brad-fitzpatrick&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/firefox"&gt;firefox&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/httponly"&gt;httponly&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/internet-explorer"&gt;internet-explorer&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/mozilla"&gt;mozilla&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/security"&gt;security&lt;/a&gt;&lt;/p&gt;



</summary><category term="brad-fitzpatrick"/><category term="firefox"/><category term="httponly"/><category term="internet-explorer"/><category term="javascript"/><category term="mozilla"/><category term="security"/></entry><entry><title>Mozilla Gran Paradiso Alpha 3 Release Notes</title><link href="https://simonwillison.net/2007/Mar/25/mozilla/#atom-tag" rel="alternate"/><published>2007-03-25T21:37:44+00:00</published><updated>2007-03-25T21:37:44+00:00</updated><id>https://simonwillison.net/2007/Mar/25/mozilla/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.mozilla.org/projects/firefox/3.0a3/releasenotes/"&gt;Mozilla Gran Paradiso Alpha 3 Release Notes&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
New features include animated PNGs, &lt;code&gt;&amp;lt;link rel="offline-resource"&amp;gt;&lt;/code&gt; and the &lt;code&gt;HttpOnly&lt;/code&gt; cookie flag which indicates that a cookie should not be accessible to script (borrowed from IE).


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/granparadiso"&gt;granparadiso&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/httponly"&gt;httponly&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/mozilla"&gt;mozilla&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/offlinebrowsing"&gt;offlinebrowsing&lt;/a&gt;&lt;/p&gt;



</summary><category term="granparadiso"/><category term="httponly"/><category term="mozilla"/><category term="offlinebrowsing"/></entry></feed>