Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: [WEB SECURITY] cookies a fundamental threat? |
|---|---|
| Date: | Tue, 2 May 2006 12:31:18 -0400 |
!! - It is easier to steal a domain cookie than to steal a hidden form !! field. To steal a domain cookie, you just need a vulnerable server in !! the same domain. Stealing a form field requires a vulnerable page on !! the server hosting the form.
yes, that's what I said (see subject:).
If the advice is "use form fields instead of domain cookies", that makes plenty of sense. Domain cookies pose a greater risk than a well targeted form field. But to say that *all* cookies pose the same risk as domain cookies is a mistake.
Suggesting to someone that they should replace all of their application cookies with hidden form fields is likely to waste their time.
!! The one distinct advantage cookies have over form fields is IE's !! HttpOnly cookie extension. HttpOnly doesn't make attacks impossible, !! but it certainly does raise the bar a bit.
Here we leave the focus of the threat. Using HttpOnly relies on the browser but we're talking about web application security.
Have a read of Mozilla defect 178993, comment 49.
https://bugzilla.mozilla.org/show_bug.cgi?id=178993#c49
The comment is from one of the administrators of the LiveJournal web site. He writes "... it's ironically Internet Explorer users who have had the least account break-ins because their cookies haven't been stolen, while Safari/Mozilla have been vulnerable...."
Think about that. IE is the vast majority of the browser market, and thus the most appealing target for cookie stealing. Yet HttpOnly was a strong enough mitigation measure that it was mostly Safari and Mozilla users who were having their accounts compromised. Arguing that using the "HttpOnly" attribute on a cookie doesn't count as web application security makes very little sense.
OTOH... It looks like in late January Live Journal decided there was no way they could prevent their users from posting malicious javascript. They changed their entire authentication and session tracking system so that when cookies did get stolen, the damage would be less. (http://community.livejournal.com/lj_dev/708069.html?thread=7943397)
As long as there is a wide range of interpretation how the corresponding RFCs should be implemented (if possible), a web application need to use methods which all common browsers handle the same way. Such a standard is there with Cookies2, roughly 6 years old, but it's implemented rarely on both ends. But noone wants to blame the browser vendors, nor the application developers.
Regards, Brian
------------------------------------------------------------------------- Sponsored by: Watchfire
https://www.watchfire.com/securearea/whitepapers.aspx?id=701300000007t9r --------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Round-up: Ways to bypass HttpOnly (and HTTP Basic auth), Amit Klein (AKsecurity) |
|---|---|
| Next by Date: | Re: Re: yahoo mail login security, Damon Leung |
| Previous by Thread: | Re: [WEB SECURITY] cookies a fundamental threat?, Achim Hoffmann |
| Next by Thread: | Re: [WEB SECURITY] cookies a fundamental threat?, Achim Hoffmann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |