Skip to content
Access control Advisory Intermediate CVE-2022-41985

Weston Embedded uC-FTPs Authentication authentication bypass vulnerability

The FTP server's state machine incorrectly sets the session to logged-in after a bad command sequence following USER, bypassing authentication. An attacker can then execute authenticated commands, and some commands cause a denial of service due to uninitialised path variables.

Kelly Leuschner Follow

Originally disclosed on Cisco Talos

High 8.6 View original

An authentication bypass vulnerability exists in the Authentication functionality of Weston Embedded uC-FTPs v 1.98.00. A specially crafted set of network packets can lead to authentication bypass and 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

Impact

An attacker could bypass authentication and execute commands as an authenticated user, and could cause a denial of service by crashing the server.

What the attacker needed

Network access to the FTP server

The fix

The check should be changed to verify that the state is not LOGIN, so that the GOTUSER state is handled correctly.

How it was found

  1. Connect to the FTP server and send the USER command.
  2. Send any command that is not allowed in the GOTUSER state.
  3. The server replies with a bad sequence error but sets the state to LOGIN.
  4. Send commands that require authentication; they are executed as if logged in.
  5. For commands that call BuildPath, the server crashes because path variables were never set.

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 is meant to require a password before letting a client do anything. But if a client sends a username and then a command that is not allowed at that stage, the server mistakenly marks the session as fully logged in. That lets an attacker use the server without knowing the password, and some commands crash it.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.