Skip to content
DoS Advisory Intermediate CVE-2022-46377CVE-2022-46378

Weston Embedded uC-FTPs PORT command parameter extraction out-of-bounds read vulnerability

The FTP server's PORT command handler scans for an ASCII digit without a proper bound, so a PORT command with no arguments causes the pointer to walk past the end of the network buffer. An authenticated attacker can send such a command to trigger an out-of-bounds read and crash the server, resulting in denial of service.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

An out-of-bounds read vulnerability exists in the PORT command parameter extraction functionality of Weston Embedded uC-FTPs v 1.98.00. A specially-crafted set of network packets can lead to denial of service.

Kelly Leuschner, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The while loop that advances the argument pointer only checks for a null pointer, not for the null terminator byte that the caller places at the end of the network buffer, so it can run past the buffer.

Impact

An authenticated attacker can crash the FTP server, causing a denial of service.

What the attacker needed

Authenticated FTP user; ability to send FTP commands

How it was found

  1. Authenticate to the FTP server.
  2. Send a PORT command with no arguments.
  3. The server scans for an ASCII digit and increments the pointer past the buffer, causing an out-of-bounds read and a crash.

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 report has not been written yet. The Original tab links to the source.

This FTP server expects the PORT command to contain numbers (an IP address and port). If the command is sent with no numbers at all, the code keeps looking for a digit and never stops, reading past the end of the buffer until it hits memory it is not allowed to read. That crashes the server, so legitimate users can no longer connect.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Kelly Leuschner

View all

32 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.