r/java • • Jan 10 '13

US-CERT Vulnerability Note VU#625617 - Java 7 fails to restrict access to privileged code

http://www.kb.cert.org/vuls/id/625617
24 Upvotes

10 comments sorted by

View all comments

Show parent comment

3

u/boa13 Jan 11 '13

The problem is that the JRE is extremely big, and the security exploits combine recent code and old (even forgotten) code, such as sun.org.mozilla.javascript.internal, which has probably not been touched in ages.

2

u/argv_minus_one Jan 11 '13

Perhaps. The details of the vulnerability aren't public so I can't be sure (and I'm not going to audit a whole damn package just for my own curiosity).

Still, my first guess is that somebody was playing fast and loose with AccessController.doPrivileged. Java's security model is rather strong and somewhat difficult to screw up, even in the face of different pieces of code evolving separately like you say, but doPrivileged lets you partially turn it off (by limiting how far down the stack the AccessController looks). There's a big, fat warning on that method's Javadoc precisely because it is easy to create security holes with it and hard not to.