Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Paper: Weaning the Web off of Session Cookies
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timothy D. Morgan  
View profile  
 More options Jan 26 2010, 3:57 pm
Newsgroups: mozilla.dev.security
From: "Timothy D\. Morgan" <tmor...@vsecurity.com>
Date: Tue, 26 Jan 2010 12:57:37 -0800
Local: Tues, Jan 26 2010 3:57 pm
Subject: Paper: Weaning the Web off of Session Cookies
Hello,

I would like to bring your attention to a paper I published today:
  http://www.vsecurity.com/download/papers/WeaningTheWebOffOfSessionCoo...

It includes a few minor security problems with HTTP authentication
dialog boxes and password managers in several browsers.

More importantly, it makes an argument for a few small changes to
browser behavior and/or standards.  I would hope that Mozilla
developers could take a look and provide any feedback.  I'm
particularly interested in opinions on the suggested 401 response
behavior change.  I have submitted this information to other browser
vendors as well.

thanks!
tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Veditz  
View profile  
 More options Jan 27 2010, 11:19 am
Newsgroups: mozilla.dev.security
From: Daniel Veditz <dved...@mozilla.com>
Date: Wed, 27 Jan 2010 08:19:24 -0800
Local: Wed, Jan 27 2010 11:19 am
Subject: Re: Paper: Weaning the Web off of Session Cookies
On 1/26/10 12:57 PM, Timothy D. Morgan wrote:

> I would like to bring your attention to a paper I published today:
>   http://www.vsecurity.com/download/papers/WeaningTheWebOffOfSessionCoo...

> It includes a few minor security problems with HTTP authentication
> dialog boxes and password managers in several browsers.

This is an area Mozilla has been interested in. You should talk to our
"Mozilla Labs" folks who have been working on Identity in the browser.
They are coming at it from a different angle but there's a lot of
overlap between the problems you and they are trying to solve.

http://www.azarask.in/blog/post/identity-in-the-browser-firefox/
http://mozillalabs.com/blog/2009/05/identity-in-the-browser/

I have a quibble with your section on HTTPOnly cookies. By mentioning
only IE by name when you follow with "other browsers have been slow to
adopt this feature" people will naturally assume that includes Firefox,
the only other browser with significant marketshare. Firefox has
supported HTTPOnly since 2007. Although perhaps "slow" compared to when
Microsoft invented the feature that's pretty irrelevant for a paper
written three years later when nearly all Firefox users will have
support for it.

Continuing that quote with "and continue to have difficulties fully
enforcing this rule in light of newer features (such as AJAX
requests/responses)" people will again assume Firefox, when Firefox was
the first to get this right and in fact IE is one of the browsers with
difficulties. You don't have to take my word for it, this is right in
the OWASP chart linked to from your paper and in the "[16]" link from
that chart to one of the OWASP author's blog
http://manicode.blogspot.com/2009/02/firefox-3006-httponly-champion.html

> More importantly, it makes an argument for a few small changes to
> browser behavior and/or standards.  I would hope that Mozilla
> developers could take a look and provide any feedback.  I'm
> particularly interested in opinions on the suggested 401 response
> behavior change.  I have submitted this information to other browser
> vendors as well.

Your proposal to reinterpret 401 headers is clever and if the IETF HTTP
working group agreed with this interpretation Firefox would follow. The
IETF is currently working on (finishing up) an HTTP revision to clarify
things and you should bring this up with them. In practice, though, I
can't see sites adopting it because of the mass of old browsers who will
behave badly for some time. Your new header proposal would be easier to
get adopted since old browsers are no worse off by ignoring it.

You must be the Tim who started the "Past proposals for HTTP Auth
Logout" thread and if so you're already involved in the right place for
that.

-Dan Veditz


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EricLaw  
View profile  
 More options Jan 27 2010, 1:36 pm
Newsgroups: mozilla.dev.security
From: EricLaw <bay...@gmail.com>
Date: Wed, 27 Jan 2010 10:36:20 -0800 (PST)
Local: Wed, Jan 27 2010 1:36 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies

> the first to get this right and in fact IE is one of the browsers with
> difficulties. You don't have to take my word for it, this is right in
> the OWASP chart linked to from your paper and in the "[16]" link from
> that chart to one of the OWASP author's bloghttp://manicode.blogspot.com/2009/02/firefox-3006-httponly-champion.html

That's perhaps a bit misleading-- IE doesn't treat anything sent in
Set-Cookie2 as a cookie, and hence doesn't attempt to enforce cookie
protections against it. I haven't seen many servers that even attempt
to use Set-Cookie2.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy D. Morgan  
View profile  
 More options Jan 27 2010, 3:20 pm
Newsgroups: mozilla.dev.security
From: "Timothy D\. Morgan" <tmor...@vsecurity.com>
Date: Wed, 27 Jan 2010 12:20:42 -0800
Local: Wed, Jan 27 2010 3:20 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies
Hi Daniel,

Thanks for taking the time to read through it.

