Finding the Information Leakage
The CompleteFTP installer log file, readable by all local users, contained the encrypted admin passphrase as a command-line argument. An attacker could run the manager tool with that passphrase to gain admin access and then use process triggers to execute code as SYSTEM.
rhinosecuritylabs.com
Published on rhinosecuritylabs.com
CompleteFTP is a suite of FTP and SSH tools for Windows developed by EnterpriseDT. The server has functionality for remote and local administration which, due to information leakage in a log file, can be abused by an attacker to hijack the administrative account.
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 installer wrote sensitive credentials (an encrypted admin passphrase) into a world-readable log file, and the manager tool accepted that passphrase as a command-line argument to auto-fill admin login.
Impact
A local standard user could escalate to SYSTEM privileges; if the installation directory is readable remotely, the same attack could be performed remotely.
What the attacker needed
Read access to installation directory; local standard user account; CompleteFTPManager.exe binary
The fix
The vulnerability was fixed in CompleteFTP Server version 12.1.3.
How it was found
- Read the Bootstrapper.log file in the server installation directory.
- Find the command line containing the encrypted admin passphrase.
- Run the manager program with that command as a standard user.
- Open the manager tool and see the admin credentials auto-filled.
- Log in to the management interface with full admin rights.
- Create a process trigger to run a script on user login, then log in to the FTP server to execute it.
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.
A log file left behind by the installer could be read by any user on the computer. It contained a secret password (encrypted, but usable as-is) for the FTP server's administrator account. By running a program with that secret, a normal user could become the administrator and then run commands with the highest Windows privileges.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.