SkySwimmer opened a new pull request #633:
URL: https://github.com/apache/logging-log4j2/pull/633


   I have completely removed JNDI from the Interpolator, so that the 
CVE-2021-44228 exploit will not be able to call LDAP.
   
   ```java
   // Interpolator.java (org.apache.logging.log4j.core.lookup.Interpolator)
   // ...
            strLookupMap.put("base64", new Base64StrLookup());
            strLookupMap.put("lower", new LowerLookup());
            strLookupMap.put("upper", new UpperLookup());
   -        // JNDI
   -        if (JndiManager.isJndiEnabled()) {
   -            try {
   -                // [LOG4J2-703] We might be on Android
   -                strLookupMap.put(LOOKUP_KEY_JNDI,
   -                        
Loader.newCheckedInstanceOf("org.apache.logging.log4j.core.lookup.JndiLookup", 
StrLookup.class));
   -            } catch (final LinkageError | Exception e) {
   -                handleError(LOOKUP_KEY_JNDI, e);
   -            }
   -        }
   // ...
   ```
   
   I hope this helps.
   \- Sky Swimmer - AerialWorks Software Foundation


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to