3 ms·
If they can modify the integrity hash on your site, then they can probably modify anything else on your site.
by progval 6y ago
If they can modify the integrity hash on your site, then they can probably modify anything else on your site.
- strogonoff 6y agoOf course. The topic at hand, though, is browsers executing untrusted scripts. A wise attacker will leave the rest of the site intact to make the deface less noticeable. Defacing capability can be used to change the integrity hash—how it appears to the users (other developers) in snippets—to match maliciously modified script, making it trusted. End developers using this library would thus, at their own accord, include URL to altered script and its hash in their pages by copy-pasting a snippet from the defaced landing page, satisfying browser integrity checks. A subtle change like that is unlikely to be noticed by end developers, who would have to count on library site maintainers to have mechanisms in place to notice such an attack promptly and (perhaps more importantly) to not suppress the news about the incident.
- CGamesPlay 6y agoGP is presumably referring to the integrity hash on the installation instructions, not on my website.