Test Blob URLs for origin recovery

Cross-site scripting (XSS)Exploitation

Written with a model's help from “Finding XSS on Shazzer (literally)” on Jorian Woltjer. Read the writeup before relying on it.

When a web application uses Blob URLs, test if you can recover the origin by copying and pasting the URL into a new tab. If the window.origin changes from 'null' to the application's origin, you may be able to execute arbitrary JavaScript on that origin. To automate this, use JavaScript to access location.href and exfiltrate the Blob URL using WebRTC's STUN protocol, which can bypass Content Security Policy restrictions. Then, navigate to the leaked Blob URL in a new tab to recover the origin.

Follow #blob-url, #sandbox or #xss for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.