Target page
The target page as a restrictive CSP:
default-src 'self';object-src 'none'; style-src 'self'; script-src 'self';
Attacker page
- Attacker injects dangling iframe name attribute which exfiltrates all the data to the next single quote.
- When the frame is loaded the attacker changes the location to about:blank
- The attacker can read the window.name of the iframe which contains the CSRF token.