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

🛡️ValidateVoteExtensions helper function may allow incorrect voting power assumptions #636

Closed
ccamel opened this issue May 17, 2024 · 2 comments
Assignees

Comments

@ccamel
Copy link
Member

ccamel commented May 17, 2024

Note

Severity: Info
target: v7.1.0 - Commit: 3c854270b006db30aa3894da2cdba10cc31b8c5f
Ref: OKP4 Blockchain Audit Report v1.0 - 02-05-2024 - BlockApex

Description

During the course of the audit an advisory "ASA-2024-006: ValidateVoteExtensions helper function may allow incorrect voting power assumptions" was published by cosmos-sdk. The issue states that "the default ValidateVoteExtensions helper function infers total voting power based off of the injected VoteExtension, which are injected by the proposer."

We verified that okp4d currently does not utilize the vote extensions but if in future the blockchain utilizes the ValidateVoteExtensions helper in ProcessProposal, a dishonest proposer can potentially mutate voting power of each validator it includes in the injected VoteExtension, which could have potentially unexpected or negative consequences on modified state.

Recommandation

It is advised to update the cosmos-sdk version to v0.50.5, if in future vote extensions are enabled and validateVoteExtension() is used then in that case this bug shouldn't get activated.

References

@github-project-automation github-project-automation bot moved this to 📋 Backlog in 💻 Development May 17, 2024
@ccamel ccamel moved this from 📋 Backlog to 📆 To do in 💻 Development May 17, 2024
@bdeneux
Copy link
Contributor

bdeneux commented May 31, 2024

Fixed by #642

@ccamel ccamel moved this from 📆 To do to 🏗 In progress in 💻 Development May 31, 2024
@amimart
Copy link
Member

amimart commented Jun 4, 2024

Fixed by #642

Yep! Closing it :)

@amimart amimart closed this as completed Jun 4, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 💻 Development Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

No branches or pull requests

3 participants