"When you allow third parties to run script on your site, you’re entirely beholden to them; they can run anything they like in the context of your site" I've seen a fair few Internet banking web sites pulling scripts from over a dozen third parties, mostly for tracking and advertising, but even for trivial things like social media. On their customer login pages. It's beyond me how they can consider this to be an acce…
I wonder how many websites' users would be compromised if code.jquery.com got hacked.
How I got XSS’d by my ad network
21–30 of 62 posts
Re: How I got XSS’d by my ad network
#22Earlier quoted context omitted.
Well, once you hotlink jquery in your website at least use the https link (assuming your site is on https too).
No need; the browser will block http:// included from https:// pages. Including from a http:// page? Then a compromised jquery cdn is the least of your worries. In short; no, just a compromised dns record is not enough.
Re: How I got XSS’d by my ad network
#23Earlier quoted context omitted.
I see the need, but fear that if this became a common thing, you'd end up with websites proxying external scripts through their own domain.
I am not that sure of that. Advertisers need to see the connections going through their servers, otherwise they are exposed to massive fraud from the websites they advertise on. So proxy-ing their script might not suit them at all.
(You just know it's gonna happen one day under the guise of a free CDN)
Re: How I got XSS’d by my ad network
#24Earlier quoted context omitted.
I wonder how many websites' users would be compromised if code.jquery.com got hacked.
I've been saying this for years. It's not even just security: you're also potentially leaking all your visitor stats to a third party (IP, user agent, the pages they visit (via the Referer)), and effectively giving jquery.com a third party supercookie over thousands of domains. I surf with third party cookies and referers (via RefControl) disabled, and these should be the defaults
Re: How I got XSS’d by my ad network
#25If you're going to put adverts on your site, always put them within an iframe, pointed at a separate "adverts" only domain. This will ensure they can't execute javascript within your own website context.
> Is it violating program policy if I place ads on iframe webpages in my software?
> Yes, it does violate our policies. Firstly, you’re not allowed to place ads in a frame within another page. Exceptions to our policies are permitted only with authorization from Google for the valid use of iframes. Secondly, you’re not allowed to put ads in your software, e.g., if you control both a website with ads and an app that loads that website, we will take action against it.
Re: How I got XSS’d by my ad network
#26Earlier quoted context omitted.
I've been saying this for years. It's not even just security: you're also potentially leaking all your visitor stats to a third party (IP, user agent, the pages they visit (via the Referer)), and effectively giving jquery.com a third party supercookie over thousands of domains. I surf with third party cookies and referers (via RefControl) disabled, and these should be the defaults
The same could be told about other third party resources, like images and css files, too.
In any case, the defaults I live with cover all the other web resources too.
Re: How I got XSS’d by my ad network
#27I wonder what could be done to serve 3rd-party ads, making sure they can't hinder the experience of the users of the webpage.
Is this just laziness from those ad networks, or do we currently have the tools to counter this?
Re: How I got XSS’d by my ad network
#28Re: How I got XSS’d by my ad network
#29But this is the straw that's broken my camel's back and it spoils things for those of us who don't mind a few ads here and there. uBlock now installed, sod the ad networks.
Re: How I got XSS’d by my ad network
#30Earlier quoted context omitted.
I wonder how many websites' users would be compromised if code.jquery.com got hacked.
I've been saying this for years. It's not even just security: you're also potentially leaking all your visitor stats to a third party (IP, user agent, the pages they visit (via the Referer)), and effectively giving jquery.com a third party supercookie over thousands of domains. I surf with third party cookies and referers (via RefControl) disabled, and these should be the defaults