-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Added template for cosmos-sdk-division-bug #12014
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
base: main
Are you sure you want to change the base?
Conversation
Hello, thank you so much for sharing this template with the community and contributing to this project. Could you please share more details about the issue, and if possible, provide the steps to set up a vulnerable environment to help validate it? |
Hi, Thank you for your response and interest in the Cosmos SDK Division Bug Exploit template. Below, I’ve provided additional details about the issue and steps to set up a vulnerable environment for validation. Issue DetailsThe vulnerability stems from a division error in the Cosmos SDK’s group module, specifically in the handling of group member weights during policy evaluation. When extreme weight values (e.g., very large or very small decimals) are used, the SDK’s decimal arithmetic can encounter precision errors, such as "decimal quotient error" or "exponent out of range." This can lead to a chain halt, disrupting consensus and potentially causing significant downtime. The issue is critical as it affects the integrity of group-based governance mechanisms. References: Setting Up a Vulnerable EnvironmentTo validate the exploit, you can set up a local Cosmos SDK-based blockchain with a vulnerable version (e.g., Cosmos SDK v0.46.x or earlier, prior to the patch). Below are the steps:
Notes
Please let me know if you need further clarification or assistance in setting up the environment. I’d be happy to help troubleshoot or provide additional details! Best regards, |
update |
Added template for cosmos-sdk-division-bug