XSS via JSONP
JSONP (JSON with Padding)
<script src="https://example.com/api?callback=myFunction"></script>myFunction({ "name": "Alice" });CSP misconfiguration
Content-Security-Policy: default-src 'self'; script-src 'self' https://apis.trusted.com;<script src="https://apis.trusted.com/getUser?callback=cb"></script>cb({ "name": "evil" });
XSS
Last updated