Skip to content
Memory corruption Write-up Advanced

Analysis of CVE-2023-3519 in Citrix ADC and NetScaler Gateway

A missing bounds check in the SAML authentication request parser of Citrix ADC and NetScaler Gateway allows an attacker to write past a fixed-size array, corrupting memory. This can cause segfaults and potentially lead to remote code execution, though the researchers have not yet demonstrated RCE.

Dylan Pindur Follow

Published on blog.assetnote.io

In the last week, Citrix have released an advisorywhich included a fix for a critical RCE vulnerability within Citrix ADC and NetScaler Gateway. There have been indications that the exploit for this has been sold on the internet since some time in June, however this advisory solidified the presence of a real…

Dylan Pindur, Shubham Shah (@infosec_au), on blog.assetnote.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

Context

Citrix ADC and NetScaler Gateway are the appliances in scope here. In July 2023 Citrix published an advisory covering CVE-2023-3519, CVE-2023-3466 and CVE-2023-3467, which included a fix for a critical remote code execution vulnerability in those products. There had been indications that an exploit for the issue had been sold on the internet since some time in June, and the advisory confirmed that a real vulnerability existed.

The analysis below focuses on the SAML processing components of the appliance. SAML is the single sign-on protocol the gateway uses to accept authentication assertions from an identity provider; the appliance parses an incoming SAMLRequest or SAMLResponse, validates its signature, and extracts the details it needs to authenticate the user. The function at the centre of this work is ns_aaa_saml_parse_authn_request, which parses the SAML payload into a struct holding the relevant details.

The authors note that they did not yet have a working exploit chain at the time of writing. What they did have was a detection mechanism they consider higher signal than relying on Last-Modified dates or scraping version numbers from /vpn/pluginlist.xml. The research was carried out by the Assetnote team (Dylan Pindur and Shubham Shah) as part of building detections for their Attack Surface Management platform, following earlier work on Citrix that led to CVE-2023-24488.

Two caveats are stated up front in the post. First, Citrix notified the authors that the patches cover more than one vulnerability, and that the issue identified in the post may not be the only one; there is a possibility that a pre-auth RCE exists without SAML being enabled. Second, the authors' own analysis at that point indicated that SAML has to be enabled for exploitation, and they said this may change as reverse engineering continued. A follow-up post (Part 2) later covered the endpoint being used by threat actors.

Setup

To compare patched and unpatched code, the researchers needed both versions running, which meant obtaining evaluation licences. The Citrix website does not make it obvious where to register an account, which is necessary to claim the licences. They registered a Citrix account through:

Text
https://onboarding.cloud.com/

After registering, they claimed an evaluation licence through:

Text
https://www.citrix.com/en-au/downloads/citrix-adc/virtual-appliances/netscaler-vpx-developer-edition.html

The process has to be repeated twice to obtain two evaluation keys, one for the patched instance and one for the unpatched instance.

With copies of each version in hand, they generated a BinDiff file for the nsppe binaries and compared them. Roughly fifty functions differed, and they investigated each one.

Finding it

The investigation led to ns_aaa_saml_parse_authn_request, where an error log had been added in the patched version. From the message it sounded like a check had been added to ensure a list of canonicalization methods did not exceed a maximum value. The suspicion was that in the unpatched version it is possible to exceed this limit.

The authors credit Ron Bowes' analysis on AttackerKB, which reached a similar conclusion.

In ns_aaa_saml_parse_authn_request the SAML payload is parsed into a struct containing the relevant details. The researchers believe this struct includes a fixed array of canonicalization method values. Each time the parser sees a new CanonicalizationMethod tag, it checks the Algorithm attribute against a list of supported algorithms and adds an associated enum value to the array. In the unpatched version there is no bounds check, so it is possible to write off the end of the array, corrupting the rest of the struct and any allocated memory that follows.

Because the parser checks the Algorithm attribute and writes a corresponding enum value, the researchers were only able to write the bytes 0x3 or 0x2 into this buffer. Through this they could cause segfaults and corrupt memory, but they had not been able to demonstrate RCE at that point.

The behaviour can only be triggered if SAML is enabled. When SAML is not enabled, requests appear to be stopped pretty early in the chain. The authors stress this is not a final assessment: there may be different entry points that do not require SAML, and neither the Citrix advisory nor any public information so far mentions the requirement of SAML being enabled.

Exploitation

Step 1: Build an error oracle from the patched and unpatched responses

