(0Day) GNU Inetutils FTP Client File Retrieval Command Injection Remote Code Execution Vulnerability
The GNU Inetutils FTP client fails to validate filenames received from a server before using them in a system call. A malicious FTP server can therefore cause the client to execute arbitrary commands as the user running it.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of GNU Inetutils FTP Client. User interaction is required to exploit this vulnerability in that the target must interact with a malicious FTP server.
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
Likely, the client passes a server-supplied filename directly into a shell or system call without sanitising it, so shell metacharacters in the name are interpreted as commands.
Impact
A remote attacker operating a malicious FTP server could execute arbitrary code in the context of the user running the client, though the victim must first connect to that server.
What the attacker needed
Victim connects to a malicious FTP server; user interaction with the server
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.
An FTP client is a program that downloads files from a server. This client took a file name from the server and passed it to a system command without checking it, so a hostile server could slip in extra commands. The attacker needs the victim to connect to their server, but then can run code on the victim's computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.