Notification icons are loaded and decoded in the parent
Categories
(Core :: DOM: Notifications, defect, P3)
Tracking
()
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: csectype-priv-escalation, sec-moderate, Whiteboard: [adv-main149+r])
Attachments
(11 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
The code in https://searchfox.org/firefox-main/source/toolkit/components/alerts/AlertNotification.cpp loads and decodes icons used by the notifications in the parent process. From what I know we also have other platform specific implementations, but they probably have a similar problem.
Like other dependencies of bug 1878251, we should only be decoding untrusted image data inside a sandboxed process.
Updated•10 months ago
|
| Assignee | ||
Updated•10 months ago
|
Comment 1•10 months ago
|
||
We should also take care of cases where AlertNotification is used directly by parent process 👀
Updated•10 months ago
|
| Assignee | ||
Comment 2•10 months ago
|
||
(In reply to Kagami Rosylight [:saschanaz] (they/them) (inactive until 2025-11-14) from comment #1)
We should also take care of cases where AlertNotification is used directly by parent process 👀
Do you mean cases like this: https://searchfox.org/firefox-main/search?q=symbol:%23showAlertNotification&redirect=false. I really hope that all code creating notifications in the parent process is trusted. (Not talking about the case where we forward a notifcation from the child of course)
| Assignee | ||
Updated•10 months ago
|
Comment 3•10 months ago
|
||
(In reply to Tom Schuster (MoCo) from comment #2)
I really hope that all code creating notifications in the parent process is trusted. (Not talking about the case where we forward a notifcation from the child of course)
Agreed, I meant to say that we shouldn't break such trusted notifications.
| Assignee | ||
Comment 4•10 months ago
|
||
Updated•10 months ago
|
| Assignee | ||
Comment 5•10 months ago
|
||
| Assignee | ||
Comment 6•10 months ago
|
||
| Assignee | ||
Comment 7•10 months ago
|
||
| Assignee | ||
Comment 8•10 months ago
|
||
| Assignee | ||
Comment 9•10 months ago
|
||
| Assignee | ||
Comment 10•10 months ago
|
||
| Assignee | ||
Comment 11•9 months ago
|
||
| Assignee | ||
Comment 12•9 months ago
|
||
This is still missing chrome code that uses nsIAlertNotifcation with an imageURL. We will need to update those consumers to also provide the image.
| Assignee | ||
Comment 13•9 months ago
|
||
| Assignee | ||
Comment 14•9 months ago
|
||
| Assignee | ||
Comment 15•9 months ago
|
||
| Assignee | ||
Comment 16•8 months ago
|
||
Comment 17•8 months ago
|
||
Comment 18•8 months ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b7604c9b613e
https://hg.mozilla.org/mozilla-central/rev/d9065a8e5585
https://hg.mozilla.org/mozilla-central/rev/172317783b62
https://hg.mozilla.org/mozilla-central/rev/c08a88833b8a
https://hg.mozilla.org/mozilla-central/rev/5135f57dc9c1
https://hg.mozilla.org/mozilla-central/rev/333f28d069ff
https://hg.mozilla.org/mozilla-central/rev/466337a1fef8
https://hg.mozilla.org/mozilla-central/rev/d0d164697388
https://hg.mozilla.org/mozilla-central/rev/77d3ba687856
https://hg.mozilla.org/mozilla-central/rev/d6e29b6d185b
https://hg.mozilla.org/mozilla-central/rev/c4c249737687
https://hg.mozilla.org/mozilla-central/rev/5ffc4163edce
Updated•8 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•6 months ago
|
Updated•1 month ago
|
Description
•