The System Principal is being used to load search engine images and OpenSearch descriptions
Categories
(Firefox :: Search, defect, P2)
Tracking
()
People
(Reporter: standard8, Assigned: standard8)
Details
(Keywords: sec-low, Whiteboard: [adv-main119-])
Attachments
(1 file)
We have a helper function in SearchUtils that makes a channel using the system principal.
Although the triggeringPrincipal is not specified, it falls back to the loadingPrincipal.
The channel that is created can be used in two places in the code:
- When installing or updating OpenSearch engines. In the install case (the update case only has the last step):
- The user has loaded a web page, and we've detected that there is an <link rel="search" type="application/opensearchdescription+xml" in the page with a href for the OpenSearch definition file (an xml).
- The user then clicks on a button in the search bar or address bar to install the engine.
- We then go and load the href from the definition and process the file.
- Loading images (icons) for search engines on installation. These will have been defined in the OpenSearch engine definition, or could also be loaded for Enterprise Policy engines.
Talking with :ckerschb, we should be using a null principal here, as these are cases that could be influenced by the web.
To get this working, we'll also need to correct/change the content type. I think for the first case we'll should use Ci.nsIContentPolicy.TYPE_DOCUMENT and the second case we should use Ci.nsIContentPolicy.TYPE_IMAGE.
In the images code, we can also remove the ftp reference, as Firefox no longer supports loading from ftp.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 4•2 years ago
|
||
I chatted with Christoph and Freddy, and we decided that as this is more of a security improvement rather than a vulnerability fix, we wouldn't backport to esr115.
Likewise, I don't think we need to do an uplift to beta in this case. I'm fine either way though if someone thinks we should uplift to beta.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 6•2 years ago
|
||
Bulk-unhiding security bugs fixed in Firefox 119-121 (Fall 2023). Use "moo-doctrine-subsidy" to filter
Description
•