How to fix: Citrix NetScaler Cookie May Expose Internal Server
A Citrix NetScaler/ADC persistence cookie (NSC_* or citrix_ns_id) was observed, which can encode backend server details depending on configuration.
Why it matters
If the deployment uses legacy plaintext cookie persistence rather than the default obfuscated/hashed form, the cookie can reveal the internal backend server's IP and port to anyone who receives it.
NetScaler's cookie-based server persistence stores an identifier for the selected backend server in the cookie. Modern default configurations obfuscate this value, but legacy or misconfigured deployments can still expose it in a decodable form.
How to fix it
- 1Confirm the NetScaler persistence configuration uses encrypted or securely hashed server identifiers, not plaintext IP encoding.
- 2Restrict which backend details are derivable from a client-visible cookie regardless of encoding.
Code examples
Reference
# Verify persistence cookie mode in the Citrix ADC configuration:
# show lb group <name>
# Ensure cookie persistence is not using plaintext server encoding.References
Detected automatically by VulnRadar. The check id is netscaler-cookie-exposes-internal-server, stable across every scan so you can filter or diff on it.
More cookies checks
- LowCookie Domain Attribute Is Too Broad
- LowCookie Missing Secure Attribute
- InfoThird-Party Cookie Missing Partitioned Attribute
- High__Host- Prefix Cookie Missing Secure Attribute
- High__Host- Prefix Cookie with Non-Root Path
- High__Secure- Prefix Cookie Missing Secure Attribute
- LowCookie Expires/Max-Age Exceeds 1 Year
- InfoCookie Name Leaks Framework or Language
Questions
- How severe is Citrix NetScaler Cookie May Expose Internal Server?
- VulnRadar rates this low severity in the cookies category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
- Does VulnRadar check for this automatically?
- Yes. It runs as part of every scan under the check id netscaler-cookie-exposes-internal-server, which stays the same between runs so you can filter, diff, or gate CI on it.
- Which standards does Citrix NetScaler Cookie May Expose Internal Server map to?
- It maps to CWE-200. In the OWASP Top 10 it falls under A05:2021.
Missing a check?
The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.