Skip to content

Injection: Apache Log4j2 Remote Code Injection

Identifier: cve_2021_44228

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner

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.

Reference:

Configuration

Example

Example configuration:

---
security_tests:
  cve_2021_44228:
    assets_allowed:
    - REST
    - GRAPHQL
    - WEBAPP
    skip: false

Reference

assets_allowed

Type : List[AssetType]*

List of assets that this check will cover.

skip

Type : boolean

Skip the test if true.