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.
when visiting the ICO website
That is... amusingly ironic.