3 ms·
That's a fair point. But it still increases the attack surface for questionable gain. You're not just relying on the attacker being unable to create a hash coll
by michaelmior 11y ago
That's a fair point. But it still increases the attack surface for questionable gain. You're not just relying on the attacker being unable to create a hash collision. You're also relying on all browsers to provide a correct implementation of this code sharing mechanism.
Allowing this sort of code sharing provides another attack vector. If a malicious site is able to exploit a browser vulnerability that allows it to populate the shared cache, then you've suddenly enabled code injection on any site using subresource integrity.