JSONP callback CSP bypass
HTML bodyseverity: high
<script src="https://trusted-cdn.example/callback=alert¶m=XSS"></script>- Context
- HTML body under a Content-Security-Policy.
- What it needs
- CSP whitelists a CDN host that exposes a JSONP endpoint.
- Why it works
- The trusted origin reflects your callback parameter back as executable JS.