Skip to content
XSS Write-up Advanced

Continuing the Citrix Saga: CVE-2023-5914 & CVE-2023-6184

Two vulnerabilities were found in Citrix StoreFront and Citrix Session Recording. The StoreFront flaw is a reflected XSS that can be triggered without authentication by coercing an XML parsing error, and the Session Recording flaw is an RCE via insecure .NET remoting deserialization that the researchers exploited without authentication in the wild, though Citrix says default configurations require authentication.

Dylan Pindur Follow

Published on assetnote.io

While most of the attention for vulnerabilities within Citrix has been on their NetScaler VPN product, we noticed that there were several other products offered by Citrix that require an on-premise deployment of a web application, that is sometimes internet facing. This piqued our interest and led us to investigate…

Dylan Pindur, Shubham Shah (@infosec_au), Adam Kues (@hash_kitten), on 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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the StoreFront XSS stems from unsanitised string interpolation of exception messages in an error handler, and the Session Recording RCE stems from .NET remoting configured with typeFilterLevel set to Full, allowing unrestricted deserialization.

Impact

The XSS could be used to execute script in a victim's browser without authentication, and the RCE could allow an attacker to run commands on the server; the researchers exploited the RCE without authentication in the wild, though Citrix states default configurations require authentication.

What the attacker needed

Victim clicks a link or submits a form; access to the StoreFront endpoint; access to the Session Recording remoting endpoint; for RCE, possibly authentication (default config)

The fix

The vulnerabilities were fixed by Citrix, as indicated by the security bulletins.

How it was found

  1. Decompile the application and search for classes inheriting from BaseMvcController.
  2. Identify unauthenticated endpoints, including /Citrix/teststoreAuth/SamlTest.
  3. Find an XML parsing exception message that reflects user input, such as the invalid xml:space value error.
  4. Craft an XML payload containing a script tag in the xml:space attribute, then encode it as required.
  5. Send the encoded payload in the SAMLResponse form parameter to trigger the XSS.
  6. For Session Recording, discover the /WebPlayer virtual directory and then the /SessionRecordingBroker remoting endpoints.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes two security bugs in Citrix products. One lets an attacker run their own script in a victim's browser (cross-site scripting) by making the server show an error message that includes attacker-controlled text. The other lets an attacker run commands on the server (remote code execution) because the server accepts serialized objects without checking their type.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Citrix Systems

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.