Based on the responses returned by Citrix, the researchers could determine whether an instance may be vulnerable. The three states produce three distinct error messages:

State Response
SAML disabled Matching policy not found while trying to process Assertion; Please contact your administrator
SAML enabled, patched Unsupported mechanisms found in Assertion; Please contact your administrator
SAML enabled, unpatched SAML Assertion verification failed; Please contact your administrator

The oracle works by sending a POST request to /saml/login where the SAML assertion contains 11 instances of CanonicalizationMethod, whereas the maximum permitted on patched instances is 10. The check does not cause any disruption on the instance, and the difference between an unpatched and a patched instance shows clearly in the error messages.

Step 2: Send the request

The following request triggers the SAML Assertion verification failed; Please contact your administrator error message on unpatched instances:

HTTP
POST /saml/login HTTP/1.1Host: 192.168.1.225Connection: closeContent-Length: 3150Content-Type: application/x-www-form-urlencodedSAMLRequest=[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%2BCiAgICA8L2RzOlNpZ25lZEluZm8%[redacted]%2BQTwvZHM6U2lnbmF0dXJlVmFsdWU%2BCiAgPC9kczpTaWduYXR1cmU%[redacted]%3D

The request is a form-encoded POST to /saml/login carrying a base64-encoded SAMLRequest. Decoded, the assertion contains a ds:Signature block whose ds:SignedInfo holds 11 ds:CanonicalizationMethod elements, each with the same Algorithm value:

On unpatched instances, you can include as many instances of CanonicalizationMethod as you like, and all of them are parsed, before the flow fails because the SAML assertion has an incorrect signature. On patched instances, the code assumes something is wrong before it reaches the verification step, and returns the Unsupported mechanisms found in Assertion message instead.

Step 3: Interpret the result

A response of SAML Assertion verification failed means the instance is unpatched and SAML is enabled. Unsupported mechanisms found in Assertion means it is patched. Matching policy not found while trying to process Assertion means SAML is disabled, and the request was stopped early.

Step 4: Check the other SAML endpoints

The researchers also discovered the endpoints /cgi/samlauth, /saml/activelogin, /cgi/samlart?samlart= and /cgi/logout, which expect a SAMLResponse. Based on their testing, these endpoints also require SSO to be configured in order to exploit the vulnerability. At the time of writing they had not discovered an endpoint that allows exploitation without SAML being enabled.

Root cause

The parser in ns_aaa_saml_parse_authn_request stores canonicalization method values in a fixed-size array inside a struct. For each CanonicalizationMethod tag it validates the Algorithm attribute against a list of supported algorithms and appends the corresponding enum value to the array, without a bounds check in the unpatched version. Supplying more tags than the array can hold writes past its end, corrupting the remainder of the struct and any allocated memory that follows.

The write is constrained: because the value written is the enum for a recognised algorithm, only the bytes 0x3 or 0x2 can be placed into the buffer. That is enough to cause segfaults and memory corruption, but the authors had not demonstrated RCE from it. The patched version adds a check that the list of canonicalization methods does not exceed a maximum value, and logs an error when it does.

The reason the issue is reachable only with SAML enabled is that requests appear to be stopped early in the chain otherwise. The authors note that the Citrix advisory and all public information so far do not mention this precondition.

Impact

On an instance with SAML enabled and without the patch, an attacker can send a crafted SAMLRequest to /saml/login and write past the end of the canonicalization method array, corrupting the rest of the struct and any allocated memory that follows. In the researchers' testing this produced segfaults and memory corruption. They had not achieved remote code execution at the time of writing, and they explicitly frame their analysis as incomplete, with the possibility of other entry points that do not require SAML. The advisory covers a critical RCE, and there had been indications that an exploit was sold before the advisory, but the write-up itself does not demonstrate a full chain.

Fix

Citrix fixed the issue in the advisory covering CVE-2023-3519, CVE-2023-3466 and CVE-2023-3467. In the patched nsppe binary, ns_aaa_saml_parse_authn_request adds a check that the list of canonicalization methods does not exceed a maximum value and logs an error when it does; the oracle test shows 10 is the maximum permitted on patched instances. The authors also note that Citrix told them the patches cover more than one vulnerability, and that the issue identified in their post may not be the only one.

For defenders who cannot patch immediately, the error oracle above gives a way to identify exposed, SAML-enabled instances without disrupting them, and the authors published a detection script at:

Text
https://github.com/assetnote/exploits/tree/main/citrix/CVE-2023-3519

Variants to test

  1. Send a SAMLRequest to /saml/login with 11 CanonicalizationMethod elements and compare the error message. A response of SAML Assertion verification failed; Please contact your administrator indicates an unpatched, SAML-enabled instance; Unsupported mechanisms found in Assertion indicates patched; Matching policy not found while trying to process Assertion indicates SAML is disabled.
  2. Repeat the same request against /cgi/samlauth, /saml/activelogin, /cgi/samlart?samlart= and /cgi/logout with a SAMLResponse, to see whether any of them parse the assertion before enforcing SSO configuration.
  3. Vary the Algorithm attribute across the supported values and observe whether the written enum changes the corruption pattern (the authors saw only 0x2 and 0x3).
  4. Increase the number of CanonicalizationMethod elements well beyond 11 and watch for a segfault or a dropped connection on an unpatched instance.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 16 min read.

What happened, in plain words

In July 2023 the company Citrix published a security notice about three flaws in two of its products, Citrix ADC and NetScaler Gateway. One of those flaws, tracked as CVE-2023-3519, was a serious one: a remote code execution (RCE) bug. "Remote code execution" means an attacker somewhere on the network can make the device run commands of their choosing, without first logging in. The notice also contained a fix for it.

Before the notice, there had been signs that somebody was already selling a way to abuse this flaw on the internet, from around June. The notice confirmed that a real problem existed.

The two researchers behind this write-up, Dylan Pindur and Shubham Shah, work on security research. They had spent a lot of the previous year looking at Citrix's ADC and NetScaler Gateway products, and that earlier work had already turned up a different flaw, CVE-2023-24488. When the new notice appeared, their team was asked to build accurate ways of spotting the new flaw across the internet, for the company's Attack Surface Management platform. "Attack surface" is simply everything an organisation has exposed to the outside world: websites, login pages, appliances. "Attack Surface Management" is the practice of keeping an inventory of those things and watching them for weaknesses.

This article walks through what they found. Two things are worth saying at the start, because the researchers said them themselves:

  1. They did not have a complete working attack at the time of writing. They could crash the device and corrupt its memory, but they had not shown they could run their own code on it.
  2. They had a way to tell whether a given device is likely vulnerable, and they argue it is more reliable than the common shortcuts other tools use, such as looking at file dates (Last-Modified) or reading version numbers from a file called /vpn/pluginlist.xml.

They also passed on two warnings from Citrix. First, Citrix told them the patches fix more than one vulnerability, and the issue described here may not be the only one; there is a possibility that a pre-auth RCE exists without SAML being enabled. "Pre-auth" means before logging in. Second, their own analysis at that point suggested SAML has to be switched on for the flaw to be reachable, and they said that conclusion might change as they kept digging. A follow-up post, Part 2, later covered the endpoint that real attackers were using.

To follow the rest, you need a handful of ideas explained from scratch.

  • Appliance: a machine sold to do one job, like a dedicated gatekeeper for a company's internal applications. Citrix ADC and NetScaler Gateway are appliances that sit between the internet and the applications inside a company, handling logins and traffic.
  • SAML: a standard way for one system to tell another "this person has already logged in, trust me". Think of a festival wristband: you prove who you are once at the gate, and other staff trust the wristband instead of asking for your ID again. The system that checks your identity is the identity provider; the appliance that accepts the wristband is the service provider. The wristband itself, a signed statement, is called an assertion.
  • Single sign-on (SSO): the general idea of logging in once and being let into many systems. SAML is one way to do SSO.
  • Struct: a bundle of related values stored together in a program's memory, like a form with fixed boxes. If a program writes past the last box, it spills into whatever is stored next.
  • Array: a numbered row of slots in memory, all the same size. Writing past the last slot is called an out-of-bounds write, and it is a classic memory corruption bug.
  • Bounds check: the guard that stops a program writing past the end of an array. Missing bounds checks are the root of many serious vulnerabilities.
  • Patch diffing: comparing the old, broken version of a program with the new, fixed one to see exactly what changed. The change often points straight at the bug.
  • BinDiff: a tool that compares two compiled programs (binaries) and highlights the functions that differ.
  • Segfault: the crash a program suffers when it touches memory it is not allowed to touch. It is a symptom of memory corruption, not proof that an attacker can take control.
  • Error oracle: a way of learning something about a system purely from which error message it returns. Like knocking on a door and guessing what is behind it from the sound of the echo.

Setting up two copies of the appliance

To compare the broken code with the fixed code, the researchers needed both versions running side by side. That meant getting evaluation licences from Citrix, which in turn meant creating a Citrix account. The Citrix website does not make it obvious where to register, so they used this page:

Text
https://onboarding.cloud.com/

This is simply the sign-up page they found for creating a Citrix account. An account is needed because the evaluation licence is tied to it.

Once registered, they claimed an evaluation licence here:

Text
https://www.citrix.com/en-au/downloads/citrix-adc/virtual-appliances/netscaler-vpx-developer-edition.html

This page offers a free developer edition of the appliance for testing. The licence is the permission slip that lets the software run.

They had to repeat the process twice, to get two separate evaluation keys: one for the patched instance and one for the unpatched instance. Two keys, two machines, so the two versions can be compared fairly.

With both versions in hand, they generated a BinDiff file for the nsppe binaries and compared them. nsppe is the core program inside the appliance that handles network traffic. BinDiff lined up the two versions and showed roughly fifty functions that differed. A function is a named block of code that does one job. Fifty differences is a lot to review, so they went through them one at a time, looking for the change that mattered.

Finding the flaw

The trail led to a function called ns_aaa_saml_parse_authn_request. In the patched version, an error log had been added there. An error log is a message the program writes when something goes wrong. From the wording of that message, it sounded like the fix added a check that a list of canonicalization methods did not exceed a maximum value. The researchers' suspicion: in the unpatched version, you can go past that limit.

They credit Ron Bowes' analysis on AttackerKB, a public vulnerability discussion site, which reached a similar conclusion.

Here is what the function does, in plain terms. It takes the SAML payload, the wristband, and unpacks it into a struct holding the details it needs. The researchers believe that struct includes a fixed array of canonicalization method values. A canonicalization method is a rule for turning XML (a text format for structured data) into a standard byte sequence before signing it, so that both sides agree on exactly what was signed. Each time the parser sees a new CanonicalizationMethod tag in the payload, it checks the tag's Algorithm attribute against a list of supported algorithms and adds a matching number, an enum value, to the array. An enum is just a named number: the program stores 2 or 3 rather than the algorithm's name.

In the unpatched version there is no bounds check. Send more tags than the array has slots, and the program keeps writing past the end of the array, corrupting the rest of the struct and any memory allocated after it. Picture a form with ten boxes; write an eleventh answer and it lands on the next page, over whatever was printed there.

There is a limit to the damage, though. Because the parser checks the Algorithm attribute and writes a corresponding enum value, the researchers could only write the bytes 0x3 or 0x2 into this buffer. 0x just means the number is written in hexadecimal, base 16. So the attacker controls how many values are written, but each value is one of only two possible bytes. With that, they could cause segfaults and corrupt memory, but they had not been able to demonstrate RCE at that point.

The behaviour can only be triggered if SAML is enabled. When SAML is not enabled, requests appear to be stopped pretty early in the chain, before they reach this parser. The authors stress this is not a final assessment: there may be other entry points that do not require SAML, and neither the Citrix advisory nor any public information so far mentions that SAML has to be enabled.

Exploitation

Step 1: Build an error oracle from the patched and unpatched responses

Based on the responses returned by Citrix, the researchers could tell whether an instance may be vulnerable. The three states produce three distinct error messages:

State Response
SAML disabled Matching policy not found while trying to process Assertion; Please contact your administrator
SAML enabled, patched Unsupported mechanisms found in Assertion; Please contact your administrator
SAML enabled, unpatched SAML Assertion verification failed; Please contact your administrator

The oracle works by sending a POST request to /saml/login where the SAML assertion contains 11 instances of CanonicalizationMethod, whereas the maximum permitted on patched instances is 10. A POST request is the kind a browser sends when you submit a form. The check does not cause any disruption on the instance, and the difference between an unpatched and a patched instance shows clearly in the error messages. In other words, you can ask a device "are you vulnerable?" and it answers with one of three sentences, without anything breaking.

Step 2: Send the request

The following request triggers the SAML Assertion verification failed; Please contact your administrator error message on unpatched instances:

HTTP
POST /saml/login HTTP/1.1Host: 192.168.1.225Connection: closeContent-Length: 3150Content-Type: application/x-www-form-urlencodedSAMLRequest=[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%[redacted]%2BCiAgICA8L2RzOlNpZ25lZEluZm8%[redacted]%2BQTwvZHM6U2lnbmF0dXJlVmFsdWU%2BCiAgPC9kczpTaWduYXR1cmU%[redacted]%3D

This block is a raw HTTP request, the same kind of message a browser sends to a web server, written out by hand. Line by line:

  • POST /saml/login HTTP/1.1 says: use the POST method (send data to the server) to the path /saml/login, which is the appliance's SAML login handler, using version 1.1 of the HTTP protocol.
  • Host: [redacted] names the machine being addressed. Here it is a private address on a local network, the kind used in a lab.
  • Connection: close tells the server to close the connection after replying, rather than keeping it open.
  • Content-Length: 3150 states how many bytes of body follow, so the server knows where the request ends.
  • Content-Type: application/x-www-form-urlencoded says the body is formatted like a web form submission, the same format a browser uses when you submit a login form.
  • SAMLRequest=... is the body: a single form field named SAMLRequest whose value is a long string of letters and digits. That string is base64, a way of packing arbitrary bytes into plain text so they can travel safely in a form. The %2B, %3D and similar sequences are percent-encoding, the standard way of writing characters such as + and = inside a URL or form value.

The request is a form-encoded POST to /saml/login carrying a base64-encoded SAMLRequest. Decoded, the assertion contains a ds:Signature block whose ds:SignedInfo holds 11 ds:CanonicalizationMethod elements, each with the same Algorithm value:

That URL is the identifier of one particular canonicalization algorithm, the rule used to normalise the XML before signing. The ds: prefix is just a namespace label, a way of saying "this tag belongs to the XML digital signature standard". The signature block is the wristband's tamper seal: it is supposed to prove the assertion came from a trusted identity provider and was not altered. In this test the signature is deliberately wrong, because the point is not to log in but to see how far the parser gets before it notices.

On unpatched instances, you can include as many instances of CanonicalizationMethod as you like, and all of them are parsed, before the flow fails because the SAML assertion has an incorrect signature. On patched instances, the code assumes something is wrong before it reaches the verification step, and returns the Unsupported mechanisms found in Assertion message instead. That is the whole trick: the patched device counts the tags and stops early; the unpatched device keeps writing them into its array and only fails later, at the signature check. The two failures happen at different points, so they produce different messages.

Step 3: Interpret the result

A response of SAML Assertion verification failed means the instance is unpatched and SAML is enabled. Unsupported mechanisms found in Assertion means it is patched. Matching policy not found while trying to process Assertion means SAML is disabled, and the request was stopped early. Three sentences, three states, no disruption.

Step 4: Check the other SAML endpoints

The researchers also discovered the endpoints /cgi/samlauth, /saml/activelogin, /cgi/samlart?samlart= and /cgi/logout, which expect a SAMLResponse. An endpoint is a specific address on a server that accepts a particular kind of request. SAMLResponse is the counterpart of SAMLRequest: the message an identity provider sends back after the user has authenticated. Based on their testing, these endpoints also require SSO to be configured in order to exploit the vulnerability. At the time of writing they had not discovered an endpoint that allows exploitation without SAML being enabled.

Root cause

The parser in ns_aaa_saml_parse_authn_request stores canonicalization method values in a fixed-size array inside a struct. For each CanonicalizationMethod tag it validates the Algorithm attribute against a list of supported algorithms and appends the corresponding enum value to the array, without a bounds check in the unpatched version. Supplying more tags than the array can hold writes past its end, corrupting the remainder of the struct and any allocated memory that follows.

The write is constrained: because the value written is the enum for a recognised algorithm, only the bytes 0x3 or 0x2 can be placed into the buffer. That is enough to cause segfaults and memory corruption, but the authors had not demonstrated RCE from it. The patched version adds a check that the list of canonicalization methods does not exceed a maximum value, and logs an error when it does.

The reason the issue is reachable only with SAML enabled is that requests appear to be stopped early in the chain otherwise. The authors note that the Citrix advisory and all public information so far do not mention this precondition.

Impact

On an instance with SAML enabled and without the patch, an attacker can send a crafted SAMLRequest to /saml/login and write past the end of the canonicalization method array, corrupting the rest of the struct and any allocated memory that follows. "Heap" is the pool of memory a program uses for data it creates while running. "Unauthenticated" means no login is needed. In the researchers' testing this produced segfaults and memory corruption. They had not achieved remote code execution at the time of writing, and they explicitly frame their analysis as incomplete, with the possibility of other entry points that do not require SAML. The advisory covers a critical RCE, and there had been indications that an exploit was sold before the advisory, but the write-up itself does not demonstrate a full chain.

Fix

Citrix fixed the issue in the advisory covering CVE-2023-3519, CVE-2023-3466 and CVE-2023-3467. In the patched nsppe binary, ns_aaa_saml_parse_authn_request adds a check that the list of canonicalization methods does not exceed a maximum value and logs an error when it does; the oracle test shows 10 is the maximum permitted on patched instances. The authors also note that Citrix told them the patches cover more than one vulnerability, and that the issue identified in their post may not be the only one.

For defenders who cannot patch immediately, the error oracle above gives a way to identify exposed, SAML-enabled instances without disrupting them, and the authors published a detection script at:

Text
https://github.com/assetnote/exploits/tree/main/citrix/CVE-2023-3519

That link points to a public code repository holding the script. A script is a small program that automates the check, so you do not have to send the request by hand for every device.

Variants to test

  1. Send a SAMLRequest to /saml/login with 11 CanonicalizationMethod elements and compare the error message. A response of SAML Assertion verification failed; Please contact your administrator indicates an unpatched, SAML-enabled instance; Unsupported mechanisms found in Assertion indicates patched; Matching policy not found while trying to process Assertion indicates SAML is disabled.
  2. Repeat the same request against /cgi/samlauth, /saml/activelogin, /cgi/samlart?samlart= and /cgi/logout with a SAMLResponse, to see whether any of them parse the assertion before enforcing SSO configuration.
  3. Vary the Algorithm attribute across the supported values and observe whether the written enum changes the corruption pattern (the authors saw only 0x2 and 0x3).
  4. Increase the number of CanonicalizationMethod elements well beyond 11 and watch for a segfault or a dropped connection on an unpatched instance.

Glossary

  • ADC: Citrix's application delivery controller, an appliance that sits in front of internal applications and manages traffic and logins.
  • Algorithm attribute: the part of a CanonicalizationMethod tag that names which canonicalization rule is being used.
  • Appliance: a machine sold to perform one dedicated job, such as acting as a gateway for a company's applications.
  • Array: a numbered row of memory slots of equal size; writing past the last slot is an out-of-bounds write.
  • Assertion: a signed statement in SAML saying a user has authenticated, like a festival wristband.
  • Attack surface: everything an organisation exposes to the outside world, such as websites, login pages and appliances.
  • Attack Surface Management: the practice of inventorying and monitoring that exposed surface for weaknesses.
  • Base64: a way of encoding arbitrary bytes as plain text so they can travel inside forms and URLs.
  • BinDiff: a tool that compares two compiled programs and highlights the functions that differ.
  • Bounds check: a guard that stops a program writing past the end of an array.
  • Canonicalization method: a rule for normalising XML into a standard byte sequence before signing, so both sides agree on what was signed.
  • CVE: a public identifier for a known vulnerability, such as CVE-2023-3519.
  • Endpoint: a specific address on a server that accepts a particular kind of request.
  • Enum: a named number; the program stores a number such as 2 or 3 instead of a name.
  • Error log: a message a program writes when something goes wrong.
  • Error oracle: learning something about a system purely from which error message it returns.
  • Evaluation licence: a free, time-limited permission to run software for testing.
  • Function: a named block of code that performs one job.
  • Heap: the pool of memory a program uses for data it creates while running.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • Identity provider: the system that checks who you are and issues the SAML assertion.
  • Memory corruption: damage to a program's memory caused by writing where it should not, often leading to crashes or worse.
  • NetScaler Gateway: Citrix's gateway product that handles remote access and logins; it shares code with ADC.
  • nsppe: the core program inside the appliance that handles network traffic.
  • Out-of-bounds write: writing past the end of an array or buffer into neighbouring memory.
  • Patch diffing: comparing the old and new versions of a program to see exactly what the fix changed.
  • Percent-encoding: the standard way of writing special characters such as + and = inside a URL or form value.
  • POST request: an HTTP request that sends data to the server, as a browser does when submitting a form.
  • Pre-auth: before logging in; no credentials required.
  • Remote code execution (RCE): an attacker making a device run commands of their choosing from elsewhere on the network.
  • SAML: a standard for one system to tell another that a user has already authenticated.
  • SAMLRequest / SAMLResponse: the SAML messages sent to and from the appliance during a login.
  • Service provider: the system that accepts the SAML assertion and lets the user in; here, the appliance.
  • Single sign-on (SSO): logging in once and being let into many systems.
  • Struct: a bundle of related values stored together in memory, like a form with fixed boxes.
  • Unauthenticated: without any login.
  • XML: a text format for structured data, used by SAML messages.

More from Citrix Systems

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.