Skip to content
RCE Write-up Intermediate

Adventures in Citrix security research

The Citrix Netscaler/ADC web interface reflected user input into a generated Java Web Start file and into an XML payload, and also exposed unauthenticated report endpoints and a route that allowed calling arbitrary PHP functions. An attacker could use these flaws to execute code on a victim's machine, bypass authentication, or create a session without credentials.

blog.unauthorizedaccess.nl

Published on blog.unauthorizedaccess.nl

Before we start off on the adventures I just wanted to state that the only reason for writing this blog is to share technical knowledge with others. I know Citrix has this to say about disclosing technical vulnerability details:

Donny Maasland, on blog.unauthorizedaccess.nl

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 application failed to sanitise user input before embedding it into generated files and XML payloads, and failed to enforce authentication on several endpoints.

Impact

An attacker could execute code on a victim's machine via the JNLP file, download reports without authentication, and create a session without credentials, though some issues were only quirky and not exploitable.

What the attacker needed

Victim clicks a link; no authentication for some endpoints; access to the NSIP

How it was found

  1. Send a request to the JNLP generation URL with a crafted protocol parameter.
  2. Observe that the parameter is reflected in the codebase attribute of the generated JNLP file.
  3. Send a request to the pcidss report endpoint with type=all_signatures and sig_name=_default_signature_ without authentication.
  4. Observe that the report is downloaded without requiring login.
  5. Send a request to the Nitro API with a crafted X-NITRO-ONERROR header containing invalid XML.
  6. Observe that the response indicates success (errorcode 0) despite the invalid XML.

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 several security problems in Citrix networking devices. One problem is that the device puts user-supplied text directly into a file that tells a Java program what to run, so an attacker can trick a user into running harmful code. Another problem is that some parts of the web interface do not check if you are logged in, letting anyone access reports or create a session.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.