3 ms·
It's very bad, because cookies, permissions and lots of other presisted data will be shared by all scripts on the domain. Example: Alice makes a benign page th
by xg15 7y ago
It's very bad, because cookies, permissions and lots of other presisted data will be shared by all scripts on the domain.
Example:
Alice makes a benign page that uses location data and shares the link with her friends. The friends know what's up and grant location permissions to get the page to work.
What they actually did, however was grant location permissions to "https://jstrieb.github.io/urlpages" https://jstrieb.github.io/urlpages" and any script served by that origin.
So when some of the friends later open Eve's URL that contains a location harvester, they don't get any prompt at all: Eve's link can just reuse the location permission given to Alice because, as far as the browser is concerned, both scripts belong to the same page.