> This is an area Mozilla has been interested in. You should talk to our
> "Mozilla Labs" folks who have been working on Identity in the browser.
> They are coming at it from a different angle but there's a lot of
> overlap between the problems you and they are trying to solve.

> http://www.azarask.in/blog/post/identity-in-the-browser-firefox/
> http://mozillalabs.com/blog/2009/05/identity-in-the-browser/

Cool, there are some great UI ideas there.  I particularly like the
examples that eliminate favicons. ;-)

I would think that moving toward HTTP authentication schemes, such as
digest, would make it much easier to automate a good identity manager.
Would you agree?

I appologize if this comes out wrong.  I do realize that Firefox had
started implementing this some time back, and I didn't intend to call
out Firefox specifically.  Firefox clearly has done better than other
browsers with newer XHR impacts.  I'll update the wording on that.

> Your proposal to reinterpret 401 headers is clever and if the IETF HTTP
> working group agreed with this interpretation Firefox would follow. The
> IETF is currently working on (finishing up) an HTTP revision to clarify
> things and you should bring this up with them. In practice, though, I
> can't see sites adopting it because of the mass of old browsers who will
> behave badly for some time. Your new header proposal would be easier to
> get adopted since old browsers are no worse off by ignoring it.

I do see your point with adoption.  I think a change in newer browsers
to 401s won't badly break existing applications using HTTP auth, but
new applications won't adopt it until the old browser behavior goes
away.

Fortunately, the biggest backward compatibility problem is mostly with
IE.  I think most users of other browsers upgrade pretty quickly to
later versions.  If Microsoft could be convinced to make this change
and push out a service pack for IE7 & IE8 (yes, I know this is a
stretch), then perhaps developers would be in the clear in 1-2 years.
I have tried to contact the MSRC and submit a newsgroups bug report
against IE8 with this information, but I really don't know what the
best way is to get a hold of standards-oriented IE developers.  Do you
know of a good way to contact them?

Another thought I had on performing logouts, which is not presented in
the paper, is that if the XMLHttpRequest W3C standard is finalized and
fully adopted by browsers as is, then one might be able to use
JavaScript to clear credentials much in the same way it is used with
that cute race condition in Firefox currently.  (Recall the reference
in my paper how one can initiate an asynchronous call with bogus
credentials, then cancel it before the user is prompted.)  If users
aren't prompted at all when the open() method is provided credentials,
then a log out page could just seed it with bogus ones on most (all?)
browsers.  This could act as a stop-gap measure to provide log out in
the short term while 401 behavior is changed.

> You must be the Tim who started the "Past proposals for HTTP Auth
> Logout" thread and if so you're already involved in the right place for
> that.

Heh, you did your homework.  Yes, I did start that thread.

If you read through the discussion , you'll see that some folks
champion the idea of an explicit log out, while others say
(paraphrasing):
  "there's nothing stopping browsers from doing this already"

I proposed the idea of using the 401 processing change and no one
seemed to have a problem with it, but perhaps the thread was dying at
that point.

Let me also highlight a sentence from RFC 2616 related to the 401
response:

"If the 401 response contains the same challenge as the prior
 response, and the user agent has already attempted authentication at
 least once, then the user SHOULD be presented the entity that was
 given in the response, since that entity might include relevant
 diagnostic information."

So I actually am thinking my interpretation is the pretty close.  If a
user was already logged in and they receive a 401 response, then of
course they had "already attempted authentication" on that request.
So they "SHOULD be presented with the entity given in the response".
Entities of course include, in part, the entity-body.  This sentence
also implies that if a user messes up the login once, they should stop
being prompted, but perhaps that doesn't make sense.

Would you be interested in helping me make the case to the HTTP
working group?  I think many more IETF folks might get involved in the
discussion if a representative from a major browser kicked things off.
Of course this working group cannot make any real changes to HTTP,
they can only clarify things.  But maybe more explicit "MAY" and/or
"SHOULD" language could make it clear what flexibility user agents
have in processing 401s.

Thanks for your feedback,
tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Veditz  
View profile  
 More options Jan 28 2010, 2:47 am
Newsgroups: mozilla.dev.security
From: Daniel Veditz <dved...@mozilla.com>
Date: Wed, 27 Jan 2010 23:47:30 -0800
Local: Thurs, Jan 28 2010 2:47 am
Subject: Re: Paper: Weaning the Web off of Session Cookies
On 1/27/10 12:20 PM, Timothy D. Morgan wrote:

> Cool, there are some great UI ideas there.  I particularly like the
> examples that eliminate favicons. ;-)

> I would think that moving toward HTTP authentication schemes, such as
> digest, would make it much easier to automate a good identity manager.
> Would you agree?

We can't control what web sites do, but if we make the experience nicer
more sites may be encouraged to use things like HTTP Auth. Personally
I'd like to see client certs used for auth but we really have a lot of
work to do to make that a pleasant experience for anyone.

> Another thought I had on performing logouts, which is not presented in
> the paper, is that if the XMLHttpRequest W3C standard is finalized and
> fully adopted by browsers as is, then one might be able to use
> JavaScript to clear credentials

