Cross-origin data theft using drag and drop from iframe.
A cross-origin data theft vulnerability exists where removing an iframe after dragging content from it bypasses same-origin checks, allowing an attacker to steal data from another origin. This is a bypass of a previous fix for a similar issue.
Originally disclosed on Mozilla
- Fixed in 4.6 years
- Paid in 2.7 years
- Disclosed after 4.6 years
Created attachment 8853769
iframe.html
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Steps to reproduce:
Looks like a bypass of the fix implemented in Bug 605991.
PoC attached.
Actual results:
If we remove an iframe after dragging content from it, we can bypass the same-origin checks.
Expected results:
If you remove the call to remove the iframe, we can see the desired behavior. (ln 16)
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
What the attacker needed
Victim drags content from an iframe; attacker controls a webpage
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Websites are supposed to keep data from different sites separate using the same-origin policy. This report shows that if you drag something from a frame and then delete the frame, the browser forgets to check which site the data came from, so a malicious site could steal information from another site.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.