Closed
Bug 1475722
Opened 7 years ago
Closed 7 years ago
Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
Categories
(Core :: Security: Process Sandboxing, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla63
People
(Reporter: haik, Assigned: haik)
References
Details
Attachments
(1 file)
59 bytes,
text/x-review-board-request
|
Alex_Gaynor
:
review+
ritu
:
approval-mozilla-beta+
|
Details |
On OS X 10.9 and 10.10, with the latest Nightly which has the Mac Flash sandbox enabled, attempting to upload a file using a demo uploader[1] results in an empty file dialog. The file dialog side bar is usable, but all directories are displayed as empty.
This will also affect Beta builds that have Flash sandbox level set to 1 or above via pref "dom.ipc.plugins.sandbox-level.flash". Some early builds of Beta have the Flash sandbox on by default.
Release builds are not affected.
Workaround:
In about:config, set the preference "dom.ipc.plugins.sandbox-level.flash" to 0 and restart the browser. If the pref is not present, the sandbox is not enabled.
1. http://www.tinywebgallery.com/en/tfu/web_demo1.php
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Comment 1•7 years ago
|
||
I haven't been able to get the file dialogs working from the Flash plugin using our current sandbox level 1 which depends on sandbox exceptions triggered by file dialog activity.
The fix will be to allow blanket read access from the Flash sandbox on 10.9 and 10.10. This will become level 1 and the Flash sandbox that restricts read access will become level 2.
Comment hidden (mozreview-request) |
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
https://reviewboard.mozilla.org/r/257874/#review265086
Would it be simpler to just structure this as `(if (< min-os-version 10) (allow file-read*))` in the policy, instead of using levels and prefs?
Assignee | ||
Comment 4•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
https://reviewboard.mozilla.org/r/257874/#review265086
Yes, but using prefs makes it easy to tweak later after it's been released to the field if we encounter problems. From what I understand, we could ship an updated pref without requiring a full update. For example, if an updated version of Flash breaks this on 10.11 also, or we have to downgrade all OS versions to use level 1, we only need a pref update.
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
https://reviewboard.mozilla.org/r/257874/#review265118
::: dom/plugins/base/nsPluginTags.cpp:465
(Diff revision 1)
> - mSandboxLevel = ClampFlashSandboxLevel(mSandboxLevel);
> + // Use standard level
> + mSandboxLevel = Preferences::GetInt(levelPref, 0);
> }
>
> + mSandboxLevel = ClampFlashSandboxLevel(mSandboxLevel);
> + printf("Using Flash sandbox level %d\n", mSandboxLevel);
Remove this :-)
Attachment #8993063 -
Flags: review?(agaynor) → review+
Assignee | ||
Comment 6•7 years ago
|
||
mozreview-review-reply |
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
https://reviewboard.mozilla.org/r/257874/#review265118
> Remove this :-)
Doh! Will do.
Assignee | ||
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
https://reviewboard.mozilla.org/r/257874/#review265130
::: security/sandbox/mac/SandboxPolicies.h:700
(Diff revision 1)
> + (if (or (string=? sandbox-level-2 "TRUE")
> + (string=? sandbox-level-1 "TRUE") (begin
Was testing on 10.13 and found this "or" statement is wrong. The "begin" needs to be outside the "or" statement. Will fix and retest.
Comment hidden (mozreview-request) |
Pushed by haftandilian@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/04c39e58ad7a
Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10 r=Alex_Gaynor
Comment 10•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 11•7 years ago
|
||
I'd like us to verify the fixes in nightly for Bug 1475722, Bug 1471977, and Bug 1475707 before we uplift for beta. (Hopefully for beta 13 next Monday)
Flags: qe-verify+
Comment 12•7 years ago
|
||
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
Approval Request Comment
[Feature/Bug causing the regression]: required for bug 1474375
[User impact if declined]:
[Is this code covered by automated tests?]:
[Has the fix been verified in Nightly?]:
[Needs manual test from QE? If yes, steps to reproduce]:
[List of other uplifts needed for the feature/fix]:
[Is the change risky?]:
[Why is the change risky/not risky?]:
[String changes made/needed]:
Attachment #8993063 -
Flags: approval-mozilla-beta?
Comment 13•7 years ago
|
||
I managed to reproduce the issue using an older version of Nightly (2018-07-13) on Mac OS 10.10.
I retested everything using latest Nightly 63.0a1 on Mac OS 10.10 and Mac OS 10.9 and the bug is not reproducing anymore.
Flags: qe-verify+
Comment 14•7 years ago
|
||
Thanks for the verify!
status-firefox62:
--- → affected
Comment on attachment 8993063 [details]
Bug 1475722 - Mac Flash sandbox causes empty file upload dialogs on OS X 10.9, 10.10
Fix was verified on Nightly63, Beta62+
Attachment #8993063 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 16•7 years ago
|
||
bugherder uplift |
Comment 18•7 years ago
|
||
Managed to reproduce this issue using an affected Nightly build from 2018-07-13, and following the STR from comment 0.
This bug is also verified fixed on Beta 62.0b14 (20180802174131), running Mac OS X 10.10 and 10.9.
You need to log in
before you can comment on or make changes to this bug.
Description
•