News for hackers. Stuff that matters.
Re:Protecting sites from Cryptojacking with CSP and SRI by userbinator on Sunday February 11, 2018 @01:04PM (#16353817)
Presumably, the "[Warning] Do not copy or self host this file, you will not be supported" is because they change the script reasonably often, meaning that using SRI will require them to change their hashes on every linked page every time the script changes or it will stop working --- probably not what they want.

when visiting the ICO website

That is... amusingly ironic.

Re:Protecting sites from Cryptojacking with CSP and SRI by lozenge on Sunday February 11, 2018 @05:19PM (#16355151)
Was the warning added by the hackers, though?
Re:Protecting sites from Cryptojacking with CSP and SRI by Scott_Helme_ on Sunday February 11, 2018 @02:10PM (#16354199)
Yeah, the best way to handle this is with a version in the path and then the host can knowingly/willingly upgrade the library version and SRI hash at the same time.
Re:Protecting sites from Cryptojacking with CSP and SRI by cbr on Sunday February 11, 2018 @03:05PM (#16354460)
That doesn't really solve this problem, it just slows down both the rollout of the subverted version and the rollout of the fix. People aren't auditing the (minified) javascript they put onto their sites.

SRI is good for use with a CDN, where the same entity controls both the HTML that references the JS and the JS being referenced. In that case it keeps someone who subverts the CDN from being able to XSS the site.

Re:Protecting sites from Cryptojacking with CSP and SRI by greglindahl on Sunday February 11, 2018 @03:32PM (#16354629)
That depends on what "this problem" is -- lots of people here would say that the problem is websites that depend on unaudited, untested 3rd party resources. I can tell from your other comments that you think it's safe to trust 3rd party resources from places like Google. So there's a disagreement that is worth talking about explicitly.
Re:Protecting sites from Cryptojacking with CSP and SRI by cbr on Sunday February 11, 2018 @08:08PM (#16355815)
Most sites are built on lots of unaudited untested (by them) third party code sever side. Adding some client side isn't great, but also isn't a fundamental change to the dynamic.

(I used to make web server software)

Re:Protecting sites from Cryptojacking with CSP and SRI by greglindahl on Sunday February 11, 2018 @10:39PM (#16356354)
Uh, so that's terrible added to terrible, but it doesn't really address what I just said!

If I was the mean person at IBM that buys startups and makes them "right", it's a lot more work to fix terrible added to terrible than plain terrible. And my last startup got bought by IBM, so I've experienced that pain personally.

Re:Protecting sites from Cryptojacking with CSP and SRI by hyperpape on Sunday February 11, 2018 @06:47PM (#16355496)
If there’s a version in the path, then the website referencing the script can include a hash, secure in the knowledge that the resource they reference should never change.