New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 777718 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: 2
Type: Bug



Sign in to add a comment

Local storage not respecting content settings; sites may be able to avoid clearing state on exit

Reported by mrsolo2...@gmail.com, Oct 24 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.2.5 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.5

Steps to reproduce the problem:
1. Set cookies to be blocked by default 
2. This is optional - but let's add site to blocked list as well. i.e. www.google.com (can also add [*.]google.com, *://[*.]google.com:*/* etc - the result does not differ)
3. Visit www.google.come
4. Check "See all cookies and local site data"

What is the expected behavior?
- No data is found for the site (i.e. no data for www.google.com)

What went wrong?
- Shows "local storage" set for www.google.com

Did this work before? N/A 

Chrome version: 62.0.3202.62  Channel: stable
OS Version: OS X 10.10.5
Flash Version: 

Perhaps related to  bug 775080 ?
 
Screen Shot 2017-10-24 at 12.12.34 AM.png
39.7 KB View Download
Screen Shot 2017-10-24 at 12.12.17 AM.png
16.0 KB View Download
Components: UI>Settings
Labels: Needs-Feedback
At what point in your steps did you clear existing data?

The second screenshot does not necessarily show that local storage is set for Google.com. Can you click the arrow to the right side of the UI to expand it, then take a screenshot of the content that appears underneath?
The steps are taken as follows: 
1. Set up permissions as shown (img 1) 
1. Clear all cookies and local storage (img 2)
2. Exit Chrome completely. Relaunch with a single empty tab open 
3. Visit google.com (img 3)
4. Check "all cookies and site data" (4a and 4b)
Same sequence works for facebook.com

4a.png
42.3 KB View Download
4b.png
56.1 KB View Download
Project Member

Comment 3 by sheriffbot@chromium.org, Oct 24 2017

Cc: elawrence@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "elawrence@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
As a possibly related issue, other sites seem to be able to escape "clear on exit" setting. For example the following sequence:

1. Set up permissions as shown (img 1)
2. Clear all local storage and cookies. Exit and restart browser (Cmd + Q, verified)
3. Visit airbnb.com, visit tripadvisor.com
4. Exit and restart browser (Cmd + Q). Browser opens a single empty tab on startup.
5. Check "all local storage" - has local storage for airbnb.com and tripadvisor.com (img 2a, 2b)

2a.png
47.5 KB View Download
2b.png
42.8 KB View Download
Components: Privacy
The screenshot in c#2 shows 0 bytes of local storage data, so I don't think there's an issue there.

The screenshot "2b.png" in c#4 looks more interesting. I'm not entirely sure how database storage is expected to behave.
FWIW, as a user, to me it feels that if storage is blocked, there should be nothing stored (including any empty reference, which still could be used as a kind of a marker by the web site - for example using its unique name). Certainly not any amount of actual data.  

Comment 7 by palmer@chromium.org, Oct 31 2017

Cc: michaeln@chromium.org msramek@chromium.org
Components: Blink>Storage
Labels: OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Windows
Owner: jsb...@chromium.org
Status: Assigned (was: Unconfirmed)
Summary: Local storage not respecting content settings; sites may be able to avoid clearing state on exit (was: Local storage not respecting content settings)
jsbell: Can you please help us figure out what the expectations are? If there is a bug, can you please delegate it to someone who can fix it? Thanks!

Comment 8 by vakh@chromium.org, Nov 2 2017

Labels: Security_Impact-Stable M-62

Comment 9 by vakh@chromium.org, Nov 2 2017

jsbell: can you please take a look and help triage this? thanks.

Comment 10 by vakh@chromium.org, Nov 2 2017

Cc: mek@chromium.org jsb...@chromium.org
Owner: pwnall@chromium.org
pwnall -- it seems that jsbell is OOO. Can you please take a look?
Cc: dullweber@chromium.org
+dullweber@

Re #2, #5: There was a recent bug 773447 (already fixed in Canary) where local storage was cleared, but the entry for origin was not. This looks like the same thing in the other direction - when visiting the site again, a storage entry was not filled, but it was added.

Re #6: Absolutely, this is a privacy issue.

Re #7: The expectation for local storage is to follow cookie settings.
While I can reproduce the issue on Chrome 62, it doesn't appear in Chrome Beta 63. I guess the localstorage fix also solved this issue? (63.0.3239.30 on linux)
Owner: dullweber@chromium.org
The Clear Browsing Data dialog is still showing a non-zero cookie count when sites have been visited while cookies are disabled. This is due to the "site-engagement" website-setting.
Websites can't read or write from these settings directly but they could infer whether a site has been visited based on behavior that is controlled by site-engagement. I will look into possible ways to solve this issue.
Labels: -Security_Impact-Stable Security_Impact-None
Setting to Security_Impact-None since this is really a privacy bug, not a security bug.
Status: Fixed (was: Assigned)
The localstorage issue is already fixed in Chrome 63.
The issue with website-settings is a separate problem, so I created a bug for it  https://crbug.com/782606 .
Project Member

Comment 16 by sheriffbot@chromium.org, Nov 8 2017

Labels: -Restrict-View-SecurityTeam Restrict-View-SecurityNotify
Just a note wrt. this issue - here is another manifestation. It appears that some sites may evade cookie policy and have actual cookies survive the session restart.

1. Ensure hafjell.no cookies allowed for session only
2. Clear cookies for site hafjell.no
3. Visit hafjell.no
4. Exit and restart browser, check cookies
I see a single __cfduid cookie still set from that site. 

Still testing chrome 62
Hm, I tried this but can't reproduce the issue. 

To clarify:
Do you have Chrome configured to restore tabs on start?
If yes, did you close hafjell.no after step 3?
Where are you checking cookies? chrome://settings/siteData?
- Chrome is configured not to restore tabs on start and to begin with an empty page
- Checking cookies under chrome://settings/siteData

Further clarification, reproducing this issue requires specific cookie settings:
1. Set global cookie setting to "blocked" (also "block 3rd party data")
2. Add the following to the "session only" list: [*.]www.hafjell.no 
3. Visit the site, exit browser, restart and verify 

If you add the following to the "session only" list: [*].hafjell.no (in addition to the previous entry) - the cookie will no longer survive restart.

The cookie that is set and survives restart is for hafjell.no. 
There are several cookies for www.hafjell.no that do not survive restart with either rule.

It would appear that permitting www.hafjell.no somehow allows cookies to be set for hafjell.no as well, but then on exit does not clear them (inconsistently applied filter?)
I can reproduce this issue. Thanks for the detailed explanations! I created a new bug to track it:  https://crbug.com/784312 
Labels: -Type-Bug-Security Type-Bug
Adjusting labels: Since this is a privacy bug not security, no need for bug-security.
Project Member

Comment 22 by sheriffbot@chromium.org, Feb 14 2018

Labels: -Restrict-View-SecurityNotify allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment