Skip to content

honypot/CVE-2021-44228

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CVE-2021-44228

Dockerfile docker-compose

This is the deployment for Spring Boot app with Apache Log4j2 that is vulnerable to CVE-2021-44228 either using docker-compose or Podman.

Description:

Apache Log4j2 <=2.14.1 JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoints. An attacker who can control log messages or log message parameters can execute arbitrary code loaded from LDAP servers when message lookup substitution is enabled. From log4j 2.15.0, this behavior has been disabled by default. In previous releases (>2.10) this behavior can be mitigated by setting system property "log4j2.formatMsgNoLookups" to “true” or it can be mitigated in prior releases (<2.10) by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class).

Deployment:

Using docker-compose:

docker-compose up -d

Using podman: (not tested)

sudo podman build -t ahmad4fifz/cve-2021-44228 app/.
sudo podman play kube pods/cve-2021-44228-pod

References:

License

Released under MIT by @ahmad4fifz.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages