The Curious Case Of The Password Database
The Password Manager Pro application stored all the keys needed to decrypt its database and stored passwords on the same server, using a hardcoded static key. An attacker with access to the server could recover plaintext credentials.
Published on trustedsec.com
Nowadays, password managers are king. We use password managers to secure our most sensitive credentials to a myriad of services and sites; a compromise of the password manager could prove devastating.
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 used a hardcoded static key and stored all decryption keys (database password, PMP key, master key) on the same server, so compromise of the server led to full decryption.
Impact
An attacker with access to the Password Manager Pro server could recover plaintext credentials stored within it, potentially compromising all managed passwords.
What the attacker needed
Access to the Password Manager Pro server
How it was found
- Access the Password Manager Pro server and locate the application directory.
- Read the database-params.conf file to obtain the encrypted database password.
- Read the pmp_key.key file to obtain the PMP key.
- Decompile the application JAR files to find the decryption functions and the hardcoded static key.
- Use the decryption function to recover the plaintext database password.
- Query the PostgreSQL database to retrieve the encrypted master key and encrypted passwords, then decrypt them using the PMP key and master key.
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 password manager keeps your passwords locked in an encrypted vault. This report shows that the vault's keys were also kept on the same server, and one key was built into the software itself. So anyone who broke into the server could unlock the vault and read all the passwords.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.