CloudSEK Details React2Keys Campaign Exploiting React2Shell to Harvest Credentials

Summary
CloudSEK reports that its React2Keys investigation mapped an automated React2Shell campaign harvesting and validating credentials from infrastructure linked to 400+ organizations, planting SSH persistence and using stolen cloud access to expand scanning.
Key points
- CloudSEK says the campaign exploits CVE-2025-55182, an unauthenticated remote-code-execution flaw in Next.js Server Actions, using a crafted multipart request and React Flight object.
- The actor reportedly polls six Certificate Transparency logs every three minutes to find new targets, fingerprints Next.js deployments, and attempts to locate unprotected origin servers when edge protections block its payload.
- The harvesting payload searches environment variables and secret files, then pivots into cloud identities, databases, source-code repositories, and secrets vaults using credentials found in compromised environments.
- Stolen keys are reportedly tested against cloud, AI, payment, database, and cryptocurrency services, then scored and prioritized; CloudSEK cites recovered logs and toolkit files as evidence for its analysis.
- CloudSEK reports that the actor plants an SSH public key in authorized_keys for persistence. The report says patching alone is insufficient and recommends rotating exposed credentials and auditing persistence and cloud activity.
- The report says stolen cloud access is used to expand scanning through serverless and virtual-machine workers.
Article Details
- Attack Vectors
- The campaign exploits CVE-2025-55182 with an unauthenticated POST containing a crafted multipart body and weaponized React Flight object; prototype pollution causes attacker JavaScript to execute in the victim's Node.js process.
- The exploit targets Next.js Server-Action-reachable routes and extracts output through the digest field of a thrown error.
- The actor polls public Certificate Transparency logs for newly issued certificates, fingerprints targets for Next.js, and probes them. The article says a module can infer an undocumented Cloudflare IP range to locate origin servers when payloads are blocked at the edge.
- Payloads search environment variables and files such as .env files, cloud credential files, SSH keys, and Kubernetes service-account tokens for secrets.
- Follow-on activity uses stolen or discovered credentials to access cloud identities and services, databases, source-code repositories, secrets vaults, AI services, payment services, and cryptocurrency-related accounts.
- The actor appends an SSH public key to a compromised account's authorized_keys file for persistence.
- The article reports related exploitation chains targeting Odoo via CVE-2026-25137 and WordPress via CVE-2026-63030 and CVE-2026-60137.
- Defensive Notes
- Upgrade React Server Components packages to 19.0.1, 19.1.2, 19.2.1, or later, and upgrade Next.js to a release patched for CVE-2025-55182.
- Rotate credentials and secrets on affected hosts, including cloud, AI-provider, database, registrar, payment, messaging, and secrets-manager credentials.
- Review authorized_keys files for unknown keys, and audit cron jobs and SSH logins for persistence.
- Review Kubernetes service-account usage, EKS Pod Identity and IRSA activity, Azure managed-identity token usage, and IAM role scope.
- Audit AWS CloudTrail, cloud audit logs, and AI-platform usage for unusual calls, new IAM users, Bedrock model-access changes, and unexpected instance deployments.
- Run applications as non-root, isolate per-application secrets, and avoid sharing hosts across applications.
MITRE ATT&CK
T1005 · Data from Local SystemThe payload reads local secret files, including .env files, cloud credential files, and SSH keys.T1059.007 · JavaScriptThe crafted exploit causes attacker JavaScript to execute inside the victim's Node.js process.T1078.004 · Cloud AccountsThe actor validates and uses stolen cloud credentials, including temporary AWS credentials obtained through EKS Pod Identity.T1098.004 · SSH Authorized KeysThe actor appends its SSH public key to a compromised account's authorized_keys file for persistence.T1119 · Automated CollectionAutomated payloads search environment variables and files for credential-shaped values and secrets.T1190 · Exploit Public-Facing ApplicationThe actor exploits the unauthenticated React2Shell vulnerability against exposed Next.js Server Actions.T1528 · Steal Application Access TokenThe actor steals and refreshes victims' Claude Code login tokens.T1552.005 · Cloud Instance Metadata APIThe actor queries cloud instance metadata endpoints and steals Azure managed-identity tokens.T1595.002 · Vulnerability ScanningThe actor fingerprints and probes discovered Next.js hosts, including with exploit attempts.
CVE
CVE-2025-55182Meta · react-server-dom-parcel; Meta · react-server-dom-turbopack; +1 moreThis is a fully automated credential-harvesting operation built on the "React2Shell" vulnerability (CVE-2025-55182), a critical unauthenticated remote code execution flaw in Next.js Server Actions. CVE-2026-25137NixOS · nixpkgsOdoo: the same worker code can switch to an Odoo mode targeting CVE-2026-25137 (an unauthenticated database manager). CVE-2026-60137WordPress · WordPressWordPress: a separate chain targets CVE-2026-63030 and CVE-2026-60137 and shares the harvesting and alerting layer. Of 2,939 hosts scanned, only 4 were confirmed vulnerable. CVE-2026-63030WordPress · WordPressWordPress: a separate chain targets CVE-2026-63030 and CVE-2026-60137 and shares the harvesting and alerting layer. Of 2,939 hosts scanned, only 4 were confirmed vulnerable.
Vendors
Amazon Web ServicesAI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment and registrar credentials, and cryptocurrency custody and exchange keys.Anthropicbecause its goal is to steal, validate, rank and hoard high-value credentials: AI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases,Cloudflarecompromised server's own network. Only about 3% pass. A dedicated module infers an undocumented Cloudflare IP range from failed-probe patterns, to find and attack the unprotected origin server when the payloadGooglegoal is to steal, validate, rank and hoard high-value credentials: AI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment andHetznerReinvestment: HetznerMicrosoft AzureAI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment and registrar credentials, and cryptocurrency custody and exchange keys.OpenAIits goal is to steal, validate, rank and hoard high-value credentials: AI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment and
Products
AWS LambdaA serverless worker that runs on AWS Lambda against the same broker.Azure AI FoundryAzure AI Foundry (hosting Claude/OpenAI)Claude CodeClaude Code (stolen OAuth)EKSAWS: queries the container metadata endpoint, and exchanges a Kubernetes/IRSA token via EKS Pod Identity for live temporary AWS credentials, even when no static key exists.Google Geminiis to steal, validate, rank and hoard high-value credentials: AI provider keys (Anthropic, OpenAI, Google Gemini and others), cloud provider keys and identities (AWS, Azure, GCP), databases, payment and registrarInfisicalValidates LLM keys pulled from a secrets-manager dump (Infisical).MongoDBDatabases: drivers for PostgreSQL, Redis and MongoDB are installed at runtime, and live connections are opened to the victim's own databases.Next.jsThis is a fully automated credential-harvesting operation built on the "React2Shell" vulnerability (CVE-2025-55182), a critical unauthenticated remote code execution flaw in Next.js Server Actions. OpenRouterOpenRouter (hosting Claude)PostgreSQLDatabases: drivers for PostgreSQL, Redis and MongoDB are installed at runtime, and live connections are opened to the victim's own databases.React Server ComponentsPatch. Upgrade React Server Components packages to 19.0.1, 19.1.2, 19.2.1 or later, and move Next.js to a release patched for CVE-2025-55182 per the vendor advisory.RedisDatabases: drivers for PostgreSQL, Redis and MongoDB are installed at runtime, and live connections are opened to the victim's own databases.
