ʎʇıןıqɐɹǝuןnʌ SSX pǝɹoʇS
Categories
(SeaMonkey :: Security, defect)
Tracking
(seamonkey2.48 wontfix, seamonkey2.49esr fixed, seamonkey2.51 wontfix, seamonkey2.53 affected, seamonkey2.57esr fixed, seamonkey2.63 wontfix)
People
(Reporter: yaaboukir, Assigned: frg)
Details
Attachments
(5 files)
|
106.29 KB,
image/png
|
Details | |
|
68 bytes,
text/html
|
Details | |
|
4.10 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-esr60+
|
Details | Diff | Splinter Review |
|
2.33 KB,
patch
|
iannbugzilla
:
approval-comm-esr52+
|
Details | Diff | Splinter Review |
|
1.51 KB,
patch
|
Details | Diff | Splinter Review |
Comment 1•9 years ago
|
||
| Reporter | ||
Comment 2•9 years ago
|
||
| Assignee | ||
Comment 3•9 years ago
|
||
| Assignee | ||
Comment 5•9 years ago
|
||
| Assignee | ||
Comment 6•9 years ago
|
||
Comment 7•8 years ago
|
||
Updated•8 years ago
|
Comment 8•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
| Reporter | ||
Comment 11•6 years ago
|
||
Hi,
I am surprised this issue is still reproducible in the latest Seamonkey (Tested on 2.49.4 for OS X). This should definitely be remediated as it's not happening in Firefox for instance. As a matter of fact, it was reported as a security vulnerability and was fixed, see https://www.mozilla.org/en-US/security/advisories/mfsa2006-34/
Regards.
Comment 12•6 years ago
|
||
I'm not involved with seamonkey so untagging myself, but I wonder if the project is dead? No release since July 2018 and that one didn't even autoupdate people on older versions: https://www.seamonkey-project.org/news
| Assignee | ||
Comment 13•6 years ago
|
||
but I wonder if the project is dead?
Not it is not but basically any support by Mozilla has ended and we just need to build our own infrastructure. Ripping parts out of Gecko on short or no notice without adequate replacements doesn't help too.
Unofficial builds of the next versions are here:
Building an official 2.49.5 as an interim has just started.
I still consider this a minor security problem because if you are able to execute js you can do bad things anyway and anyone not using a basic script and ad blocker theses days is way more vulnerable. Nevertheless it should be fixed. I will look into it when I find some time.
Comment 14•6 years ago
|
||
I think this patch
https://bugzilla.mozilla.org/attachment.cgi?id=214302
must be in this file: nsContextMenu.js (946, 989)
but I'm not quite sure.
Comment 15•6 years ago
|
||
... and line 894 from this patch: https://bugzilla.mozilla.org/attachment.cgi?id=225478
Comment 16•6 years ago
|
||
It looks like the patches have been taken from these bugs to SM
Bug 329468 - Show Only This Frame XSS (FF, TB, Suite)
Bug 329521 - View Image xss
Bug 329583 - Sidebar View Image xss
except that the changes that had to be ported from browser.js to nsContextMenu.js.
Comment 17•6 years ago
|
||
(In reply to Yassine ABOUKIR from comment #11)
Hi,
I am surprised this issue is still reproducible in the latest Seamonkey
(Tested on 2.49.4 for OS X). This should definitely be remediated as it's
not happening in Firefox for instance. As a matter of fact, it was reported
as a security vulnerability and was fixed, see
https://www.mozilla.org/en-US/security/advisories/mfsa2006-34/Regards.
I don't see which info I'm asked for.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 18•6 years ago
|
||
This should take care of it. Tested with 2.53 including viewing images form a blog via rss.
Cleans up the functions too and removes some ancient OpenTopWin calls.
These were the last 3 callers of ALLOW_CHROME.
Comment 19•6 years ago
|
||
| Assignee | ||
Comment 20•6 years ago
|
||
Could use referrerURI = this.target.ownerDocument.documentURIObject;
I am always a bit uneasy about these long assignments. If one is null or undefined and errors pop up only now and then they are a bit harder to track down. this.target.ownerDocument should always be definied but who knows. documentURIObject might not be.
- let systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
Moved and reformatted. I will let this bake a few days in Bills 2.53. Let me know here or over irc if I can keep the first assignment split.
Comment 21•6 years ago
|
||
(In reply to Frank-Rainer Grahl (:frg) from comment #20)
Could use referrerURI = this.target.ownerDocument.documentURIObject;
I am always a bit uneasy about these long assignments. If one is null or undefined and errors pop up only now and then they are a bit harder to track down. this.target.ownerDocument should always be definied but who knows. documentURIObject might not be.
- let systemPrincipal = Services.scriptSecurityManager.getSystemPrincipal();
Moved and reformatted. I will let this bake a few days in Bills 2.53. Let me know here or over irc if I can keep the first assignment split.
Happy to leave it as doc and doc.documentURIObject
| Assignee | ||
Comment 22•6 years ago
|
||
Poor mans 2.49.5 version. Testcase no longer shows the message box and logs athe expected exception.
Viewing for- and back-ground images and videos via the menu still works.
| Assignee | ||
Updated•6 years ago
|
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/276536b6d831
Check view targets for possible unsafe content. r=IanN
| Assignee | ||
Comment 25•6 years ago
|
||
Target 2.49.5
https://hg.mozilla.org/releases/comm-esr52/rev/32ca9eea4f9bcdc7c0ab7b95c4a3358f6ef8d33a
https://hg.mozilla.org/releases/comm-esr60/rev/ee0685ffa4a060f17bb51b054e52d49f60ef7abd
| Reporter | ||
Comment 26•6 years ago
|
||
Awesome work! Can we request a CVE for this one?
| Assignee | ||
Comment 27•6 years ago
|
||
Awesome work! Can we request a CVE for this one?
I will look into it for the 2.49.5 release. IanN did you by chance did this previously for another item?
Comment 28•6 years ago
|
||
(In reply to Frank-Rainer Grahl (:frg) from comment #27)
Awesome work! Can we request a CVE for this one?
I will look into it for the 2.49.5 release. IanN did you by chance did this previously for another item?
No, never done for another item. The ALLOW_CHROME was probably meant to fix the original issue, from 2006, but the reasons seem to be lost in the mists of time. If this does properly fix it, then we could possibly use that CVE.
Comment 29•5 years ago
|
||
Clicking "View Image" on a Canvas (which probably the same time is a frame) produces an error:
Error: TypeError: Argument 1 is not valid for any of the 1-argument overloads of URL.createObjectURL.
Source File: chrome://communicator/content/nsContextMenu.js
Line: 1127
The problem is
let blobUrl = URL.createObjectURL(this.target);
because the argument must be this.target.toBlob(), rather then just this.target .
(And toBlob() canvas method is async).
Note, the correspond Fx part has toBlob()
Comment 30•5 years ago
|
||
preliminary patch which fixes the issue on known test cases.
| Assignee | ||
Comment 31•5 years ago
|
||
Dmitry could you open a new bug and attach the patch to it. Looks ok but I need to do some tests and would like to have it seperated.
| Reporter | ||
Comment 33•5 years ago
|
||
Hi - apologies for the little nudge! I was wondering if it would be possible to request a CVE for this security issue?
| Assignee | ||
Comment 34•5 years ago
|
||
I was wondering if it would be possible to request a CVE for this security issue?
We talked about it yesterday. We know it was not handled in time but think given the even older underlying bugs and the now completely obsolete 2.49.5 release that it makes little sense now to create a new CVE. Basically yesterdays news.
| Reporter | ||
Comment 35•5 years ago
|
||
Sounds good! Please update this ticket with the appropriate CVE ID when it's assigned. Thanks!
Description
•