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.
Originally disclosed on Cisco Talos
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.
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
- Connect to the FTP server and send the USER command.
- Send any command that is not allowed in the GOTUSER state.
- The server replies with a bad sequence error but sets the state to LOGIN.
- Send commands that require authentication; they are executed as if logged in.
- 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.