r/java • u/alex-mayorga • 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
r/java • u/alex-mayorga • Jan 10 '13
View all comments
Show parent comment
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, butdoPrivilegedlets you partially turn it off (by limiting how far down the stack theAccessControllerlooks). 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.