GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - khadafigans/React2Shell: React2Shell - CVE-2025-66478 RCE Exploit

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README.txt
README.txt
 
 
extract.py
extract.py
 
 
main.py
main.py
 
 
pwned.jpg
pwned.jpg
 
 
requirements.txt
requirements.txt
 
 
terminal.jpg
terminal.jpg
 
 

Repository files navigation

πŸ” React2Shell - Next.js RSC Pollution RCE Toolkit

This Python toolkit exploits Next.js React Server Components (RSC) prototype pollution + React.lazy(-1) gadget chain for full RCE access, including interactive god shell, file upload (PHP webshell dropper), and exfiltration via ?out=.

Image Preview

Pwned Terminal

🧾 main.py

πŸ“Œ Purpose

Automated detection & exploitation of vulnerable Next.js apps (e.g., target.com). Drops uid=33(www-data) shell with:

  • RCE via child_process.execSync β†’ /exploit?out=UID
  • God Shell: Interactive cmds, file read (read /etc/passwd), uploads
  • Bypass: Junk KB padding, Unicode, Vercel/WAF tweaks
  • Stealth: Base64 encode, multipart RSC POST

πŸ›  How It Works

  1. Detect: POST {\"0\":null} β†’ 500 E{\"digest confirms RSC handler.
  2. Combos: Test pollution+lazy payloads (junk=0/KB, uni, vercel) β†’ Location: /exploit?out=id_output
  3. Exploit: execSync(cmd) β†’ exfil stdout/stderr via redirect.
  4. Shell: Loop cmds, upload_txt local.txt remote.php β†’ write+rename bypass.
  5. WAF: X-FF=127.0.0.1, Origin/Referer evade BitNinja/nginx.

πŸ“₯ Usage

  1. pip3 install aiohttp
  2. python3 main.py
  3. Enter target(s): http://target.com or targets.txt
  4. Mode: 1=Detect 2=PoC(id) 3=Custom 4=God Shell [4]

Piped: echo \"http://target\n4\" | python3 main.py

God Shell Commands:

upload <local.php> <remote/shell.php>    # Direct PHP upload
upload_txt <local> <remote/shell.php>    # TXT→rename bypass
upload_bin <local> <remote>              # Binaries (chmod later)
help / exit
id / cat /etc/passwd / ls -la /var/www/

πŸ“ Output

  • Vulnerable: React2Shell_Owned/pwned_YYYYMMDD_HHMMSS.txt
  • Screenshots: Banner β†’ [VULNERABLE] β†’ uid=33(www-data)

πŸ“¦ Dependencies

aiohttp

pip install aiohttp

⚠️ Legal Disclaimer

For authorized penetration testing & educational purposes only (user confirmed permission under ToS). Unauthorized use illegal/unethical.

πŸ‘¨β€πŸ’» Author

Bob Marley

Buy me a Coffee:

β‚Ώ BTC: 17sbbeTzDMP4aMELVbLW78Rcsj4CDRBiZh

Β©2025 khadafigans

About

React2Shell - CVE-2025-66478 RCE Exploit

Topics

exploitnextjsrcereact2shellreact2shell-exploitation

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.