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

Deduplicate signatures with the same key_id. #283

Merged
merged 2 commits into from
Mar 4, 2020

Conversation

aabbaabb
Copy link

We should only verify one signature for one key_id, otherwise an
attacker owning one key could simply duplicate one valid signature
and thus increasing the number of signatures that are valid. This
bypass the limitation of threshold.

Tested: Unit tests.

We should only verify one signature for one key_id, otherwise an
attacker owning one key could simply duplicate one valid signature
and thus increasing the number of signatures that are valid. This
bypass the limitation of threshold.

Tested: Unit tests.
TUF spec requires client to check key ID calculation. Due to backward
compatibility, instead of giving error when an incorrect key ID is
found, we simply ignore that key.

Tested: Unit tests.
@erickt erickt merged commit 62431b1 into theupdateframework:develop Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants