Drag-and-drop of a URL from inside a cross-origin iframe should not be allowed to drop in the same tab if the iframe get removed during dragging (cross-origin attacks and spoofs)
Categories
(Core :: DOM: Copy & Paste and Drag & Drop, defect)
Tracking
()
People
(Reporter: edgar, Assigned: edgar)
References
Details
(Keywords: csectype-spoof, reporter-external, sec-moderate, Whiteboard: [reporter-external] [client-bounty-form] [verif?][post-critsmash-triage][adv-main111+][adv-esr102.9+])
Attachments
(4 files, 1 obsolete file)
|
866 bytes,
text/html
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
dmeehan
:
approval-mozilla-beta+
dmeehan
:
approval-mozilla-esr102+
|
Details | Review |
|
15.79 KB,
patch
|
Details | Diff | Splinter Review | |
|
248 bytes,
text/plain
|
Details |
+++ This bug was initially created as a clone of Bug #1794268 +++
The patch in bug #1794268 does fix the issue of dragging a link from cross-origin iframe and dropping it outside of the iframe, but if the iframe get removed during dragging, we still trigger a navigation.
| Assignee | ||
Comment 1•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Hmm, I could reproduce the issue (i.e. page navigates) on Mac, but not Linux. I guess that is why I did not aware this in bug 1794268.
Hi Virgil, do you remember which platform did you use to verify in bug 1794268 comment #18? If you were not using the Linux, would you mind trying Linux? Thanks!
Comment 3•2 years ago
|
||
The used platform from which the videos were made was on a Ubuntu 20.4. Do you need any more information about it?
| Assignee | ||
Comment 4•2 years ago
|
||
| Assignee | ||
Comment 5•2 years ago
|
||
On Linux, I found it is easier to reproduce on release bug, but not every time. Mostly happens when first time load the test page, if I reload the test page, I can not reproduce it. And I could not reproduce on debug build. It seems like it depends on timing, to reproduce the issue, it requires the source windowContext being discarded before IPC exchanges for DnD.
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Track top-level window context in DragSession; r=smaug
https://hg.mozilla.org/integration/autoland/rev/28f3bd70dc506b2cdbf847b981b76431fff00ad3
https://hg.mozilla.org/mozilla-central/rev/28f3bd70dc50
Updated•2 years ago
|
Comment 7•2 years ago
|
||
The patch landed in nightly and beta is affected.
:edgar, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox111towontfix.
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 8•2 years ago
|
||
Hi Virgil, mind verifying when you get a chance as I am not able to reproduce the issue on Linux in my environment? Thanks!
| Assignee | ||
Comment 9•2 years ago
|
||
(In reply to Release mgmt bot [:suhaib / :marco/ :calixte] from comment #7)
:edgar, is this bug important enough to require an uplift?
Yeah, probably worth uplifting, but I would like to verify it on nightly first.
Comment 10•2 years ago
|
||
:edgar could you submit a beta uplift approval request when ready?
Next week is the final beta week for Fx111
| Assignee | ||
Comment 11•2 years ago
|
||
Comment on attachment 9316425 [details]
Bug 1809122 - Track top-level window context in DragSession; r?smaug
Beta/Release Uplift Approval Request
- User impact if declined: Allowing drags link from across origins within the same top-level window makes it easy to fool users that that's what they're doing.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: Load the test page and try to scroll the page down by dragging the scroll bar and then drop it.
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Low risk as the changes are straightforward.
- String changes made/needed: None
- Is Android affected?: Yes
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Comment on attachment 9316425 [details]
Bug 1809122 - Track top-level window context in DragSession; r?smaug
Approved for 111.0b6
Comment 13•2 years ago
|
||
| uplift | ||
Comment 14•2 years ago
•
|
||
Reproduced with 110.b8 Firefox while using the initial index.html file from bug 1794268.
Issue is verified fixed in 111.0b6 Firefox and the latest 112.a1 version of Firefox Nightly.
Updated•2 years ago
|
Comment 15•2 years ago
•
|
||
:edgar could you add an esr uplift request when ready?
There are conflicts with esr102, so it will need a rebased patch
| Assignee | ||
Comment 16•2 years ago
|
||
Comment on attachment 9316425 [details]
Bug 1809122 - Track top-level window context in DragSession; r?smaug
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Allowing drags link from across origins within the same top-level window makes it easy to fool users that that's what they're doing.
- User impact if declined: Allowing drags link from across origins within the same top-level window makes it easy to fool users that that's what they're doing.
- Fix Landed on Version: 112
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Low risk as the changes are straightforward.
Comment 17•2 years ago
|
||
:edgar this patch has conflicts with esr102, could you attach a patch that grafts cleanly to esr102?
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 19•2 years ago
|
||
Comment on attachment 9320101 [details]
[ESR102] Bug 1809122 - Track top-level window context in DragSession; r=smaug
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Allowing drags link from across origins within the same top-level window makes it easy to fool users that that's what they're doing.
- User impact if declined: Allowing drags link from across origins within the same top-level window makes it easy to fool users that that's what they're doing.
- Fix Landed on Version: 112
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Low risk as the changes are straightforward.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 20•2 years ago
|
||
Sorry, wrong patch.
Comment 21•2 years ago
|
||
Comment on attachment 9316425 [details]
Bug 1809122 - Track top-level window context in DragSession; r?smaug
Approved for 102.9esr.
Comment 22•2 years ago
|
||
| uplift | ||
Comment 23•2 years ago
|
||
Issue was reproduced on 102.8esr.
Issue is no longer reproducible on 102.9esr.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 24•2 years ago
|
||
Updated•2 years ago
|
Updated•1 year ago
|
Updated•4 months ago
|
Description
•