FileZilla ‘fzsftp’ Untrusted Search Path
FileZilla searches for the 'fzsftp' binary in untrusted locations, including the user's home directory. An attacker could trick a victim into downloading a malicious 'fzsftp' binary, which would then be executed when FileZilla restarts and opens an SFTP connection.
tenable.com
Published on tenable.com
Tenable has discovered that FileZilla is affected by an untrusted search path vulnerability. The 'fzsftp' binary, which is used to perform SFTP operations, can be loaded from one of many untrusted file paths.
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
Likely, the application searches for the 'fzsftp' executable in the user's home directory before trusted system locations, allowing a malicious binary to be loaded.
Impact
An attacker could execute arbitrary code on the victim's machine with the victim's privileges.
What the attacker needed
Victim uses FileZilla; attacker can host a malicious server; victim downloads malicious binary to home directory; victim restarts FileZilla
The fix
The vulnerability was fixed in FileZilla 3.41.0 and later by upgrading.
How it was found
- Victim opens FileZilla client application.
- Attacker modifies and compiles psftp.c to include a payload.
- Attacker convinces victim to connect to their server and download the malicious 'fzsftp' binary to the victim's home directory.
- Victim restarts the FileZilla client.
- Victim opens a new SFTP connection to any server, causing the malicious binary to execute.
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.
FileZilla is a program for transferring files. It looks for a helper program called 'fzsftp' in several places, including your home folder. If someone can trick you into putting a bad version of that helper there, FileZilla will run it the next time you use SFTP, letting the attacker run their own code on your computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.