angelelz / securitytests Goto Github PK
View Code? Open in Web Editor NEWSecurity Tests for KeePassWinHello plugin
Security Tests for KeePassWinHello plugin
@sirAndros and @shuffle-c
Technical details of the security issues found in KeePassWinHello implementation of a persistent key:
The plugin creates a persistent key using NCryptCreatePersistedKey
method and sets the property NgcCacheType
to 1 to make it mandatory to use Windows Hello Security Prompt to be able to use that key for decryption. After that key is created, it is used for all keepass databases to encrypt the composite key data, but the plugin never checks if that key has been replaced!
I used this console app to prove that you can replace the key and the plugin continues to use it, even if it fails to decrypt the data the first time, and then, whenever any database is closed (or locked) the plugin uses AddOrUpdate
method from KeyWindowsStorage
class to update the credential where the master key data is saved.
Steps to reproduce:
I tried to use the same key changing just the property to 0, but it is not possible after the method NCryptFinalizeKey
method is executed, at least that is ok.
I'm sorry I explained everything here, I just did not want to make this public.
As for the solution, I think with just changing VerifyPersistentKeyIntegrity
to check if the key has the right NgcCacheType
property, and make the method AddOrUpdate
use this check before saving the credentials.
Finally, I want to thank you guys for making this plugin, it is really great and I have learn a lot by studying it!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.