Issue
- We've run a security scan and it is picking up outdated components inside the .cp/lib/ subfolder of the osgi/state/ folder, and it is confusing our compliance efforts.
Environment
- Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4
Resolution
-
This behavior is likely caused by an outdated plugin or module and to determine which one is out of date, you can run
lbin GoGo Shell and look for the bundle that is associated with the folder containing the /.cp/lib subfolder. This should show the bundles depending on the outdated version that was detected. - For example, an outdated log4j-1.2.17.jar is detected in the below physical address:
osgi/state/org.eclipse.osgi/1090/0/.cp/lib/log4j-1.2.17.jarThe component that was causing the issue, was found to be associated with the1090folder, which as shown in the address above, contained the .cp/lib/ and the vulnerable component folder.
The folder numbers are likely to differ, however using thelbcommand would allow you to find the folder containing the.cp/libfolder and the bundle responsible for calling it.
Make a note of the bundle that is associated with that folder number. You can then open a Support Ticket and notify support of the name of the suspected component.
If you are unable to find the matching component in question, you can attempt the following steps:
1. Stop your server
2. Delete the osgi/state folder
3. Restart Liferay
4. Runlbin GoGoShell
Additional Information:
How to verify that a Log4j patch has resolved all log4j vulnerabilities.