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

web3pwn - The limitation of bribing for the pool leads to denial of service condition #98

Closed
sherlock-admin4 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-admin4
Copy link

sherlock-admin4 commented Jul 15, 2024

web3pwn

Medium

The limitation of bribing for the pool leads to denial of service condition

Summary

The limit of five bribers per pool can cause a denial of service, preventing legitimate bribers from providing rewards if periods are already saturated by other bribers.

Vulnerability Detail

The limitation of bribing for the pool to a maximum of five bribers leads to a denial of service condition. Legitimate bribers who wish to provide rewards might be prevented from doing so if the given periods are saturated by other bribers.

Issue Scenario:

  1. Five bribers provide rewards for period 5.
  2. A new briber wants to start providing bribes for periods 1-20.
  3. The briber cannot do this because the logic will iterate over all periods and revert at period 5 since it is already saturated.

Impact

A legitimate briber cannot provide bribes in the form of rewards for the specified periods.

Code Snippet

Tool used

Manual Review

Recommendation

It is recommended to redesign the logic so that bribers can add bribe rewards without being affected by other bribers.

Duplicate of #190

@github-actions github-actions bot added duplicate Medium A Medium severity issue. labels Jul 21, 2024
@sherlock-admin2 sherlock-admin2 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 - The limitation of bribing for the pool leads to denial of service condition web3pwn - The limitation of bribing for the pool leads to denial of service condition 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