ASA-2025-003: Groups module can halt chain when handling a malicious proposal
The groups module in the Cosmos SDK contained a flaw where a malicious proposal could cause a division by zero, leading to a chain halt. Any user able to interact with the groups module could introduce this state.
Source: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/271
Found by
4n0nx, Boy2000, HarryBarz, x0lohaclohell
Summary
cosmos sdk recently publish a bug (https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-x5vx-95h7-rv4p) and its mandatory for protocols to update
As its already has been published by the cosmos group but the protocol didnt update I consider it as a medium not high
Name: ASA-2025-003: Groups module can halt chain when handling a malicious proposal Component: CosmosSDK Criticality: High (Considerable Impact; Likely Likelihood per ACMv1.2) Affected versions: <= v0.47.15, <= 0.50.11 Affected users: Validators, Full nodes, Users on chains that utilize the groups module Description
An issue was discovered in the groups module where a malicious proposal would result in a division by zero, and subsequently halt a chain due to the resulting error. Any user that can interact with the groups module can introduce this state. Patches
The new Cosmos SDK release v0.50.12 and v0.47.16 fix this issue. Workarounds
There are no known workarounds for this issue. It is advised that chains apply the update. Timeline
February 9, 2025, 5:18pm PST: Issue reported to the Cosmos Bug Bounty program
February 9, 2025, 8:12am PST: Issue triaged by Amulet on-call, and distributed to Core team
February 9, 2025, 12:25pm PST: Core team completes validation of issue
February 18, 2025, 8:00am PST / 17:00 CET: Pre-notification delivered
February 20, 2025, 8:00am PST / 17:00 CET: Patch made available
This issue was reported to the Cosmos Bug Bounty Program by dongsam on HackerOne on February 9, 2025. If you believe you have found a bug in the Interchain Stack or would like to contribute to the program by reporting a bug, please see https://hackerone.com/cosmos.
If you have questions about Interchain security efforts, please reach out to our official communication channel at [email protected]. For more information about the Interchain Foundation’s engagement with Amulet, and to sign up for security notification emails, please see https://github.com/interchainio/security.
A Github Security Advisory for this issue is available in the Cosmos SDK repository.
Root Cause
.
Internal Pre-conditions
.
External Pre-conditions
.
Attack Path
.
Impact
.
PoC
No response
Mitigation
No response
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/sedaprotocol/seda-chain/pull/517
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing check for a zero denominator when processing a malicious proposal in the groups module, leading to a division by zero.
Impact
Any user who can interact with the groups module could halt the chain by submitting a malicious proposal.
What the attacker needed
Access to the groups module; ability to submit a proposal
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A blockchain is a shared ledger run by many computers. If one of those computers crashes because of a bad input, the whole network can stop working. Here, a specially crafted proposal could make the software divide by zero, which is an error that stops the program, and that could halt the entire chain.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.