News for hackers. Stuff that matters.
Re:How I got XSS’d by my ad network by bsilvereagle on Tuesday July 14, 2015 @09:49AM (#9884825)
As tools like uBlock and uMatrix get widespread adoption more and more people are realizing how much extraneous junk is being loaded by webpages. I think your side is slowly but surely gaining followers.
Re:How I got XSS’d by my ad network by jdmichal on Tuesday July 14, 2015 @11:34AM (#9885694)
I use uMatrix, and I have already whitelisted loading scripts from common CDNs as global rules. They're everywhere and I found myself just constantly whitelisting them anyway.

The trend for a long time was to cite using a CDN as a best practice, but no one ever calls out the downsides when making such statements. In this case, you lose control of the code and allow third-party access to your users' browsers.

Re:How I got XSS’d by my ad network by nly on Tuesday July 14, 2015 @11:50AM (#9885818)
To be fair, it has some positives: like said CDN being able to patch somelib.js to fix a security issue and thereby protect thousands of sites at once.

At the moment though, proposed solutions to trusting third parties with your Javascript, like the W3C proposal to put cryptographic hashes in to your <script> tags etc, don't even consider these potential positives. So we're likely going to end up with the worst of both worlds.

If anything this is just enough facet of the weakness of the web as an app platform (Real solution: all sites serving client side libs should use package management, scripts should be digitally signed by the authors). As it stands it's far too common for people to just unzip WordPress or whatever in to their docroot, and so server-side code doesn't even get updated, let alone client-side code.

Re:How I got XSS’d by my ad network by IanCal on Tuesday July 14, 2015 @11:29AM (#9885654)
Which is an interesting problem as to stop loading all these scripts I have to give another script access to everything I see.
Re:How I got XSS’d by my ad network by bsilvereagle on Tuesday July 14, 2015 @01:58PM (#9886792)
If you download the source for uBlock/uMatrix, and run locally you avoid the auto-updating of the add-on while being able to vet the source.
Re:How I got XSS’d by my ad network by IanCal on Friday July 17, 2015 @05:07PM (#9905339)
Thank you, that's an extremely good idea.