Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add protection against CVE-2019-17571 and CVE-2021-4104
This agent is based on https://github.com/corretto/hotpatch-for-apache-log4j2 and extends the agent to be working with Log4J 1.x:
The CVE-2019-17571 --> (Log4j 1.2 is a SocketServer class that is vulnerable to deserialization) & CVE-2021-4104 --> (JMSAppender in Log4j 1.x is vulnerable to deserialization of untrusted data) are patched by emptying the classes that are responsible for the RCE-Exploit.
Thus any exploit attempt is rendered useless.
Java Applications containing vulnerable versions of the Log4J libraries that cannot be upgraded for any reason can be considered safe against the provided CVEs above.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.