Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-30406: Hardcoded machineKey ViewState RCE in Gladinet CentreStack and Triofox

Published Apr 3, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS94.7%100th percentile
CISA KEVYesAdded Apr 8, 2025
In the wildActivePer CISA KEV
Vendor
Gladinet
IdentifiersCVE-2025-30406CWE-321 · Use of Hard-coded Cryptographic Key

CVE-2025-30406 affects Gladinet CentreStack and Triofox through hardcoded ASP.NET machineKey values used to protect ViewState integrity. An attacker who knows the key can forge a malicious serialized ViewState payload that passes integrity verification and executes arbitrary code during server-side deserialization. CentreStack versions below 16.4.10315.56368 and Triofox versions below 16.4.10317.56372 are affected. Exploitation was observed in the wild beginning in March 2025.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation enables arbitrary command execution with the privileges of the IIS application pool identity, compromising the affected application's security boundary. Observed post-exploitation activity included PowerShell execution, remote access tool deployment, and lateral movement. Further privilege escalation can lead to full server compromise, but SYSTEM-level execution is not established as an intrinsic result of this vulnerability.

Mitigation

If you can’t patch tonight, do this now.

Where immediate upgrading is unavailable, replace the hardcoded machineKey values in all affected root and portal web configurations, or remove the portal machineKey entry as applicable. Restrict access to the services and enforce least privilege for IIS application pool identities. Monitor application logs for Event ID 1316 ViewState verification failures and investigate unexpected shell or PowerShell processes spawned by IIS worker processes. Key rotation invalidates forged ViewState payloads created with previously exposed keys.

Remediation

Patch, then assume compromise.

Upgrade CentreStack to version 16.4.10315.56368 or later and Triofox to version 16.4.10317.56372 or later. Verify that previously hardcoded machineKey values have been replaced or removed; patch installation alone has left some deployments vulnerable when existing keys were retained. Rotate affected keys across both root and portal web configurations where present. Later vulnerabilities can disclose replacement keys and restore the ViewState attack path, so also apply current vendor updates addressing related flaws.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
gladinet_viewstate_deserialization_cve_2025_30406.rbThis repository contains a single Metasploit module targeting CVE-2025-30406, a critical ViewState deserialization vulnerability in Gladinet CentreStack and Triofox web applications for Windows. The exploit leverages a hardcoded machineKey found in the IIS web.config file, allowing attackers to forge ViewState payloads that pass integrity checks. By sending a specially crafted ViewState parameter to the '/portal/loginpage.aspx' endpoint, the module achieves remote code execution (RCE) on vulnerable servers. The module is weaponized, supporting arbitrary command execution via the Metasploit payload system. The code is written in Ruby and follows standard Metasploit module structure, with clear separation of check, exploit, and payload generation logic. The exploit is network-based and requires the target application to be accessible over HTTP/HTTPS. No static IPs or domains are hardcoded; the main fingerprintable endpoint is the application path and the use of the hardcoded machineKey in the configuration file.Disclosed Apr 3, 2025 · Framework: metasploit · ruby · networkWeaponizedCVE-2025-30406This repository provides a working exploit for CVE-2025-30406, a critical remote code execution vulnerability in Gladinet CentreStack and Triofox (tested on version 16.1.10296.56315 for Windows). The exploit is implemented in C# (.NET 4.7.2) and generates a malicious ViewState payload containing a serialized XAML object (rce.txt) that triggers arbitrary command execution on the target server. The main entry point is Program.cs, which handles ViewState generation and signing. The README provides usage instructions, including how to use ysoserial.net to generate payloads and target the vulnerable endpoint (/portal/loginpage.aspx). The exploit requires knowledge of the ViewState validation key, which is provided in the README for demonstration. The payload can be customized to execute arbitrary commands, either by modifying the XAML or by sending a custom 'cmd' HTTP header. The repository also includes references to public advisories and detection templates. No evidence of fake or detection-only code was found; this is a functional exploit for RCE via .NET deserialization.W01fh4cker · Disclosed Apr 24, 2025 · csharp · xaml · networkOperationalCVE-2025-30406This repository is a Proof-of-Concept (PoC) exploit for CVE-2025-30406, a ViewState deserialization vulnerability in ASP.NET applications. The exploit consists of two main Python scripts: 1. 'exploit.py' is the primary exploit script. It uses ysoserial to generate a malicious ViewState payload with a hardcoded validation key and generator. The payload executes an arbitrary command on the target server. If a callback URL is provided, the command is wrapped in PowerShell to send its output to an attacker-controlled HTTP server via HTTP GET. The script sends the payload to a user-specified vulnerable ASP.NET endpoint via POST, embedding it in the '__VIEWSTATE' parameter. 2. 'server.py' is a simple HTTP server that listens (by default on port 8000) for GET requests containing exfiltrated command output. It displays the output in a styled format with timestamps and colored prompts for readability. The repository also includes a detailed README.md with setup, usage instructions, and ethical warnings. The exploit requires the attacker to know the ViewState validation key and generator for the target application, and to have ysoserial available. The exploit is a POC and not weaponized, as it requires manual setup and hardcoded values. The main attack vector is network-based, targeting vulnerable ASP.NET endpoints over HTTP. Fingerprintable endpoints include the target ASP.NET URL and the attacker's callback server for exfiltration.mchklt · Disclosed Jul 31, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GladinetCentrestackapplication
FAQ

Frequently asked questions

Is CVE-2025-30406 exploited in the wild?
Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Apr 8, 2025.
Is there a public exploit for CVE-2025-30406?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-30406, the earliest disclosed Apr 3, 2025.
Is there a patch for CVE-2025-30406?
Upgrade CentreStack to version 16.4.10315.56368 or later and Triofox to version 16.4.10317.56372 or later. Verify that previously hardcoded machineKey values have been replaced or removed; patch installation alone has left some deployments vulnerable when existing keys were retained.
What products are affected by CVE-2025-30406?
Gladinet Centrestack.
How severe is CVE-2025-30406?
CVE-2025-30406 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 94.7% (100th percentile) as of Oct 9, 2026.
Activity feed

Recent activity

50 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+15 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware4Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity30Community discussion across Reddit, Mastodon, and other social sources.