You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Solidity contract function updateValset() checks that the new validator set is signed by enough validators with voting power from the current validator set. After that it updates the stored valset to the new valset unconditionally. Some sanity checks are missing, and needs to be implemented:
the new validator set should not be empty: if an empty validator set is accepted, anyone can take control of the Gravity Bridge;
the new validator set should have enough voting power: similar to the constructor check. This check subsumes the above non-emptiness check.
Problem Scenarios
Due to an unforeseen condition, or a bug in the Cosmos SDK module or Orchestrator the following could happen:
an empty valset could be submitted; in that case anyone could take control of the bridge;
a valset with not enough voting power could be submitted; in that case any further attempts to update it will fail, and the bridge will be locked.
Recommendation
Add the aforementioned sanity check to the Solidity contract, rejecting the validator set update if the sanity check fails.
The text was updated successfully, but these errors were encountered:
Original issue
Surfaced from @informalsystems audit of Althea Gravity Bridge at commit 19a4cfe
severity: Low
type: Implementation bug
difficulty: Intermediate
Involved artifacts
Description
The Solidity contract function updateValset() checks that the new validator set is signed by enough validators with voting power from the current validator set. After that it updates the stored valset to the new valset unconditionally. Some sanity checks are missing, and needs to be implemented:
Problem Scenarios
Due to an unforeseen condition, or a bug in the Cosmos SDK module or Orchestrator the following could happen:
Recommendation
Add the aforementioned sanity check to the Solidity contract, rejecting the validator set update if the sanity check fails.
The text was updated successfully, but these errors were encountered: