Firefox allows you to insert confirm/alert/prompt dialog in any domain with the back button
Categories
(Core :: DOM: Navigation, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr78 | --- | fixed |
People
(Reporter: jm.acuna73, Unassigned)
References
Details
(Keywords: csectype-spoof, reporter-external, sec-moderate, Whiteboard: [fixed by bug 836567])
Attachments
(4 files)
Comment 1•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 2•7 years ago
|
||
Reporter | ||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Reporter | ||
Comment 5•7 years ago
|
||
Reporter | ||
Comment 6•7 years ago
|
||
Reporter | ||
Comment 7•7 years ago
|
||
Reporter | ||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Reporter | ||
Comment 10•7 years ago
|
||
Reporter | ||
Comment 11•7 years ago
|
||
Reporter | ||
Comment 12•7 years ago
|
||
Reporter | ||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Reporter | ||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Updated•7 years ago
|
Reporter | ||
Comment 19•6 years ago
|
||
Comment 20•6 years ago
|
||
Reporter | ||
Comment 21•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Reporter | ||
Comment 22•6 years ago
|
||
At this time, the bug is not reproducible in:
1- Firefox Nightly 68.0a1 (2019-03-27) (64-bit) for Windows 10
2- Firefox Quantum 66.0.1 (64-bit) for Windows 10
Test: https://www.finanser.es/test/permission-prompt-yahoo-mail.html
Comment 23•6 years ago
|
||
(In reply to Jose María Acuña from comment #22)
At this time, the bug is not reproducible in:
1- Firefox Nightly 68.0a1 (2019-03-27) (64-bit) for Windows 10
2- Firefox Quantum 66.0.1 (64-bit) for Windows 10Test: https://www.finanser.es/test/permission-prompt-yahoo-mail.html
I can still reproduce if I hit the back button repeatedly (and after doing that once, it reproduces with just hitting the back button once, when the yahoo mail page loads). Maybe something changed wrt caching or something, but this doesn't seem fully fixed.
Reporter | ||
Comment 24•6 years ago
|
||
(In reply to :Gijs (he/him) from comment #23)
(In reply to Jose María Acuña from comment #22)
At this time, the bug is not reproducible in:
1- Firefox Nightly 68.0a1 (2019-03-27) (64-bit) for Windows 10
2- Firefox Quantum 66.0.1 (64-bit) for Windows 10Test: https://www.finanser.es/test/permission-prompt-yahoo-mail.html
I can still reproduce if I hit the back button repeatedly (and after doing that once, it reproduces with just hitting the back button once, when the yahoo mail page loads). Maybe something changed wrt caching or something, but this doesn't seem fully fixed.
I have tried pressing the Back button several times and the javascript alert does not appear
Video attachment: https://drive.google.com/file/d/15BKUFoVRg8nMAqqQA1560snDmtrsJzT_/view
Comment 25•6 years ago
|
||
(In reply to Jose María Acuña from comment #24)
I have tried pressing the Back button several times and the javascript alert does not appear
Video attachment: https://drive.google.com/file/d/15BKUFoVRg8nMAqqQA1560snDmtrsJzT_/view
Perhaps the difference is that I'm not signed into yahoo mail?
Reporter | ||
Comment 26•6 years ago
|
||
No, it does not reproduce in any case.
I've tried other pages and the bug does not play either.
Reporter | ||
Comment 27•6 years ago
|
||
(In reply to Jose María Acuña from comment #21)
The bug is reproducible in:
1- Firefox Nightly 64.0a1 (2018-10-15) (64-bit) for Windows 10
2- Firefox Quantum 62.0.3 (64-bit) for Windows 10(1) https://drive.google.com/file/d/1oTx2r2ukSttQ-qGQ9PvU8OwrWS4u3MYH/view
(2) https://drive.google.com/file/d/10WpSV-oeL--6SgbBQH2HZKXe4-MDmw4u/view
Hello,
I just did the test in the latest version of Firefox Developer Edition for Windows 10 (with and without authentication in the Yahoo mail service) and the bug is not reproducible either.
3- Firefox Developer Edition 67.0b6 (64-bit) for Windows 10
(3) https://drive.google.com/file/d/1UlNxcP4CZu1kmYPWENscZW0NGep1Qmka/view
Reporter | ||
Comment 28•6 years ago
|
||
In summary,
this bug it does not reproduce in:
1- Firefox Nightly 68.0a1 (2019-03-27) (64-bit) for Windows 10
2- Firefox Quantum 66.0.1 (64-bit) for Windows 10
3- Firefox Developer Edition 67.0b6 (64-bit) for Windows 10
Reporter | ||
Comment 29•6 years ago
|
||
What's new?
Comment 30•5 years ago
|
||
(In reply to Jose María Acuña from comment #29)
What's new?
I can still reproduce on current beta (69), so I think the bug is still valid.
Comment 31•5 years ago
|
||
I can reproduce (eventually, lots of back clicking) in nightly 70.0a1 as well. Easily reproduced on ESR-60 with a single click. Not a very normal action people would take though. When it does work, though, it's disturbing that the prompt script is running on top of the wrong domain.
Reporter | ||
Comment 32•4 years ago
|
||
Hi! How are you?
It's been 12 months since I received a reward for this bug.
Currently does not reproduce in any version of Firefox.
Do you plan to fixed it and assign a cve?
Thank you. Regards.
Reporter | ||
Comment 33•4 years ago
|
||
Hello,
sorry for insisting, but can this issue be made public?
Comment 34•4 years ago
|
||
(In reply to Jose María Acuña from comment #33)
Hello,
sorry for insisting, but can this issue be made public?
The understanding from the last few comments is that this isn't fixed yet. If the issue is not fixed, I don't understand why we should open up the ticket.
Trying very quickly, I don't see an issue with alerts, but the address bar's identity block is confused, showing a document icon and claiming that https://www.finanser.es/test/permission-prompt-yahoo-mail.html
is "stored on [my] computer".
Johann, can you take a look?
Comment 35•4 years ago
|
||
I have no idea what fixed the original bug. It's reproducible in older builds but definitely not in newer builds. I tried to get the fix range from mozregression but the behavior is super weird to the point where I stopped investigating (e.g. no matter which revision I would run the bug would reproduce only if it was the very first build mozregression started). It definitely stops some time in the 70s.
The local file icon thing seems to be a regression from bug 1570678. I'm not sure if it makes sense to transform this bug here or open up a new one and block it against bug 1570678. I can take a closer look at that, whenever I get to it :)
Please note that in the near future, when we re-enable browser.navigation.requireUserInteraction
and fix the dependencies of bug 1645211, the user will not be able to navigate back to the page because it didn't have user interaction before forwarding. We should probably still fix the local file icon bug.
Comment 36•4 years ago
|
||
Having just re-checked, I can now reproduce a change in reproducability between 65 and 66 with mozregression on my Windows machine. That narrows down to this window:
which noticeably includes bug 1270059, which would change the timing of when we run setTimeout
events. If that accidentally "fixed" this issue on some machines, then it is likely that a modified testcase would still work / have worked, given that AFAICT you could move all the setTimeout calls to happen after pageload of the JS URL.
On my mac, I can still reproduce on later releases. Going to see what fixed it there.
Comment 37•4 years ago
|
||
OK, on my mac, this was fixed when bug 836567 was fixed, in Firefox 74, which makes a lot more sense.
Tom, based on that, can we open this up?
Updated•4 years ago
|
Updated•8 months ago
|
Description
•