Skip to content
RCE Write-up Intermediate

react2shell A Bootstrap Startup Perspective

A startup's Next.js front-end container was repeatedly killed after an exploit attempted to run a cryptojacking payload through the React2Shell vulnerability. The attack failed because the container lacked curl and outbound traffic monitoring terminated it.

Suntouched Follow

Published on systemweakness.com

This post makes a bit of a tangent from our typical “my startup life” story posts. I decided to talk about how we experienced React2Shell.

Suntouched, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a vulnerability in the React2Shell framework itself allowed remote command execution, though the text does not explain the technical flaw.

Impact

The attack could have installed a crypto miner and run malicious scripts, but it was blocked by the lack of curl and by monitoring that killed the container.

What the attacker needed

Next.js application; React2Shell vulnerability present; Container without curl; Outbound traffic monitoring

The fix

The exploit was mitigated by minimal container privileges (no curl) and outbound traffic monitoring; the text does not state whether the framework vulnerability itself was patched.

How it was found

  1. The front-end container started, ran briefly, then was killed repeatedly.
  2. Logs showed a base64-encoded command attempting to download and run scripts.
  3. The payload tried to install a crypto miner and fetch additional malicious scripts.
  4. The container lacked curl, so the downloads failed.
  5. Outbound traffic monitoring detected the attempts and killed the container.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A popular web framework had a serious security hole that let attackers run commands on servers. The startup's server was targeted, but because it didn't have a common download tool installed and had monitoring that killed suspicious containers, the attack didn't succeed.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.