Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by gog on Wednesday April 05, 2017 @08:50AM
(#14041680)
It's called Subresource Integrity, see https://hacks.mozilla.org/2015/09/subresource-integrity-in-f... and https://www.w3.org/TR/SRI/
Browser support is noted here: http://caniuse.com/#feat=subresource-integrity
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by blitmap on Wednesday April 05, 2017 @08:55AM
(#14041705)
It's kind of a shame they didn't let their imagination fly with that one... I wish integrity were a global attribute, because I could totally see using it for things like images and audio/video.
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by Ajedi32 on Wednesday April 05, 2017 @09:19AM
(#14041847)
It might work (though I'm not completely sure) if you specify a hash in the img-src directive of the CSP header: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Co...
Another option would be to just use a subresource-integrity protected script to check the hash of a downloaded image/video before displaying it.
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by blitmap on Wednesday April 05, 2017 @10:18AM
(#14042236)
That is clever and I like you.
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by StavrosK on Wednesday April 05, 2017 @10:46AM
(#14042431)
And then any site could check whether you've seen a particular image before just by including it and seeing how long it takes to load, yay!
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by eeZah7Ux on Wednesday April 05, 2017 @09:17AM
(#14041837)
Nice feature but you need to trust the HTML page that is pulling the js. ZeroNet allows any HTML page to pull any script.
Re:ZeroNet – Uncensorable websites using Bitcoin crypto and ...
by blitmap on Wednesday April 05, 2017 @10:22AM
(#14042258)
And... we're back to loving IPFS :3
EDIT:
Found it :D
https://w3c.github.io/webappsec-subresource-integrity/