Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create cookies for .blogspot.com #127

Open
vanowm opened this issue Jan 28, 2017 · 2 comments
Open

Can't create cookies for .blogspot.com #127

vanowm opened this issue Jan 28, 2017 · 2 comments

Comments

@vanowm
Copy link
Owner

vanowm commented Jan 28, 2017

For some reason Firefox refuses adding new cookies for .blogspot.com (and similar .blogspot.de, .blogspot.ru, .blogspot.co.uk, etc. starting with a dot)

This is not CM+ bug, but either restriction or a bug in FF itself.

@theultramage
Copy link

theultramage commented Jan 28, 2017

Github source code search for 'blogspot' in Mozilla's Firefox repo found https://github.com/mozilla/gecko-dev/blob/master/netwerk/dns/effective_tld_names.dat (and the prepare_tlds.py script which bakes it into a C .inc file), and googling for that filename gave me https://wiki.mozilla.org/Public_Suffix_List.

This is a mechanism to prevent malicious sites from setting cookies where they shouldn't. Since apparently, subdomains are permitted to set cookies for parent domains, a rogue site might try to go one step higher and set a cookie for the whole top-level domain provider. Unfortunately, it's not possible to automatically tell where the customer's site name ends and the provider's name part begins, to enforce a security boundary, because some organizations register customers at the 3rd level. This appears to be a design flaw in http.

Firefox solved this using a manually maintained list of ccTLDs. And it seems it has evolved into a general list of registered subdomain providers. Now to find out if there is a setting to override this. According to https://wiki.mozilla.org/Public_Suffix_List/Uses the list is also used for various features that require locating a site's top-level domain, which is done by looking 1 level below the provider name part.

@Atavic
Copy link

Atavic commented Feb 24, 2017

edit: Blogspot sends to local TLDs based on your location.

http://something.blogspot.com/ will redirect to a new local address, while
http://something.blogspot.com/ncr does not redirect to a local address,
as .mx for mexico or .it for italy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants