This demo loads a script without an integrity attribute. If the CDN (simulated locally)
is compromised, the browser will happily execute whatever it returns.
malicious_cdn/jquery.min.js
Why it’s bad: without Subresource Integrity (SRI), a tampered CDN file can steal tokens, inject skimmers, or deface the UI. You won’t get any warning.
malicious_cdn/jquery.min.js directly (no SRI).window.__cdnPwned = true,
log to console, or alter the DOM).