rotateit

All incidents

Sitecore sample ASP.NET machine key used for ViewState code execution

Disclosed Sep 3, 2025 · updated Oct 28, 2026 · high · Historical

A public sample key let attackers take over Sitecore servers.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

A published sample machine key exposed Sitecore. Mandiant found an active ViewState deserialization attack on Sitecore deployments that used a sample ASP.NET machine key exposed in Sitecore deployment guides from 2017 and earlier; the attacker used the exposed key for remote code execution (CVE-2025-53690). It affects customers who deployed Sitecore XP 9.0, Active Directory 1.4 and earlier versions with that sample key. After access, the attacker archived the site's configuration files, created local administrator accounts asp$ and sawadmin, dumped the SAM and SYSTEM hives to compromise cached administrator credentials, ran a token-theft tool and searched SYSVOL for cpassword values. Sitecore says updated deployments generate a unique machine key automatically and affected customers were notified. Help Net Security reports Sitecore also flags multi-instance XM, XP and XC deployments with customer-managed static machine keys.

Exposure starts
Not known yet (Mandiant does not say when the attack began)
Exposure ends
Not known yet (exposure lasts until the sample key is replaced)
Confidence
low
Scope
the ASP.NET machine key of every Sitecore XM, XP or XC instance deployed with the sample key (or a shared static key in multi-instance mode), plus secrets in its web.config and local administrator credentials on the server

What to do, in this order

  1. Replace the sample or shared ASP.NET machine key on every Sitecore instance with a unique key

    The attacker used the machine key published in old deployment guides to forge ViewState; Mandiant recommends machine key rotation and Sitecore now generates unique keys.

    anything else stored there

  2. Rotate every plaintext secret in the site's web.config and other configuration files, then encrypt them

    The attacker archived the website directory, which holds web.config; Mandiant recommends encrypting plaintext secrets there. Rotating them is Advisory inference.

    anything else stored there

  3. Remove unknown local administrator accounts and reset local administrator and domain passwords used on the server

    Advisory inference. Mandiant saw accounts asp$ and sawadmin created and the SAM and SYSTEM hives dumped to compromise cached administrator credentials, plus cpassword reconnaissance; it does not say to reset them.

    anything else stored there

Notes

  • Mandiant recommends automated machine key rotation, enabling ViewState MAC, and encrypting plaintext secrets in web.config.
  • Mandiant disrupted the attack early and did not see its full lifecycle.
  • Sitecore's advisory is SC2025-005 (KB1003865); KB1003835 covers protecting the machineKey.

How to tell if you’re affected

  • HTTP POST to /sitecore/blocked.aspx followed by 302 then 200 responses
  • ASP.NET event ID 1316 (ViewState verification failed) in the Application log
  • Local accounts asp$ or sawadmin
  • Files Information.dll (WEEPSTEEL), 7za.exe in C:\Users\Public\Music, lfe.ico, ufp.exe, 1.vbs, helper.exe, sh.exe, GoToken.exe, dwagent.exe or main.exe
  • Connections to 130.33.156.194 (ports 443 and 8080) or 103.235.46.102 (port 80)

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.