Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credential overwrite protection leaks information about the stored credentials #101

Open
szszszsz opened this issue Aug 18, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@szszszsz
Copy link
Member

szszszsz commented Aug 18, 2023

The lately introduced credential overwrite protection leaks information about the stored credentials in the PIN-encrypted space, when Update or Register commands are called with the already used credential label, but only if directly asked about it.

This can be addressed with changing the target file name calculation, by prefixing to be hashed credential label with the used encryption method, thus effectively separating logically the credential name spaces.

(edit: corrected last paragraph)

@robin-nitrokey
Copy link
Member

Would you add the namespace only on the device or also for the credential IDs returned to the host? Either way, that would be difficult to solve in the UI unless we completely separate PIN-protected and non-PIN-protected credentials.

@szszszsz
Copy link
Member Author

Only for the device. It should suffice to make the final file name hash to be a function of the encryption method.

@szszszsz szszszsz added the enhancement New feature or request label Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants