Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0

...

Code Block
bgColor#FFcccc
protected PermissionCollection getPermissions(CodeSource cs) {
  PermissionCollection pc = new Permissions();
  pc.add(new RuntimePermission("exitVM""exitVM"));   //allow exit from the VM anytime
  return pc;
}

...

Code Block
bgColor#ccccff
protected PermissionCollection getPermissions(CodeSource cs) {
  PermissionCollection pc = super.getPermissions(cs);
  pc.add(new RuntimePermission("exitVM""exitVM"));
  return pc;
}

Risk Assessment

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

References

Wiki Markup
\[[API 06|AA. Java References#API 06]\] [Class ClassLoader|http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html]
\[[Oaks 01|AA. Java References#Oaks 01]\]
\[[Security 06|AA. Java References#Security 06]\]

...

SEC09-J. Prefer using SSLSockets over Sockets for secure data exchange            02. Platform Security (SEC)            SEC30-J. Define wrappers around native methods