News for hackers. Stuff that matters.
Re:Subresource Integrity by ppierald on Friday September 18, 2015 @11:02PM (#10243131)
<script src="..." is very dangerous. At best, you can vet the src and check to see if it's benign or not. Often times, that vendor and their "1-line of javascript to get our whiz-bang service" in turn loads other javascript files. I don't see how cryptographically signing the bootloader solves anything in this case. Compromised analytics or vendor javascript will still lead to total site pwnage if I'm reading this right.
Re:Subresource Integrity by lwf on Friday September 18, 2015 @11:38PM (#10243194)
This protects you from providers that go rogue or are compromised after you enable their JS.

It also lets you use CloudFront as a CDN for your own JS without having to trust them to serve the content as you described it, if you calculate your hashes based on the scripts you sent them.

Re:Subresource Integrity by Macha on Saturday September 19, 2015 @07:26AM (#10243977)
The parent poster's point is about providers that tell you to include script A which then loads X and Y. Knowing A can't change isn't very helpful in this situation as X and Y could change.