URL Spoofing by using onbeforeunload and opening a new window
Categories
(Firefox :: Address Bar, defect, P2)
Tracking
()
People
(Reporter: luan.herrera, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: csectype-spoof, sec-moderate, Whiteboard: [fxsearch])
Attachments
(3 files, 2 obsolete files)
4.56 KB,
patch
|
Gijs
:
feedback+
|
Details | Diff | Splinter Review |
6.03 KB,
patch
|
Details | Diff | Splinter Review | |
958 bytes,
text/html
|
Details |
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Reporter | ||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Reporter | ||
Comment 6•8 years ago
|
||
Updated•8 years ago
|
Comment 7•8 years ago
|
||
Comment 8•8 years ago
|
||
Comment 9•8 years ago
|
||
Updated•8 years ago
|
Comment 11•8 years ago
|
||
Comment 13•8 years ago
|
||
Comment 14•8 years ago
|
||
Comment 15•8 years ago
|
||
Comment 16•8 years ago
|
||
Comment 17•8 years ago
|
||
Comment 18•8 years ago
|
||
Comment 19•8 years ago
|
||
Comment 20•8 years ago
|
||
Comment 21•8 years ago
|
||
Comment 22•8 years ago
|
||
Comment 23•8 years ago
|
||
Comment 24•8 years ago
|
||
Comment 25•8 years ago
|
||
Comment 26•8 years ago
|
||
Comment 27•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 28•5 years ago
|
||
This was disclosed via twitter by the reporter, https://twitter.com/lbherrera_/status/1280617786088329220, using a different testcase: https://spoof.lbherrera.me/ .
I'm about to sign off for the day so I can't investigate this right now, but I'll just say that that testcase works very well (the only giveaway is the lack of an identity box icon), whereas the testcase from comment #0 is a 404 and the testcase from comment 6 doesn't work, even if I allow popups - the beforeunload dialog is not automatically dismissed, and if I click "leave page" I just go to google.
The new testcase works by forcing an image href to change so that a load event fires on it, at which point the page navigates to a redirect. This was more recently reported somewhere else, I think, but I don't have a bug reference handy.
Comment 29•5 years ago
|
||
(In reply to :Gijs (he/him) from comment #28)
The new testcase works by forcing an image href to change so that a load event fires on it, at which point the page navigates to a redirect. This was more recently reported somewhere else, I think, but I don't have a bug reference handy.
Oh, here we go, bug 1481994, from the same reporter.
Pinging Dan to radar this, I guess. Maybe we should just dupe forward at this point?
Updated•5 years ago
|
Comment 30•5 years ago
|
||
Comment 31•5 years ago
|
||
Kinda "worksforme" and still kind of broken.
even if I allow popups - the beforeunload dialog is not automatically dismissed, and if I click "leave page" I just go to google.
If you click "Stay on page" then the URL bar is not updated so that's still spoofy, but that's captured more specifically in bug 1651636 now. For purposes of this spoof it breaks the illusion to have the user click "Stay" and then try to make them believe they've navigated, although I bet some people would assume they clicked the wrong button or the button was broken.
In terms of separate things to fix this bug isn't doing us any good so sure, duping to the bug with the currently-better testcase is fine.
Updated•5 years ago
|
Description
•