CloudSEK Details React2Keys Campaign Exploiting React2Shell to Harvest Credentials

· Original article ↗

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

CVE

Vendors

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.

Related Articles