Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Gladinet CentreStack/Triofox ASP.NET ViewState Deserialization RCE

IdentifiersCVE-2025-30406CWE-798· Use of Hard-coded Credentials

CVE-2025-30406 is a critical remote code execution vulnerability affecting Gladinet CentreStack through 16.1.10296.56315 and Triofox prior to 16.4.10317.56372. The issue is caused by hardcoded ASP.NET machineKey values present by default in the applications’ configuration files, including portal web.config. Because ASP.NET ViewState integrity and encryption rely on the machineKey, an attacker who knows or obtains the hardcoded key can craft a malicious ViewState payload that passes validation and is deserialized server-side. This results in unsafe deserialization in the CentreStack/Triofox web application and arbitrary command execution. Reporting indicates the flaw was exploited in the wild beginning in March 2025, including requests to /portal/loginpage.aspx and execution via the IIS worker process.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation allows unauthenticated remote code execution in the web application context, typically as the IIS application pool identity such as IIS APPPOOL\portaluser. From there, attackers can run arbitrary commands, stage additional payloads, steal data, establish persistence, and potentially escalate privileges to NT AUTHORITY\SYSTEM, resulting in full server compromise. Multiple reports also note use of the flaw for initial access and follow-on lateral movement.

Mitigation

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

If immediate patching is not possible, remove or replace the hardcoded machineKey values, especially the machineKey defined in portal\web.config. Ensure both root and portal configuration files are reviewed so no legacy hardcoded key remains. Restrict Internet exposure of CentreStack/Triofox portals, limit access to trusted IP ranges, and monitor for exploitation indicators such as Windows Application Event ID 1316 ViewState verification failures, suspicious requests to /portal/loginpage.aspx, and child processes or PowerShell spawned from w3wp.exe.

Remediation

Patch, then assume compromise.

Upgrade affected products to fixed releases. For CentreStack, the minimum fixed version referenced in the provided content is 16.4.10315.56368. For Triofox, the fixed version referenced is 16.4.10317.56372. In addition to patching, update all affected machineKey values in the relevant web.config files; if both root and portal web.config files exist, both must be addressed. The content also notes that Gladinet’s later guidance recommended upgrading to 16.12.10420.56791 or newer and rotating the machine key after patching to invalidate malicious ViewState payloads generated with previously known keys.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 2 / 3 TOTALView more in app
CVE-2025-30406MaturityPoCVerified exploit

This 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.

mchkltDisclosed Jul 31, 2025pythonnetwork
CVE-2025-30406MaturityPoCVerified exploit

This 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.

W01fh4ckerDisclosed Apr 24, 2025csharpxamlnetwork
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

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

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, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware4

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity26

Community discussion across Reddit, Mastodon, and other social sources.