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

[ZKS-01] Add round check in signed proposals cache #3109

Merged
merged 1 commit into from Mar 3, 2024

Conversation

raychu86
Copy link
Contributor

Motivation

This PR adds a check for malicious validators that try to have peers double-sign proposals by circumventing the signed_proposals cache. The simple check is to now disconnect from peers that request signatures on proposals that are behind the signed_round (of other proposals they've sent).

Audit Finding: [zksecurity 01] Lack of Dag Containment Could Lead To Safety Violation

Copy link

@mimoo mimoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful!

@howardwu howardwu merged commit bc92d3b into mainnet Mar 3, 2024
23 of 24 checks passed
@howardwu howardwu deleted the fix/signed-proposals-cache branch March 3, 2024 04:17
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

3 participants