You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The extension requires adding the password to the KeepassXC database in the preference dialogue.
The current behavior
In order to unlock the database, the extension uses the call exec('echo "${dbPassword}" | "${keepassxcCli}" locate "${database}" /'), see here.
Passing cleartext ${dbPassword} is not best practice and might compromise the password.
The expected behavior
Instead of requiring the plaintext password in the preferences, fetching all entries and rolling its own cryptography, the extension could, for example, use the KeepassXC-CLI open command to open an interactive session (prompting for the password if required) and issue further commands (e.g. to copy pw to clipboard) using this connection.
Since this is an extension, it’s impossible to keep the a shell session alive on background.
So user will be required to input the main password every time when activate this extension.
A better solution is to build an independent keepass client with js, which maybe far more complex than current solution.
I wanted to bring this up, as the security of the password to the password manager (that might store important stuff) is highly relevant. I appreciate the fact that the provided user pw is stored in encrypted form, but that still means that the overall security of the KeepassXC password store (e.g. AES256 with key transformations) is then equivalent to the cryptography implementation used in Raycast to encrypt the password.
Furthermore, if I'm reading the code correctly exec('echo "${dbPassword}" | "${keepassxcCli}" locate "${database}" /') calls out to the command line with the cleartext password. Therefore, it might be logged or snooped on by any process running at the same time (ps).
Maybe we could add some of this info on how the extension works and stores the password to the extension information, so that users may be aware?
Activity
zkytech commentedon Feb 25, 2022
Since this is an extension, it’s impossible to keep the a shell session alive on background.
So user will be required to input the main password every time when activate this extension.
A better solution is to build an independent keepass client with js, which maybe far more complex than current solution.
thomaspaulmann commentedon Feb 25, 2022
FYI the password is stored in our encrypted database. The extension can then read it from there. So it isn't really clear text.
thomaspaulmann commentedon Feb 25, 2022
I'm not sure how the UX would be if you have to prompt all the time for the password.
chrisma commentedon Feb 25, 2022
Thanks for the fast responses!
I wanted to bring this up, as the security of the password to the password manager (that might store important stuff) is highly relevant. I appreciate the fact that the provided user pw is stored in encrypted form, but that still means that the overall security of the KeepassXC password store (e.g. AES256 with key transformations) is then equivalent to the cryptography implementation used in Raycast to encrypt the password.
Furthermore, if I'm reading the code correctly
exec('echo "${dbPassword}" | "${keepassxcCli}" locate "${database}" /')calls out to the command line with the cleartext password. Therefore, it might be logged or snooped on by any process running at the same time (ps).Maybe we could add some of this info on how the extension works and stores the password to the extension information, so that users may be aware?
zkytech commentedon Feb 26, 2022
#996 Replaced
echowithstdin.write. Password will not be snooped.zkytech commentedon Feb 26, 2022
Password Security Note has been add to README.md
Add tembo extension (#21366)
Update Teak: clearer sign-in message (#33790)