logoalt Hacker News

technion • yesterday at 11:47 PM • 2 replies • view on HN

Specifying scripts by hashes is always a solid defense that platforms like this don't change their script after compromise - but in practice the whole point of optimizely and similar tools it that it's expected the script will change.

Common examples like analytics tools happily change their script bundles whenever they feel like it without just tagging a new version and letting you upgrade.

I wish SRI could be used more,


Replies

skeeter2020 • today at 12:15 AM

I remember a team at my old place bringing down the entire app with insufficient defense around an Optimizely script that failed. Seems bonkers to take on these dependencies and I think it's only going to get worse.

computerfriend • today at 12:16 AM

It's a feature. Changes to prod should always be reviewed and this fundamental incompatibility with insecurely hosted JavaScript is a signal that it is a bad idea.

➕ show 1 reply