Skip to content
RCE Write-up Advanced

RCE in Progress WS_FTP Ad Hoc via IIS HTTP Modules (CVE-2023-40044)

An unauthenticated attacker could send a crafted multipart request to the Ad Hoc Transfer component of Progress WS_FTP Server, causing unsafe .NET deserialisation and remote code execution. The vulnerability affected all file uploads handled by a custom IIS HTTP module.

Shubham Shah Follow

Published on assetnote.io

Over the last year or so, we've seen the mass exploitation of managed file transfer software. From GoAnywhere MFT, MOVEIt, and our own work on Citrix Sharefile.

Shubham Shah (@infosec_au), Sean Yeoh (@seanyeoh), 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

The application passed user-controlled base64 data from a multipart form field directly into .NET's BinaryFormatter.Deserialize without validation, enabling unsafe deserialisation.

Impact

An unauthenticated attacker could execute arbitrary commands on the server, and because the module runs on every request, any route in the Ad Hoc Transfer application could be used, making WAF detection based only on the URL difficult.

What the attacker needed

Network access to the WS_FTP web interface; no authentication required

The fix

The vulnerability was fixed by the vendor, and the report notes that most versions of WS_FTP were vulnerable.

How it was found

  1. Send a multipart/form-data request to any route in the Ad Hoc Transfer application.
  2. Include a form field with no filename whose name is empty and whose value begins with the default upload parameter tag.
  3. Place a base64-encoded BinaryFormatter serialised payload after that tag.
  4. The HTTP module parses the field and passes the decoded bytes to DeserializeProcessor, which deserialises them and executes the embedded command.

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 a serious flaw in a file transfer program called WS_FTP Server. The program took data from a web request and turned it back into a live object without checking it was safe, which let an attacker run their own commands on the server. No login was needed, so anyone who could reach the web interface could take over the machine.

What is RCE?

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

More from Progress (MOVEit Transfer)

View all

The newest disclosed reports for this program.

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.