Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

web3pwn - Denial of Service attack for bribe mechanism #97

Closed
sherlock-admin3 opened this issue Jul 15, 2024 · 0 comments
Closed

web3pwn - Denial of Service attack for bribe mechanism #97

sherlock-admin3 opened this issue Jul 15, 2024 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue

Comments

@sherlock-admin3
Copy link
Contributor

sherlock-admin3 commented Jul 15, 2024

web3pwn

High

Denial of Service attack for bribe mechanism

Summary

The process of providing bribes for voting in a pool involves creating a BribeRewarder using RewardFactory, funding it, and registering it through the Voter contract's onRegister function. However, a limit of 5 rewarders per pool creates a vulnerability where attackers could saturate a pool with ineffective BribeRewarders and preventing legitimate participation.

Vulnerability Detail

To provide bribes for voting in a pool, one must use RewardFactory to create a BribeRewarder. After creation, the owner can fund it and execute the bribe logic, registering the BribeRewarder as a rewarder for the pool in the Voter contract through the onRegister function. However, a limitation allows a maximum of 5 BribeRewarders per pool. This could enable an attacker to create 5 BribeRewarders without valuable bribes and register them for a targeted pool. This action prevents legitimate BribeRewarders from registering as a rewarder for the pool, discouraging users from voting for it.

Impact

The attacker can prevent legitimate bribe rewarders from offering bribes for the given pool, effectively discouraging users from voting for it.

Code Snippet

Tool used

Manual Review

Recommendation

It is recommended to redesign the logic in a way it will be not possible to prevent legitimate bribers from participating.

Duplicate of #190

@github-actions github-actions bot added duplicate Medium A Medium severity issue. labels Jul 21, 2024
@sherlock-admin3 sherlock-admin3 added the Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label label Jul 22, 2024
@sherlock-admin4 sherlock-admin4 changed the title Blunt Carmine Camel - Denial of Service attack for bribe mechanism web3pwn - Denial of Service attack for bribe mechanism Jul 29, 2024
@sherlock-admin4 sherlock-admin4 added the Reward A payout will be made for this issue label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

2 participants