Stuff about doPrivileged and passing null as second option
System.setSecurityManager(null);
Issues caused because of not checking for null, leading to compromise.