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

Anubis - GovernorBravoDelegate - Lack of Input Validation for Administrative Functions #6

Closed
sherlock-admin2 opened this issue Jan 25, 2024 · 0 comments
Labels
Non-Reward This issue will not receive a payout

Comments

@sherlock-admin2
Copy link
Contributor

sherlock-admin2 commented Jan 25, 2024

Anubis

medium

GovernorBravoDelegate - Lack of Input Validation for Administrative Functions

Summary

Several administrative functions in the contract lack adequate input validation or checks, potentially allowing for configuration of governance parameters to invalid or unsafe values.

Vulnerability Detail

The contract includes several administrative functions (e.g., _setVotingDelay, _setVotingPeriod, _setProposalThreshold) that are used to configure critical governance parameters. However, not all these functions have comprehensive checks to validate the input parameters, potentially allowing for the governance parameters to be set to values that could disrupt the governance process.

Impact

Improper validation of input parameters for administrative functions can lead to the configuration of governance parameters that are either too lenient or too strict, potentially making the governance process vulnerable to manipulation or rendering it inoperable.

Code Snippet

https://github.com/sherlock-audit/2024-01-olympus-on-chain-governance/blob/main/bophades/src/external/governance/GovernorBravoDelegate.sol#L470-L479

https://github.com/sherlock-audit/2024-01-olympus-on-chain-governance/blob/main/bophades/src/external/governance/GovernorBravoDelegate.sol#L485-L494

Tool used

Manual Review

Recommendation

Implement comprehensive input validation for all administrative functions that modify governance parameters. Ensure that all input parameters are within safe and sensible ranges, and consider adding additional logic to prevent parameters from being set to values that could compromise the integrity or operability of the governance process.

Duplicate of #21

@github-actions github-actions bot added the Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label label Jan 27, 2024
@sherlock-admin2 sherlock-admin2 changed the title Helpful Denim Salmon - GovernorBravoDelegate - Lack of Input Validation for Administrative Functions Anubis - GovernorBravoDelegate - Lack of Input Validation for Administrative Functions Jan 30, 2024
@sherlock-admin2 sherlock-admin2 added Non-Reward This issue will not receive a payout and removed Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Non-Reward This issue will not receive a payout
Projects
None yet
Development

No branches or pull requests

1 participant