4 ms·
This got me thinking about cookie scope, and I have a feeling that domaina.tld. and domainb.tld. is always safer than domaina.gov.tl. and domainb.gov.tld. I mi
by dec0dedab0de 3y ago
This got me thinking about cookie scope, and I have a feeling that domaina.tld. and domainb.tld. is always safer than domaina.gov.tl. and domainb.gov.tld.
I might be way off here, but I think that means either domain could set a gov.tld cookie which is sent to all domains, and if one of them is reading cookies without checking scope it could be a way to send whatever to another server. Or even worse, if one of the sites is using gov.uk cookies for something sensitive, then any of the others could read it.
Does anyone know if browsers have special cookie scope considerations for things like .gov.uk and .co.uk?
- CodesInChaos 3y agoBrowsers use the public suffix list to determine cookie scope. So .co.uk domains are just as isolated from each other as .com domains. You can even get your own domains added to it, typically because you allow users to host their own content on a subdomain (like github.io for github pages). https://publicsuffix.org/ https://publicsuffix.org/
- deleted 3y ago[deleted]