← Lab /Security & privacy

Hardcoded keys let attackers forge auth tokens, enumerate data, and execute code via ViewState

CargoWise WebTracker’s hard-coded 3DES/AES keys and static machineKey enable unauthenticated attackers to bypass authentication, enumerate contacts and shipments, retrieve any document, and achieve remote code execution through forged ViewState.

Security & privacy Assetnote / Searchlight 25 Jun 2026 Attack Real-world evidence

Published as “CargoWise WebTracker – The Keys Were in the Cargo”

Why it matters

An attacker can fully compromise any CargoWise WebTracker deployment, access all shipment data, and execute arbitrary code on the server.

Summary

The researchers reverse-engineered CargoWise WebTracker and found hard-coded 3DES and AES keys used for encrypting auto-login tokens and handler parameters. Using the 3DES key they can create arbitrary authentication tokens that log in as any user, and the forged session persists across .axd handlers, allowing enumeration of all organizations, contacts, and shipment documents. A static ASP.NET machineKey also lets them forge ViewState for the unauthenticated login page, and by chaining two ysoserial.net payloads they can disable the .NET 4.8 deserialization filter and achieve remote code execution. The evidence includes source code excerpts, PoC scripts, and successful HTTP interactions against a live deployment.

What they found 3

  1. Two hardcoded symmetric keys protect the entire application

    “Two hardcoded symmetric keys protect the entire application.”

  2. Authentication cookie is set even for non-existent contacts

    “FormsAuthentication.SetAuthCookie() is called regardless - even for a non-existent contact.”

  3. Static machineKey enables forging of ViewState for unauthenticated RCE

    “The machineKey is used by ASP.NET to encrypt and sign ViewState - the serialized page state sent to the client as a hidden form field on every page load. If an attacker knows the machineKey , they can forge ViewState containing arbitrary serialized objects.”

Caveats 2

  • Each Stage 1 disable only affects one IIS worker process. If the Stage 2 request is routed to a different worker, the type filter is still active and the payload fails silently.
  • The CWWeb fallback session (from the dummy GUID) kills the session after any .aspx page renders, restricting us to handler endpoints.

What’s new here 4

  • Discovery of hard-coded symmetric keys that protect the entire WebTracker application
  • Authentication bypass via forged AutoLogin tokens and persistent sessions across handlers
  • Full enumeration of organizations, contacts, and shipment documents using encrypted handler parameters
  • Unauthenticated remote code execution through a static machineKey and ViewState deserialization