Log4j vulnerability on ColdFusion 2018
Dear all,
I'm trying to solve the vulnerability in object, following the guide at Log4j vulnerability on ColdFusion (adobe.com), but there are step not clear to me (in red my doubts):
ColdFusion (2018 release)
ColdFusion 2018 ships with log4j 2.13.3 and/or 2.9.0, and log4j 1.2. The former is impacted by this vulnerability, while the latter (that is, v1.2) is not impacted.
Stop the server.
Navigate to the directory <cf_root>\<Instance_name>\bin.
Open jvm.config file and add -Dlog4j2.formatMsgNoLookups=true argument in java.args section. Save the file.
Done
Copy the patched log4j-core-2.9.0.jar file with JNDILookUp class that you have removed.
Removed? I didn't remove anything until now. And copy where?
The new file can be downloaded from here. If you find log4j-core-2.9.0.jar, move the file to a temporary location. If not found, skip this step.
If I find it... if not found... Where do I need to look for rit?
The temporary location must be outside ColdFusion's lib directory or classpath, in general. You can place it outside ColdFusion's root directory.
If you are using any third-party libraries that use log4j2, and hence vulnerable, search for log4j-core in <cf_root> directory. If log4j2 version (<= 2.10 and >=2.0-beta9) is found, remove the JndiLookup class from the classpath as mentioned below, otherwise skip this step:
- If the Operating System is Windows, then unzip the log4j-core-2.x.jar file and remove the class from path : org/apache/logging/log4j/core/lookup/JndiLookup.class and zip the log4j-core-2.x.jar. X is the version number that you found in the folder. In the LIB folder I found the log4j-core-2.13.3 version, Do I need to open it and remove the jndiLookup.class file? And after re-zip and put the library again in the lib folder? Why did I downloaded the log4j-core-2.9.0.jar?
2. If the Operating Systems is non-Windows, then remove the JndiLookup class from the classpath : "zip -q -d log4j-core-2.x.jar org/apache/logging/log4j/core/lookup/JndiLookup.class". X is the version number that you found in the folder.
Restart the instance and delete log4j-core-2.9.0.jar from the temporary location.
Repeat the procedure for all other instances.
Thanks for the support
