Recognizing basic security flaws in local password managers
The password manager Password Depot used weak encryption (ECB mode without authentication or salt) and exposed an unauthenticated WebSocket server on all network interfaces, allowing any website to connect and potentially retrieve stored passwords. An attacker could exploit these flaws to decrypt or access sensitive data.
palant.de
Published on palant.de
2019-08-12 Security/Password-Managers 14 mins
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 developers used an outdated encryption mode (ECB) without authentication or salt, and implemented a WebSocket server without origin validation or authentication, relying on security through obscurity for the encryption key.
Impact
An attacker could potentially decrypt the password database due to weak encryption and lack of authentication, and any website could connect to the local WebSocket server to query or possibly retrieve stored passwords, though the latter requires the browser integration to be enabled and the attack is limited to HTTP websites.
What the attacker needed
Password Depot installed; Browser integration enabled; Victim visits a malicious HTTP website
The fix
The flaws should be fixed by using authenticated encryption with a proper mode (e.g., GCM), a strong key derivation function with a random salt, and replacing WebSockets with native messaging for browser integration; the article notes that the company did not address the issues.
How it was found
- Open the Password Depot database file and observe the XML structure with an <encrypted> flag.
- Change a byte in the middle of the ciphertext and observe that the file still opens without error.
- Change the <fingerprint> field and observe that the database still opens, indicating no salt.
- Connect to the WebSocket server on port 25109 from a web page and send a checkState command.
- Receive a response confirming the connection and revealing database details.
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.
This article describes security weaknesses in a password manager program that stores passwords on your computer. The program scrambled the passwords in a way that is easy to break, and it also had a network service that any website could talk to without proving who it was. That means a malicious website could potentially steal your saved passwords.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.