TiloGit commented on pull request #608:
URL: https://github.com/apache/logging-log4j2/pull/608#issuecomment-991215492


   > > Can't find much info about it.
   > 
   > grep-ing through the source code for jdk-11.0.1 we get 
`src/java.naming/com/sun/jndi/ldap/VersionHelper.java: PrivilegedAction<String> 
act = () -> System.getProperty("com.sun.jndi.ldap.object.trustURLCodebase", 
"false");` and 
`src/jdk.naming.rmi/com/sun/jndi/rmi/registry/RegistryContext.java: 
PrivilegedAction<String> act = () -> System.getProperty( 
"com.sun.jndi.rmi.object.trustURLCodebase", "false"); ` So I'm guessing 
jdk-11.0.1 and later set these properties to false by default. _Edit: 
formatting_
   
   any easy way to check the default value of a JRE? 
   like this: 
   ```java
   System.out.println("CVE check for com.sun.jndi.ldap.object.trustURLCodebase: 
" + prop.getProperty("com.sun.jndi.ldap.object.trustURLCodebase"));
   ```
   see my Q here: https://stackoverflow.com/q/70308808/1747983
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to