Closed Bug 27664 Opened 26 years ago Closed 21 years ago

OJI and proxy server issues [not a bug, a request]

Categories

(Core Graveyard :: Java: OJI, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: jn, Assigned: yuanyi21)

Details

Having created applet that require the SUN Java 1.2 (or higher) plug-in we have had some problems when running the applets behind strict firewall/proxy setups. The set-up is like: one Win98 client with no DNS or gateway; only IP number of a http proxy server. Running the applet in HotJava is fine, can fetch images and make urlconnections. In the plug-in, however, no connections back to the server seems to be allowed because the JVM is unable to resolve www.server.domain and it seems not to trust the proxy settings. In the general case this is unfortunate for many users setting behind corporate firewalls, completely shielded by strict proxy servers. Adding to the "hosts" file is generally not an option for most users and is at the least very clumsy. As an observation: Apple's MRJ (which uses OJI) actually seems to trust the browser to handle URLconnections correctly. The main reason to file this report is concern about the limitations if the SUN security model is implemented and at the least to have clarified specs in this area.
Moving this to the browser product, security component. Please reassign as appropriate.
Assignee: endico → dougt
Component: OJI → Security
Product: Architecture → Browser
QA Contact: nobody → junruh
Version: unspecified → other
assigning to CAPS, not crypto security
Assignee: dougt → norris
Component: Security → Security: CAPS
I believe this is an issue with the JVM, not browser security. Is that true?
Assignee: norris → drapeau
Component: Security: CAPS → OJI
QA Contact: junruh → paw
This is caused by the fact that the Java 2 security model requires doing reverse DNS lookup to resolve IP address into host name, in order to compare the permission granted in the policy file. Our security team is currently investigating this issue.
Stanley, I'm assigning this to you for tracking. If you want to reassign it to me, feel free.
Assignee: drapeau → stanley.ho
I have talked to the security team, and it is actually a fix for the DNS spoofing problem. Please read http://java.sun.com/people/mrm/dns_spoofing.html for more details. Apparently, this problem is caused by the fact that the client doesn't have DNS setup, so we cannot do reverse DNS lookup to prevent DNS spoofing. The possible solution is: we may trust the HTTP proxy to do the proper DNS lookup and security checking, so we don't need to do this security check anymore. However, the question is: how do we know the HTTP proxy should be trusted?? If not, we may end up with DNS spoofing again. Ed, I am reassigning this bug to you, because I would like this question to be forwarded to NS and see how Navigator 3/4 solves this problem.
Assignee: stanley.ho → edburns
Stanley, I'd wager that they solve the problem by being victim to the DNS spoofing problem.
Due to Stanley's comments, this bug is security based.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → LATER
I understand the spoofing problem and have no issue with the security requirements as discussed in http://java.sun.com/people/mrm/dns_spoofing.html. However, if the applet is signed with a certificate that is part of a trusted certificate authority chain (and the user accepts the certificate), shouldn't this be enough to allow the applet to run unmolested? Right now, the plug-in will not even show the certificate dialog if it can't resolve the host name and address. My point is that, if the applet is signed and the user accepts the certificate, the applet will be allowed to do anything anyway, so what is the difference from the security point of view between a signed applet running without DNS and one running with DNS? The certificate authenticates the author (unless I haven't been careful enough with the private key, which is a problem with or without DNS) so the DNS spoofing problem is not an issue here. If this security model were to be applied to the browsers, then neither Netscape nor IE would allow the plug-in itself (never mind the applet) to run because java.sun.com could not be resolved behind a proxy!
kdean, you are correct, signing the applet should afford you all the access. There is a bug on this, http://bugzilla.mozilla.org/show_bug.cgi?id=8298 Jeff Dyer is working on it. I've added you to the CC list. Please post further correspondence to bug 8298.
QA Contact: paw → pmac
LATER is deprecated per bug 35839.
Status: RESOLVED → REOPENED
Resolution: LATER → ---
->default
Assignee: edburns → joe.chou
Status: REOPENED → NEW
QA Contact: pmac → petersen
reassign to me
Assignee: joe.chou → joshua.xia
Whiteboard: redesign?
Whiteboard: redesign? → redesign
Whiteboard: redesign
Severity: normal → enhancement
Status: NEW → ASSIGNED
->kyle
Assignee: joshua.xia → kyle.yuan
Status: ASSIGNED → NEW
It has been fixed in the recent jre.
Status: NEW → RESOLVED
Closed: 26 years ago → 21 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.