
Firefox extension for detecting and exploiting CVE-2025-55182 — Prototype Pollution RCE in Next.js React Server Actions
A Firefox extension for detecting and exploiting CVE-2025-55182
Prototype Pollution vulnerability in React Server Actions
Features • Installation • Usage • Disclaimer
This tool is for authorized security testing only. Unauthorized access to computer systems is illegal. Only use this tool on systems you own or have explicit written permission to test. The author is not responsible for any misuse of this tool.
R2SAE (React2Shell Auto-Exploit) is a Firefox browser extension that automates the detection and exploitation of CVE-2025-55182 - a critical prototype pollution vulnerability in Next.js React Server Actions that can lead to Remote Code Execution (RCE).
The vulnerability exists in how Next.js handles multipart form data in Server Actions, allowing attackers to pollute object prototypes and achieve arbitrary code execution on the server.
.xpi from Releases.xpi file into the browser windowabout:debuggingmanifest.json)whoami, id, cat /etc/passwd)Affected: Next.js applications using React Server Actions with multipart form data
Root Cause: Insufficient input validation in the form data parser allows prototype pollution through specially crafted form field names
Impact: Remote Code Execution (RCE) on the server
X-Action-Redirect headerwebRequest API and decodes output------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
{"then":"$1:__proto__:then","status":"resolved_model",...}
------WebKitFormBoundaryx8jO2oVc6SWP3Sad--
extension/
├── manifest.json # Extension configuration
├── background.js # Exploit logic & webRequest handlers
├── popup.html # Extension popup UI
├── popup.css # Styles
├── popup.js # UI logic & event handlers
└── icons/
├── icon-48.png
└── icon-96.png
The extension requires these permissions:
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSE file for details.
⚠️ Use responsibly. For authorized security testing only. ⚠️
| Permission | Purpose |
|---|
<all_urls> | Send exploit payloads to any target |
webRequest | Capture response headers for output |
webRequestBlocking | Modify request headers (CORS bypass) |
storage | Save settings locally |
clipboardWrite | Copy output to clipboard |
activeTab | Detect current tab URL |
tabs | Access tab information |