3 ms·
>It's amazing to me that an advert can run arbitrary javascript at all. I'm not fully up to date with how these things are usually set up - is there anything i
by dTal 7y ago
>It's amazing to me that an advert can run arbitrary javascript at all.
I'm not fully up to date with how these things are usually set up - is there anything in the web security model that prevents "ads" from exfiltrating arbitrary information from any page that they're on? Could an ad read my keystrokes, or scrape private messages?
- Aeolun 7y agoShort answer is yes.
- ChrisSD 7y agoIt is possible to restrict ads using CORS headers, sandboxed iframes and cross origin restrictions. However this is rarely done effectively. Often the ads have a ridiculous level of access.
- londons_explore 7y agoAds are iframed, and don't have permissions to do anything to the host page. Doesn't stop them fingerprinting the browser though
- tinus_hn 7y agoTypically ads are not in iframes, they are loaded by Javascript from the ad network and can do whatever they want.