Skip to content
XSS Write-up Intermediate

Cerberus FTP Blind Cross-Site Scripting to remote code execution as SYSTEM. (Version 9 and 10)

An unauthenticated user could inject a script into the FTP username field, which was not sanitised in the admin panel, leading to blind cross-site scripting. The attacker could then abuse the admin panel's scheduled operations feature to run an arbitrary executable with SYSTEM privileges, achieving remote code execution.

blog.secu.dk

Published on blog.secu.dk

We found a Blind XSS bug that we could use to go from unauthenticated user to NT AUTHORITY/SYSTEM The only access we need is to the FTP port with a default configuration. The timeline shows that Cerberus FTP was very responsive and fixed the issue promptly.

The author, on blog.secu.dk

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

The FTP username field was not sanitised before being displayed in the admin panel, allowing script injection.

Impact

An unauthenticated attacker could achieve remote code execution as NT AUTHORITY/SYSTEM, but only if an admin visits the connection tab in the admin panel.

What the attacker needed

Access to the FTP port; default configuration; admin views the connection tab

The fix

The issue was fixed in versions 10.0.8 and 9.0.14.

How it was found

  1. Connect to the FTP server and enter a username containing a script payload, leaving the password blank.
  2. Keep the connection open by sending NOOP commands every 10 seconds so the entry stays in the connection tab.
  3. Wait for an admin to view the connection tab in the admin panel, which triggers the script.
  4. The script abuses the scheduled operations feature to run an arbitrary executable with SYSTEM privileges, launching a reverse shell.

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.

When someone connects to the FTP server, the username they type is shown in the admin's web interface without being cleaned. An attacker can type a script instead of a normal username, and when the admin views the connection list, the script runs in the admin's browser. Because the admin panel can schedule programs to run with high privileges, the attacker can use that to run their own program and take full control of the server.

What is XSS?

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

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.