# Pre-auth typed deserialization instantiation

Unauthenticated endpoints feeding typed or object-graph parameters into a deserializer

_Area: Web injection and code execution. Seen in 2 disclosed reports; latest 2026-11-05. Updated 2026-11-21._

## How it works
A deserializer is handed a parameter whose declared type is a class, interface, or object graph, not a scalar. The serializer is expected to rebuild that type from attacker-supplied bytes. If the type system lets the payload name its own concrete class (or wrap one in a generic container), the attacker chooses what gets constructed and populated. Constructors, setters, and type converters then run attacker-chosen code paths before any authorization check on the endpoint's business logic. The broken assumption is that "the parameter is typed, so the input is constrained" — typing constrains the shape, not the class the payload instantiates.

## Where it shows up
- Endpoints reachable before authentication that accept a serialized blob, a `__type`/class-name field, or a JSON object mapped to a polymorphic base type.
- .NET `LosFormatter`/`BinaryFormatter`/`ObjectStateFormatter` use, or `ObjectDataProvider`/`ExpandedWrapper`-style gadget names appearing in payloads [E2](https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md)[E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).
- Java JSON/RPC endpoints that instantiate parameters by declared type name supplied in the request [E1](https://bugbountylibrary.com/r/blog%3Avsrc-vng-com-vn-blog-liferay-revisited-a-tale-of-20k.md).
- ViewState or machineKey-signed blobs trusted without validating the signer [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).
- Auth gates that key off a header (Referer, path prefix) rather than a session [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).

## How to review
Find every deserialization sink on a pre-auth route and ask: can the payload select the concrete type? The invariant that must hold is that the set of instantiable types is a closed allowlist fixed by the server, and no attacker-controlled string reaches a type resolver, binder, or `Type.GetType`-equivalent. Check that the auth check runs before deserialization, not after. For signed blobs, confirm the key is per-deployment and not derivable from anything the attacker can read.

## How finders spotted it
- Noticed a `;` on a jkstatus endpoint, then read all 84 load-balancer routing maps and spotted a `/group/control_panel*` wildcard, hypothesizing that an encoded `..;` would pass the WAF undecoded but be normalized by the backend [E1](https://bugbountylibrary.com/r/blog%3Avsrc-vng-com-vn-blog-liferay-revisited-a-tale-of-20k.md).
- Correlated a vulnerability-fingerprint request with later exploitation on the same endpoint, and read loader events for `ObjectDataProvider`/`ExpandedWrapper` strings to confirm deserialization [E2](https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md).
- After a patch, reproduced the original chain and re-tested the same endpoint with alternate header values to see if the core logic still trusted forged input [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).

## Variants seen
- Typed parameter instantiation in a JSON web-service API reached through proxy/WAF path confusion [E1](https://bugbountylibrary.com/r/blog%3Avsrc-vng-com-vn-blog-liferay-revisited-a-tale-of-20k.md).
- .NET formatter deserialization in a web-part endpoint, fileless, inside the worker process [E2](https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md).
- Auth bypass via forged header chained to the same deserialization sink, then machineKey theft for persistence [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).

## Why fixes fail
Both SharePoint issues were incomplete fixes of earlier CVEs; the same core logic was bypassed with new header values and the machineKey trust still allowed forged signed payloads [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md).

## Impact and severity
Pre-auth RCE. In Liferay it turned a low-severity info leak into full compromise, paid $20k [E1](https://bugbountylibrary.com/r/blog%3Avsrc-vng-com-vn-blog-liferay-revisited-a-tale-of-20k.md). In SharePoint it gave code execution in the IIS worker, escalated to SYSTEM, and enabled ransomware staging [E2](https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md), and web-shell key extraction upgraded to persistent unauthenticated RCE [E3](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md). Impact rose with each chained weakness: proxy bypass, wildcard routing, and key theft.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Microsoft SharePoint** (ToolPane endpoint) (version not stated): The SOC Files 5: Ghost in the pipeline, or a fileless SharePoint breach by Storm-2603 (CVE-2025-53770, CVE-2025-53771). Report: https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md
- **Microsoft SharePoint Server** (ToolPane.aspx) (version not stated): SharePoint Vulnerabilities (CVE-2025-53770 & CVE-2025-53771): Everything You Need to Know (CVE-2025-53770, CVE-2025-53771). Report: https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Avsrc-vng-com-vn-blog-liferay-revisited-a-tale-of-20k.md
- E2: https://bugbountylibrary.com/r/blog%3Asecurelist-com-storm-2603-fileless-toolshell-attack-121467.md
- E3: https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sharepoint-vulnerabilities-cve-2025-53770-cve-2025-53771-everything-you-need-to-k.md