As someone who regularly disables JavaScript I'd hate to see client auth
require it.

>> You must be the Tim who started the "Past proposals for HTTP Auth
>> Logout" thread and if so you're already involved in the right place for
>> that.

> Heh, you did your homework.  Yes, I did start that thread.

No creepy stalking involved, honest :-) I remembered the topic came up
on the httpbis mailing list recently so I went to see if they had
reached any kind of consensus in the group.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Hills  
View profile  
 More options Jan 30 2010, 2:33 am
Newsgroups: mozilla.dev.security
From: Chris Hills <c...@chaz6.com>
Date: Sat, 30 Jan 2010 07:33:06 +0000
Local: Sat, Jan 30 2010 2:33 am
Subject: Re: Paper: Weaning the Web off of Session Cookies
On 28/01/2010 07:47, Daniel Veditz wrote:

> We can't control what web sites do, but if we make the experience nicer
> more sites may be encouraged to use things like HTTP Auth. Personally
> I'd like to see client certs used for auth but we really have a lot of
> work to do to make that a pleasant experience for anyone.

This is why I try to use OpenID where possible, since my provider
supports certificate login, which removes the necessity from the web
site to support it (as long as it supports OpenID of course).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy D. Morgan  
View profile  
 More options Jan 31 2010, 1:12 pm
Newsgroups: mozilla.dev.security
From: "Timothy D. Morgan" <tmor...@vsecurity.com>
Date: Sun, 31 Jan 2010 10:12:31 -0800
Local: Sun, Jan 31 2010 1:12 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies

> This is why I try to use OpenID where possible, since my provider
> supports certificate login, which removes the necessity from the web
> site to support it (as long as it supports OpenID of course).

That's handy, but doesn't that mean the website you're accessing will
still use cookies once you're authenticated?

tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Hills  
View profile  
 More options Jan 31 2010, 7:50 pm
Newsgroups: mozilla.dev.security
From: Chris Hills <c...@chaz6.com>
Date: Mon, 01 Feb 2010 00:50:13 +0000
Local: Sun, Jan 31 2010 7:50 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies
On 31/01/2010 18:12, Timothy D. Morgan wrote:

> That's handy, but doesn't that mean the website you're accessing will
> still use cookies once you're authenticated?

Yes it does :/ But I think it's easier to get sites to implement OpenID
then it is to support HTTP Auth with certificates. Do you think it is
possible to use OpenID without cookies?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Barth  
View profile  
 More options Jan 31 2010, 8:10 pm
Newsgroups: mozilla.dev.security
From: Adam Barth <abarth-mozi...@adambarth.com>
Date: Sun, 31 Jan 2010 17:10:35 -0800
Local: Sun, Jan 31 2010 8:10 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies

On Sun, Jan 31, 2010 at 4:50 PM, Chris Hills <c...@chaz6.com> wrote:
> On 31/01/2010 18:12, Timothy D. Morgan wrote:
>> That's handy, but doesn't that mean the website you're accessing will
>> still use cookies once you're authenticated?

> Yes it does :/ But I think it's easier to get sites to implement OpenID
> then it is to support HTTP Auth with certificates. Do you think it is
> possible to use OpenID without cookies?

I suspect it's difficult to use OpenID without cookies in today's
browsers.  The challenge is you need some way to bind the session to
the user's browser.  It might be interesting to think about ways that
browsers could make OpenID (or an OpenID-like federated identity
system) more awesome.

Tim, I need to read your paper in more detail, but could you summarize
what problem you're trying to solve by avoiding cookies?

Adam


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Timothy D. Morgan  
View profile  
 More options Feb 1 2010, 3:34 pm
Newsgroups: mozilla.dev.security
From: "Timothy D. Morgan" <tmor...@vsecurity.com>
Date: Mon, 1 Feb 2010 12:34:37 -0800
Local: Mon, Feb 1 2010 3:34 pm
Subject: Re: Paper: Weaning the Web off of Session Cookies

> > Yes it does :/ But I think it's easier to get sites to implement OpenID
> > then it is to support HTTP Auth with certificates. Do you think it is
> > possible to use OpenID without cookies?

> I suspect it's difficult to use OpenID without cookies in today's
> browsers.  The challenge is you need some way to bind the session to
> the user's browser.  It might be interesting to think about ways that
> browsers could make OpenID (or an OpenID-like federated identity
> system) more awesome.

I think it would be possible to utilize digest authentication's
multi-domain protection spaces along with something like OpenID.  Of
course this would almost certainly require changes to standards.  Note
that digest authentication can be used to pass cryptographic cookies
between servers, so back-end data transfers aren't necessarily
needed.  If browser user interfacdes were just a little bit easier to
work with for HTTP auth generally, then this could be a very viable
option.

> Tim, I need to read your paper in more detail, but could you summarize
> what problem you're trying to solve by avoiding cookies?

Security problems.  The introductory paragraphs provide a good
overview of the paper's structure, and the early sections provide the
laundry list of details why cookies are often unsafe in practice.  I
look forward to any comments you have.

Thanks!
tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »