Closed
Bug 92598
Opened 24 years ago
Closed 24 years ago
'cache-control: no-store' response should not be cached
Categories
(Core :: Networking: HTTP, defect, P1)
Core
Networking: HTTP
Tracking
()
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: darin.moz, Assigned: darin.moz)
Details
(Whiteboard: [PDT+] checked in on the 0.9.2 branch)
Attachments
(1 file)
1.00 KB,
patch
|
Details | Diff | Splinter Review |
mozilla currently caches everything a web server sends for the purposes of
session history (back/forward buttons), file->save_as, and view->page_source.
however, this leaves webservers with no way to instruct mozilla not to cache
sensitive information. the http/1.1 response header 'cache-control: no-store'
is meant to inform the browser that the response is sensitive (however, the spec
still makes allowances for session history even in this case).
the spec is therefore somewhat contradictory: if 'no-store' means the content
is sensitive, then how can it be OK for it to be saved for the purposes of
session history. so, i believe that we should disable caching when a server
sends a 'cache-control: no-store' header, hence providing servers with a way
to programmatically prevent mozilla from holding onto sensitive content.
this bug is somewhat related to bug 90288
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
the v1.0 patch was checked in on the 0.9.2 branch per PDT2 approval. i have
approval to land this for 0.9.3 and will be doing so once the verification
builds complete (r=bbaetz, sr=waterson, a=chofmann).
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.3
Assignee | ||
Updated•24 years ago
|
Whiteboard: checked in on the 0.9.2 branch
Assignee | ||
Updated•24 years ago
|
Severity: normal → critical
Priority: -- → P1
Assignee | ||
Comment 3•24 years ago
|
||
I have two simple testcases (so far):
1) Test GET request which results in a 'Cache-control: no-store' response
http://g.mcom.com/test/no-store.cgi
Just follow the link. The response should not be cached (press Back,
then Forward to verify).
2) Test POST request which results in a 'Cache-control: no-store' response
http://g.mcom.com/test/no-store.html
Just follow the link and press Upload. The response should not be
cached (press Back, then Forward to verify).
Comment 4•24 years ago
|
||
I tested on linux last night on the branch, and this appeared to do the right thing.
I couldn't find any real life servers which sent this (including the login page
for various banks), so there should be no difference for the vast majority of sites.
I'll do some more testing when I get in.
Assignee | ||
Comment 6•24 years ago
|
||
fixed on the trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 7•24 years ago
|
||
Just curious, not picking nits or asking for changes: why PL_strcasestr rather
than PL_strcasecmp, or perhaps something more complicated that strips leading
and trailing whitespace (tho I'd hope that PeekHeader does that for you)? Are
all the values guaranteed not to be substrings of other legal values? Can you
have random garbage around the no-store and get the desired results, according
to the spec?
/be
Assignee | ||
Comment 8•24 years ago
|
||
good point. w/ http/1.1 we are ok, but future versions of the spec could of
course introduce other cache-control values that could cause false positives w/
this test... hmmm... thanks brendan, i'll file a bug to clean up this test as
well as similar tests scattered throughout the http code.
tever or ben - can this be verified? I think we've done really good testing on
this, including some tests jrgm did.
Adding PDT+ so this bug can be included on any bug stats we do in the future for
bugs fixed.
Whiteboard: checked in on the 0.9.2 branch → [PDT+] checked in on the 0.9.2 branch
Comment 10•24 years ago
|
||
VERIFIED:
after talking w/ tever and bbaetz, + many others who have also given feedback.
There are some other new issues, bbaetz is covering them.
Status: RESOLVED → VERIFIED
![]() |
||
Comment 11•16 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/f290559c01d1 and http://hg.mozilla.org/mozilla-central/rev/f90c51ed3cd2 added a test for this bug.
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•