Closed
Bug 202256
Opened 23 years ago
Closed 4 years ago
Signed XUL apps cannot run outside of the sandbox
Categories
(Core :: Security, defect)
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: neil, Assigned: dveditz)
Details
(Keywords: helpwanted)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
It appears that Mozilla does not allow a signed XUL that uses java app to run
outside of the sandbox, instead requiring edits to the java.policy file to
slacken the security policy. Signed java applets can run out of the sandbox, so
why not signed XUL apps?
Reproducible: Always
Steps to Reproduce:
1.Write a XUL app that calls Java methods
2.Package the app into a jar and sign it
3.Attempt to run the app
Actual Results:
The following java exception was thrown:
java.security.PrivilegedActionException:
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError
Expected Results:
The XUL app should have been able to invoke java and operate normally, outside
of the sandbox, in the same way as it does in the sandbox when the java.policy
file is adjusted.
Comment 1•23 years ago
|
||
Java has its own security manager and signature verifier, separate from
Mozilla's, so signing XUL/JS code has no effect on privileges granted to applets
or Java methods. You need to sign the applet separately.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•23 years ago
|
||
However, it appears that Java in a signed jar cannot be called successfully from
XUL/JS (ie via LiveConnect), even though a signed applet can be successfully
invoked from HTML using <applet>.
The problem also remains where there is no Java jar file, and calls are made to
Java SDK methods entirely via LiveConnect. Mozilla provides no way to sign this
code, allowing it to be distributed and run out of the sandbox, which would be
required if the Java accesses the filesystem, network etc.
Or am I missing something?
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•23 years ago
|
||
No, you are correct. Java and JS security engines don't talk to each other well.
Unfortunately, to do this right would be a major effort and I don't know who has
the resources for that right now. I'm marking this Future, and helpwanted. If
anyone's interested in working on this, feel free to take the bug.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Keywords: helpwanted
Target Milestone: --- → Future
| Assignee | ||
Updated•19 years ago
|
Assignee: security-bugs → dveditz
Status: ASSIGNED → NEW
QA Contact: carosendahl → toolkit
| Assignee | ||
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 23 years ago → 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•