
A Chrome extension for detecting React2Shell vulnerabilities (CVE-2025-55182 & CVE-2025-66478) in web applications
A Chrome extension for detecting React2Shell vulnerabilities (CVE-2025-55182 & CVE-2025-66478) in web applications.
React2Shell Detector is a browser extension that helps security researchers and web developers identify potential React2Shell vulnerabilities in web applications. The extension sends safe detection payloads to target URLs and analyzes the responses to determine if the application is vulnerable.
This project is inspired by and based on the react2shell-scanner Python script by Assetnote, reimplemented as a Chrome extension for easier browser-based scanning.
The extension will be available on the Chrome Web Store soon.
Clone the repository
git clone https://github.com/xiaopeng-ye/react2shell-detector.git
cd react2shell-detector
Install dependencies
pnpm install
Build the extension
For development (with hot-reload):
pnpm dev
For production:
pnpm build
Load the extension in Chrome
chrome://extensions/build/chrome-mv3-devbuild/chrome-mv3-prodPin the extension (optional)
Open the extension
Scan a URL
Review results
View details
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 .
This project uses Prettier with the following conventions:
Always format your code before committing:
pnpm prettier --write .
IMPORTANT: This tool is designed for:
NOT for:
Always obtain proper authorization before scanning any web application.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is built upon the excellent research and work by Assetnote. The core detection logic is adapted from their react2shell-scanner Python script.
This project is licensed under the MIT License - see the LICENSE file for details.
This tool is provided for educational and authorized security testing purposes only. The authors and contributors are not responsible for any misuse or damage caused by this tool. Always ensure you have proper authorization before scanning any web application.
If you encounter any issues or have questions: