一款用于检测 Web 应用程序中 React2Shell 漏洞(CVE-2025-55182 和 CVE-2025-66478)的 Chrome 扩展。
React2Shell Detector 是一款浏览器扩展,可帮助安全研究人员和 Web 开发人员识别 Web 应用程序中潜在的 React2Shell 漏洞。该扩展会向目标 URL 发送安全的检测 payload,并分析响应以判断应用程序是否存在漏洞。
本项目受 Assetnote 的 react2shell-scanner Python 脚本启发并以其为基础,重新实现为 Chrome 扩展,以便在浏览器中更便捷地进行扫描。
该扩展即将在 Chrome 网上应用店上架。
克隆仓库
git clone https://github.com/xiaopeng-ye/react2shell-detector.git
cd react2shell-detector
安装依赖
pnpm install
构建扩展
开发模式(支持热重载):
pnpm dev
生产构建:
pnpm build
在 Chrome 中加载扩展
chrome://extensions/build/chrome-mv3-devbuild/chrome-mv3-prod固定扩展(可选)
打开扩展
扫描 URL
查看结果
查看详情
react2shell-detector/
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ ├── ScanForm.tsx # URL input and scan button
│ ├── ScanResult.tsx # Results display
│ └── ...
├── lib/ # Core logic
│ ├── detector.ts # Vulnerability detection logic
│ ├── payload.ts # Payload generation
│ ├── types.ts # TypeScript type definitions
│ └── utils.ts # Helper functions
├── styles/ # Global styles
├── popup.tsx # Extension popup entry point
├── background.ts # Background service worker
└── package.json # Project configuration
# Development mode with hot-reload
pnpm dev
# Production build
pnpm build
# Package for distribution
pnpm package
# Format code
pnpm prettier --write .
本项目使用 Prettier,遵循以下约定:
提交前请务必格式化代码:
pnpm prettier --write .
重要提示:本工具适用于:
禁止用于:
在扫描任何 Web 应用程序之前,请务必获得适当授权。
欢迎贡献!请随时提交 Pull Request。
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)本项目基于 Assetnote 的出色研究和工作成果。核心检测逻辑改编自他们的 react2shell-scanner Python 脚本。
本项目采用 MIT 许可证授权——详情请参阅 LICENSE 文件。
本工具仅供教育和经授权的安全测试目的使用。作者和贡献者不对因使用本工具造成的任何滥用或损害负责。在扫描任何 Web 应用程序之前,请务必确保您已获得适当授权。
如果您遇到任何问题或有疑问: