1,281 hacked servers had their secrets dumped in public — patching won't un-leak them
React2STEAL commits stolen env files, AWS keys and AI provider keys to public GitHub repos. The patch is the easy half; rotation is the one nobody schedules.
The uncomfortable part of the React2STEAL campaign isn't the hacking — it's the filing system. An automated framework running on GitHub Actions exploits unpatched React/Next.js servers, drains their environment, and then commits the loot back into public repos, where it sat readable by anyone for weeks. The researchers counted at least 1,281 victim hostnames across ~1,100 domains in the latest commits of 34 live repos, and the number is a floor: earlier versions of the result files went unread.
What the flaws are, one line each
Both holes are old news with published fixes — which is exactly the point of this story. React2Shell (CVE-2025-55182) is pre-auth RCE in React Server Components 19.0.0–19.2.0: unsafe deserialization of Server Function payloads, one crafted HTTP request, code execution. CVE-2025-29927 is the Next.js middleware bypass: a request carrying x-middleware-subrequest skips middleware entirely, auth checks included.
| What gets stolen | Why it hurts |
|---|---|
Process environment + full .env/config files (up to 300 KB) | every secret the app ever loaded |
| Database URLs | most common credential type in the dumps |
| Stripe keys | payment infrastructure, no rotation excuses |
| AI provider keys (OpenAI, Anthropic, Gemini…) | tested live from the victim's own server |
| AWS role credentials | via SSRF through /_next/image into instance metadata |
The pipeline itself is worth a grim nod of respect. GitHub's own runners do the scanning — up to 400 concurrent discovery requests, then two exploitation passes at 250 concurrent targets each, seven request variations to slip past filters. The payload validates stolen AI keys by calling the providers from the victim's server, so the test traffic looks like yours; for DeepSeek and OpenRouter keys it even pulls the account balance. Results land as plaintext, JSON and ZIP — three formats, so deleting one file removes nothing — committed by a workflow with write access, roughly every 11 minutes at campaign peak.
The patch closed the door. The keys were already on the kitchen table — public ones.
The timeline nobody planned for
Code comments inside the scripts date back to September 10 — six weeks before the first repos appeared on October 22. Wave two landed November 11 within ~26 seconds of each other; wave three staged with an identical 1,845-host target list. A connected campaign, wfx-loot, has been stealing CI secrets via hijacked accounts since November 10, and most React2STEAL repos carry wfx-loot's probe. This week the story resurfaced in the React newsletters because the repos are still publishing.
- Sep 10Dated code comments — the pipeline ran at volume before it went public.
- Oct 22First wave: 26 repos created within minutes, on hijacked accounts.
- Nov 10–14wfx-loot CI-secret campaign + waves two and three of React2STEAL.
- Nov 17Snapshot: 1,281 hosts, 7.4 GB of loot, commits landing every 11 minutes.
- This weekStill live; the newsletters catch up. Your move.
The twist the coverage keeps under-weighting: the loot is public, which means every attacker is a customer. Whoever wrote this chose an exfiltration channel that anyone can read — maybe for deniability, maybe as a mistake — but the effect is that your database URL doesn't need to find the original operator to be abused. It just needs one person with a browser and a grudge. The kill chain's last mile is someone else's first mile.
- Check request logs for repeated
x-middleware-subrequestheaders and/_next/imagecalls pointing at the cloud metadata address — that's the scanner's signature. - If you find it: rotate every secret the process could reach — not just the ones that look like keys — and treat config files as disclosed.
- Strip or reject
x-middleware-subrequestat your proxy/WAF today; upgrade React Server Components off 19.0.0–19.2.0. - Enforce IMDSv2 so the metadata SSRF reads nothing, and audit AI provider dashboards for usage you didn't cause.
Small print worth knowing
- Most victims are small and mid-sized orgs; many hosts are dev, staging or admin boxes nobody monitors.
- The 44 repo owners look like victims themselves — median 4 public repos, 20 of 26 profiles have no followers, and most accounts overlap with wfx-loot victims.
- The GitHub account tied to the result commits (dascxzcw) is now 404 — suspended or deleted — but its commits remain.
- NEXT_PUBLIC_* variables were already public by design; rotate them regardless — they're in the build.
- Researchers have not tested whether the exposed credentials still work. Assume rotation, not expiry.
The habit to build, beyond this campaign: patching restores the vulnerability's status; rotation restores yours. Those are different workstreams with different owners, and only one of them has a CVE number to point at. If your CI touches secrets, last week's poisoned-GGUF story and this one share a moral — audit what your credentials can see, not just what your code runs.
the radar reads hundreds of sources so you don't have to — the feed · the digest, nightly 21:00