Skip to main content
LowCookiesOWASP A05:2021CWE-200

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

  1. 1Confirm the NetScaler persistence configuration uses encrypted or securely hashed server identifiers, not plaintext IP encoding.
  2. 2Restrict which backend details are derivable from a client-visible cookie regardless of encoding.

Code examples

Reference

text
# 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.

See every cookies check

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.

Propose a checkHow a check is built

Scan your own site for citrix netscaler cookie may expose internal server

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

Citrix NetScaler Cookie May Expose Internal Server | VulnRadar