JNLP should be treated as executable
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: qab, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Keywords: reporter-external, sec-moderate, Whiteboard: [post-critsmash-triage][adv-main67+])
Attachments
(1 file)
Assignee | ||
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
Comment 5•8 years ago
|
||
Comment 6•8 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
![]() |
||
Comment 11•6 years ago
|
||
https://hg.mozilla.org/integration/autoland/rev/45b70e8a557b8e179ab87a66ade201eed0257196
https://hg.mozilla.org/mozilla-central/rev/45b70e8a557b
Updated•6 years ago
|
Comment 12•6 years ago
|
||
I'm inclined to let this ride the trains. Do you agree, Gijs?
Assignee | ||
Comment 13•6 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM] from comment #12)
I'm inclined to let this ride the trains. Do you agree, Gijs?
Yep.
Updated•6 years ago
|
Comment 14•6 years ago
|
||
Hi, This issue seems to be Fixed on windows 10 in the latest Firefox Beta - 67.0b3, I will mark this issue accordingly. Please note that I don't have access to all available extensions mentioned in Comment 2 and I confirmed this bug based on the file from its Description.
If anybody else has any links that might redirect me to those other extension files, I'll be happy to check those as well.
Comment 15•6 years ago
|
||
Requesting bounty consideration on behalf of the reporter.
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 16•6 years ago
|
||
I believe this bug is an error or oversight. FWIW, I run Java SE Product management at Oracle, and we've had a good relationship with the Firefox team dating back to 2013 or so. Unfortunately it would seem a lot of the people we used to work with are gone (Coates, Smedberg come to mind), or perhaps someone would have thought to reach out to myself or someone from Oracle to help work through this.
This change has caused harm and is causing your users to switch back to Chrome, Safari and Edge for their WebStart needs. Ironically these are the users that had switched to you years ago because you were offering the best and safest experience.
JNLP is not an executable. JNLP should be treated the same as any Word Document. A JNLP file will not cause execution on a system unless it has a valid signature, and the user explicitly authorizes the launching based on information provided by the signature. Moreover, we even check if the Java runtime (if there is one) is current, and prompt the user to update if required, something you wouldn't experience with a docx file, for example. We're happy to discuss with anyone at Mozilla, I would reach out but as I already noted, apparently our contacts are all long gone.
Comment 17•6 years ago
|
||
For enterprise applications it would be helpful to define trusted domains or at least remove the jnlp from this list to avoid the message confusing users. Or at least to have a remember this page as secure.
Any chance to implement this?
Comment 18•6 years ago
|
||
I second Donald Smith on this, a JNLP is NOT an executable. Java is launched, but before the downloaded jars are run, the user has to confirm if he really wants to execute the application.
It impacts the usability of our enterprise application, because now every time a user want to run our app, a new file is downloaded in his download folder, and he has to make sure to then click on the latest version of this file, otherwise it won't work (each run gives a different JNLP file because of credentials).
And now instead of these jnlp files being hidden in a temp folder (which can be automatically cleaned), they accumulate in his download folder, where they have absolutely no value.
Please reconsider, or at least implement what Johannes Michler has suggested.
Updated•6 years ago
|
Comment 19•6 years ago
|
||
Given the fact that this bug is closed, we've gone ahead and filed a new bug 1576616 CVE 2019-11696 Should not treat JNLP files as Executables.
Assignee | ||
Comment 21•6 years ago
|
||
Dan said he'd update this bug, so passing the needinfo to him.
Comment 22•6 years ago
|
||
To stop the immediate pain for organizations that use Java Web Start we are backing out the fix for this bug from ESR-68 in bug 1576616.
(In reply to Thierry Guérin from comment #18)
I second Donald Smith on this, a JNLP is NOT an executable. Java is launched, but before the downloaded jars are run, the user has to confirm if he really wants to execute the application.
You just described an executable. You can argue that a prompt from Java is good enough that Firefox doesn't also need to prompt, but you can't say it's not an executable. In any case there are obvious problems with the user interactions here that we should address. In particular it shouldn't behave worse than downloading an actual .exe. There are also platform disparities we need to address. This fixed bug is not the place to address those issues so I'm filing a new bug for that. I suppose bug 1576616 could have been that, but 1) we took that over to land a fix on ESR, and 2) the usability issues are bigger than just JNLP.
Comment 23•6 years ago
|
||
Thanks Daniel!
It feels like we're using different meanings for "executable". jnlp is just like a docx file -- it isn't executable itself, but does trigger a separately installed application (Microsoft Word) to execute with it. If a user doesn't have Word installed, the OS would ask what to do with it, ditto for Java and JNLP. It feels from our perspective they (.jnlp and .docx) should be treated similarly.
Happy to discuss or elaborate, and glad to hear the immediate pain point can be managed.
Comment 24•6 years ago
|
||
We can address the remaining issues in bug 1576762
Comment 25•6 years ago
|
||
(In reply to Donald Smith from comment #23)
It feels like we're using different meanings for "executable". jnlp is just like a docx file -- it isn't executable itself, but does trigger a separately installed application (Microsoft Word) to execute with it. If a user doesn't have Word installed, the OS would ask what to do with it, ditto for Java and JNLP. It feels from our perspective they (.jnlp and .docx) should be treated similarly.
This is a disagreement we're unlikely to resolve. To us a word file is fundamentally a "document" like HTML while Java is a programming language.
Comment 26•6 years ago
|
||
(In reply to Daniel Veditz [:dveditz] from comment #25)
This is a disagreement we're unlikely to resolve. To us a word file is fundamentally a "document" like HTML while Java is a programming language.
By that reasoning a word file should also be considered an executable, considering word documents can contain macros and scripting in VBA, a programming language. The same kind of safeguards apply to that as to JNLP (user is explicitly prompted before execution). Same for excel, and any other document that has extended scripting capabilities.
I have to agree with Donald here that you shouldn't treat this any differently.
Comment 27•5 years ago
|
||
Facing the same problem I found one workaround. Add following example content to the "mimeTypes"
collection in handlers.json located in %USERPROFILE%\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default. Afterwards you will be able to assign any program you like to open jnlp with in Firefox settings.
"application/x-java-jnlp-file":{"action":2,"handlers":[{"name":"start-jre.bat","path":"C:\\JRE\\start-jre.bat"}],"extensions":["jnlp"]}
Updated•9 months ago
|
Description
•