Closed Bug 932795 Opened 12 years ago Closed 12 years ago

Remove unnecessary systemXHR permission

Categories

(Firefox OS Graveyard :: Gaia::Video, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.1hd unaffected, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
b2g-v1.1hd --- unaffected
b2g-v1.2 --- fixed

People

(Reporter: arroway, Assigned: gkw)

Details

(Keywords: csectype-other, sec-want)

Attachments

(1 file, 1 obsolete file)

The systemXHR privileged permission should be removed from the manifest of the Video app since it is not longer required. Tt was previously used to make calls to the Youtube API, which is no longer performed.
Group: core-security
Keywords: csec-other, sec-want
Not a current vulnerability so we don't need to hide the bug, but we do want to fix it (it's trivial to do) since it potentially raises the risk should this app be compromised.
Attached patch patch v0 (obsolete) — Splinter Review
(had some minutes to spare as I got too bored at an airport) I think this might fix the issue, please let me know if there is anything else I should change.
Assignee: nobody → gary
Status: NEW → ASSIGNED
Attachment #825093 - Flags: review?(dale)
Comment on attachment 825093 [details] [diff] [review] patch v0 Before you land this remember to take the semi colon off preceeding line "audio-channel-content":{}, (or if you need me to land, up an updated patch) In future djf oh John Hu are likely better reviewers, I dont work on Video these days Cheers, looks good
Attachment #825093 - Flags: review?(dale) → review+
Attached patch patch v1Splinter Review
Bringing over r+. > In future djf oh John Hu are likely better reviewers, I dont work on Video > these days I chose you based on the shortest review queue from the "suggested reviewers" list - djf had 16 at that time, while John Hu wasn't on the list (no idea why).
Attachment #825093 - Attachment is obsolete: true
Attachment #825894 - Flags: review+
Does this need to be backported?
Flags: needinfo?(dflanagan)
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
(In reply to Gary Kwong [:gkw] [:nth10sd] (still catching up on bugmail) (in-n-out through Nov 5) from comment #4) > Created attachment 825894 [details] [diff] [review] > patch v1 > > Bringing over r+. > > > In future djf oh John Hu are likely better reviewers, I dont work on Video > > these days > > I chose you based on the shortest review queue from the "suggested > reviewers" list - djf had 16 at that time, while John Hu wasn't on the list > (no idea why). Sounds like someone should file a bug requesting that he be added.
Thanks for the patch Gary, and thanks for landing it, Dale. I don't know if this should be backported. (Actually, I'm not certain when we stopped using the youtube api, but if we can remove this permission in 1.2, I think we should. It is basically risk-free to do. Let's ask the reporter: Stephanie, do you want to nominate this fix koi?
Flags: needinfo?(dflanagan) → needinfo?(stephouillon)
The use of the Youtube API has been stopped 4 months ago, I think it would be good to remove the permission in 1.2.
Flags: needinfo?(stephouillon)
blocking-b2g: --- → koi?
(In reply to Josh Matthews [:jdm] from comment #7) > Sounds like someone should file a bug requesting that he be added. I filed bug 935286.
This permission was recommended to be removed in the security review of the Video app: https://wiki.mozilla.org/Security/Reviews/Gaia/Video#Permissions
So this seems to be more of a want from the security team as a preventive case, please clarify if that's not the case, as we do not want to block on an issue if its not absolutely critical. Are we sure that no older releases(1.0.1,1.1) will rely on this change ? Would we need any new testing here ?
Flags: needinfo?(stephouillon)
Flags: needinfo?(dflanagan)
The permission can be removed from 1.2 but not from older releases, as 1.1 and 1.0.1 still use the Youtube API in the Video app.
Flags: needinfo?(stephouillon)
I don't have the rights to mark this koi+, but I would if I did. It seems like a risk-free security patch. I think we should uplift it.
Flags: needinfo?(dflanagan)
blocking-b2g: koi? → koi+
John, can you please assist? :)
Flags: needinfo?(jhford)
[v1.2 487853e] Bug 932795 - remove unused systemXHR permission. r=daleharvey
Flags: needinfo?(jhford)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: