Hard Coded username and password in registry
A security product stored a username, password and FTP server address in plain text in the Windows registry, and those same credentials worked when used to log in to the vendor's FTP server. An attacker with local access to the registry could read the credentials and use them to reach the FTP service, though the directory they reached was empty.
Originally disclosed on HackerOne
- Triaged in 20 days
- Fixed in 3 months
- Disclosed after 6 months
I was using a tool called RegShot to take a snap shot of the registry before and after installation in order to see what changes were being made in the registry and I discovered hard-coded credentials
I have attached the full comparison details of the registry changes
but these are the lines and reg entries where the credentials are stored:
HKLM\SOFTWARE\Wow6432Node\KasperskyLab\AVP17.0.0\environment\dump\User: "kavdumps" HKLM\SOFTWARE\Wow6432Node\KasperskyLab\AVP17.0.0\environment\dump\Password: "UxzAbKFLufVBSg8Y" HKLM\SOFTWARE\Wow6432Node\KasperskyLab\AVP17.0.0\environment\dump\FTP: "kavdumps.kaspersky.com"
I was able to open browser and navigate to ftp://kavdumps.kaspersky.com which gave me a login prompt. I used the username: kavdumps and password of: UxzAbKFLufVBSg8Y
I was able to login. The directory was empty however
I have attached a video and the log file
I have seperated the lines so it is easier to find in the file.
Attachments
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 application stored service credentials in plain text in the registry instead of protecting them, and the same credentials were still valid on the remote FTP server.
Impact
Anyone able to read the local registry could recover working credentials for the vendor's FTP server, although in this case the accessible directory was empty so no data was shown to be exposed.
What the attacker needed
Local access to the installed machine; ability to read the registry
How it was found
- Take a registry snapshot before installing the software.
- Install the software and take a second snapshot.
- Compare the two snapshots to see which registry keys changed.
- Read the username, password and FTP host stored under the dump environment key.
- Open the FTP address in a browser and log in with the recovered credentials.
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.
The Windows registry is a database where programs keep settings. This program saved a username and password there as ordinary readable text, so anyone who can look at the registry can see them. The reporter then typed those same details into the vendor's file server and got in, which shows the stored secret was a real working key rather than a harmless leftover.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.