Skip to content
DoS Audit finding Advanced

Attacker can block all votes to a specific pool by triggering an overflow error

A permissionless bribe rewarder contract could be funded with a custom token minted to the maximum supply, causing an arithmetic overflow in the reward accounting when a user votes. This blocked all votes to a chosen pool for the period, letting the attacker steer rewards toward pools they favoured.

santipu_ Follow

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/237

Found by

santipu_

Summary

An attacker can deploy a BribeRewarder contract using a custom token and distribute a huge number of those tokens to trigger an overflow error and prevent users from voting in a specific pool.

Vulnerability Detail

In the MagicSea protocol, bribing is a core mechanism. In short, users can permissionlessly create BribeRewarder contracts and fund them with tokens to bribe users in exchange for voting in specific pools.

When users vote for a specific pool through calling Voter::vote, the function _notifyBribes is called, which calls each BribeRewarder contract that is attached to that voted pool:

Solidity
function _notifyBribes(uint256 periodId, address pool, uint256 tokenId, uint256 deltaAmount) private {
    IBribeRewarder[] storage rewarders = _bribesPerPriod[periodId][pool];
    for (uint256 i = 0; i < rewarders.length; ++i) {
        if (address(rewarders[i]) != address(0)) {
>>>         rewarders[i].deposit(periodId, tokenId, deltaAmount);
            _userBribesPerPeriod[periodId][tokenId].push(rewarders[i]);
        }
    }
}

An attacker can use this bribing mechanism to create malicious BribeRewarder contracts that will revert the transaction each time a user tries to vote for a specific pool. The attack path is the following:

  1. An attacker creates a custom token and mints the maximum amount of tokens (type(uint256).max).
  2. The attacker creates a BribeRewarder contract using the custom token.
  3. The attacker transfers the total supply of the token to the rewarder contracts and sets it up to distribute the whole supply only in one period to a specific pool.
  4. When that period starts, the attacker first uses 1 wei to vote for the selected pool, which will initialize the value of accDebtPerShare to a huge value.
  5. When other legitimate users go to vote to that same pool, the transaction will revert due to overflow.

In step 4, the attacker votes using 1 wei to initialize accDebtPerShare to a huge value, which will happen here:

https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/libraries/Rewarder2.sol#L161

Solidity
    function updateAccDebtPerShare(Parameter storage rewarder, uint256 totalSupply, uint256 totalRewards)
        internal
        returns (uint256)
    {
        uint256 debtPerShare = getDebtPerShare(totalSupply, totalRewards);

        if (block.timestamp > rewarder.lastUpdateTimestamp) rewarder.lastUpdateTimestamp = block.timestamp;

>>     return debtPerShare == 0 ? rewarder.accDebtPerShare : rewarder.accDebtPerShare += debtPerShare;
    }

    function getDebtPerShare(uint256 totalDeposit, uint256 totalRewards) internal pure returns (uint256) {
>>     return totalDeposit == 0 ? 0 : (totalRewards << Constants.ACC_PRECISION_BITS) / totalDeposit;
    }

In the presented scenario, the value of totalRewards will be huge (close to type(uint256).max) and the value of totalSupply will only be 1, which will cause the accDebtPerShare ends up being a huge value.

Later, when legitimate voters try to vote for that same pool, the transaction will revert due to overflow because the operation of deposit * accDebtPerShare will result in a value higher than type(uint256).max:

https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/libraries/Rewarder2.sol#L27-L29

Solidity
function getDebt(uint256 accDebtPerShare, uint256 deposit) internal pure returns (uint256) {
    return (deposit * accDebtPerShare) >> Constants.ACC_PRECISION_BITS;
}

Impact

By executing this sequence, an attacker can block all votes to specific pools during specific periods. If wanted, an attacker could block ALL votes to ALL pools during ALL periods, and the bug can only be resolved by upgrading the contracts or deploying new ones.

There aren't any external requirements or conditions for this attack to be executed, which means that the voting functionality can be gamed or completely hijacked at any point in time.

PoC

The following PoC can be pasted in the file called BribeRewarder.t.sol and can be executed by running the command forge test --mt testOverflowRewards.

Solidity
function testOverflowRewards() public {
    // Create custom token
    IERC20 customRewardToken = IERC20(new ERC20Mock("Custom Reward Token", "CRT", 18));

    // Create rewarder with custom token
    rewarder = BribeRewarder(payable(address(factory.createBribeRewarder(customRewardToken, pool))));

    // Mint the max amount of custom token to rewarder
    ERC20Mock(address(customRewardToken)).mint(address(rewarder), type(uint256).max);

    // Start bribes
    rewarder.bribe(1, 1, type(uint256).max);

    // Start period
    _voterMock.setCurrentPeriod(1);
    _voterMock.setStartAndEndTime(0, 2 weeks);

    vm.warp(block.timestamp + 10);

    // Vote with 1 wei to initialize `accDebtPerShare` to a huge value
    vm.prank(address(_voterMock));
    rewarder.deposit(1, 1, 1);

    vm.warp(block.timestamp + 1 days);

    // Try to vote with 1e18 -- It overflows
    vm.prank(address(_voterMock));
    vm.expectRevert(stdError.arithmeticError);
    rewarder.deposit(1, 1, 1e18);

    // Try to vote with 1e15 -- Still overflowing
    vm.prank(address(_voterMock));
    vm.expectRevert(stdError.arithmeticError);
    rewarder.deposit(1, 1, 1e15);

    // Try now for a bigger vote -- Still overflowing
    vm.prank(address(_voterMock));
    vm.expectRevert(stdError.arithmeticError);
    rewarder.deposit(1, 1, 1_000e18);
}

Code Snippet

https://github.com/sherlock-audit/2024-06-magicsea/blob/main/magicsea-staking/src/libraries/Rewarder2.sol#L28

Tool used

Manual Review

Recommendation

To mitigate this issue is recommended to create a whitelist of tokens that limits the tokens that can be used as rewards for bribing. This way, users won't be able to distribute a huge amount of tokens and block all the voting mechanisms.

Discussion

0xSmartContract

As a result of detailed analysis with LSW, the issue was determined as Medium.

The critical function is _notifyBribes in the Voter contract, which calls the deposit function in BribeRewarder contracts.

An attacker can create a custom token with a maximum supply and distribute it to a BribeRewarder contract, leading to an overflow when legitimate users try to vote.

  • The PoC correctly sets up the scenario where an overflow error can occur. The critical part of the PoC is the initialization of accDebtPerShare with a large value.
  • LSW mentioned that the PoC as provided might have issues, and suggest changing uint256 to uint192 for it to work correctly. This change makes sense as it ensures the accDebtPerShare calculation does not overflow.
  1. _notifyBribes()

    JavaScript
    function _notifyBribes(uint256 periodId, address pool, uint256 tokenId, uint256 deltaAmount) private {
        IBribeRewarder[] storage rewarders = _bribesPerPriod[periodId][pool];
        for (uint256 i = 0; i < rewarders.length; ++i) {
            if (address(rewarders[i]) != address(0)) {
                rewarders[i].deposit(periodId, tokenId, deltaAmount);
                _userBribesPerPeriod[periodId][tokenId].push(rewarders[i]);
            }
        }
    }
    

This function loops through BribeRewarder contracts and calls the deposit function.

  1. updateAccDebtPerShare()
JavaScript
function updateAccDebtPerShare(Parameter storage rewarder, uint256 totalSupply, uint256 totalRewards)
    internal
    returns (uint256)
{
    uint256 debtPerShare = getDebtPerShare(totalSupply, totalRewards);

    if (block.timestamp > rewarder.lastUpdateTimestamp) rewarder.lastUpdateTimestamp = block.timestamp;

    return debtPerShare == 0 ? rewarder.accDebtPerShare : rewarder.accDebtPerShare += debtPerShare;
}

function getDebtPerShare(uint256 totalDeposit, uint256 totalRewards) internal pure returns (uint256) {
    return totalDeposit == 0 ? 0 : (totalRewards << Constants.ACC_PRECISION_BITS) / totalDeposit;
}
  • The getDebtPerShare function can produce a large value if totalDeposit is very small (e.g., 1 wei) and totalRewards is very large (type(uint256).max).
    • This large value can then cause overflow in subsequent calculations in updateAccDebtPerShare.
  1. getDebt()

    JavaScript
    function getDebt(uint256 accDebtPerShare, uint256 deposit) internal pure returns (uint256) {
        return (deposit * accDebtPerShare) >> Constants.ACC_PRECISION_BITS;
    }
    

This function performs the multiplication that can overflow if accDebtPerShare is too large.

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/metropolis-exchange/magicsea-staking/pull/35

santipu03

Escalate

I believe this issue warrants high severity.

As I stated in the "impact" section of the report, this bug will allow an attacker to block all votes in some pools during all the periods, if wanted. We must consider that this impact isn't only a DoS, but an attack that will steal most rewards. That is because the voting of one period will directly translate into the allocated weights on the next period (the code for this is in js/sync-farms.js). An attacker can trigger this bug to block votes to specific pools, and that will result in the pools that benefit the attacker to earn most of the Masterchef rewards on the next period.

On the other hand, the only "limitation" that this vulnerability has is that the attacker must be able to add rewarders to the pools that are going to be DoSed from voting. And I don't believe that this limitation can be considered extensive, as the Sherlock docs describe.

Given the significant direct impact and minimal limitations associated with this issue, it should be classified as high severity.

sherlock-admin3

Escalate

I believe this issue warrants high severity.

As I stated in the "impact" section of the report, this bug will allow an attacker to block all votes in some pools during all the periods, if wanted. We must consider that this impact isn't only a DoS, but an attack that will steal most rewards. That is because the voting of one period will directly translate into the allocated weights on the next period (the code for this is in js/sync-farms.js). An attacker can trigger this bug to block votes to specific pools, and that will result in the pools that benefit the attacker to earn most of the Masterchef rewards on the next period.

On the other hand, the only "limitation" that this vulnerability has is that the attacker must be able to add rewarders to the pools that are going to be DoSed from voting. And I don't believe that this limitation can be considered extensive, as the Sherlock docs describe.

Given the significant direct impact and minimal limitations associated with this issue, it should be classified as high severity.

You've created a valid escalation!

To remove the escalation from consideration: Delete your comment.

You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.

iamnmt

Escalate

I think this issue should be a duplicate of #190

I am arguing that both #190 and this issue are having the same root cause, which is permissionless bribe rewarder registration.

But this issue has a different impact from the impact of #190.

If the HOJ accepted that #190 and this issue are having the same root cause, then it would come down to if the impact of this issue is enough for it to be a separate issue basing on the duplication rule.

sherlock-admin3

Escalate

I think this issue should be a duplicate of #190

I am arguing that both #190 and this issue are having the same root cause, which is permissionless bribe rewarder registration.

But this issue has a different impact from the impact of #190.

If the HOJ accepted that #190 and this issue are having the same root cause, then it would come down to if the impact of this issue is enough for it to be a separate issue basing on the duplication rule.

You've created a valid escalation!

To remove the escalation from consideration: Delete your comment.

You may delete or edit your escalation comment anytime before the 48-hour escalation window closes. After that, the escalation becomes final.

Oot2k

I completely agree with @iamnmt comment!

chinmay-farkya

This is rather a duplicate of #545. detailed comment here : https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/650#issuecomment-2263537234

santipu03

I disagree that this issue (237) and issue #190 have the same root cause.

I believe we can all agree that the root cause of issue #190 is the permissionless bribe rewarder registration.

However, the root cause of this issue is the missing checks for distributing huge amounts of tokens, which will later cause the overflow. To fix this issue we can simply implement a check on BribeRewarder::_bribe that ensures that the amount of tokens distributed per period doesn't surpass a limit, for example type(uint128).max.

Here is an example of the fix:

Diff
    function _bribe(uint256 startId, uint256 lastId, uint256 amountPerPeriod) internal {
        // ...

+       require(amountPerPeriod < type(uint128).max)

        // ...
    }

In conclusion, fixing issue #190 would fix this issue (because it's a broader fix that affects other issues) but fixing the root cause of this issue won't fix issue #190.

IlIlHunterlIlI

want to add that Dup rules group issues to the higher severity ones,

If the HOJ accepted that https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/190 and this issue are having the same root cause, then it would come down to if the impact of this issue is enough for it to be a separate issue basing on the duplication rule.

so the above statement is incorrect due to the fact that Dups rules has nothing to do with different severity as long as both reports are valid.

0xSmartContract

Duplicate #190 and #237 is a detail that we have discussed, analyzed in detail and know since the audit (we did not see it during Escalate). We discussed the issue in detail with LSW.

My final opinion is; this issue should be a duplicate of #190

Both findings indicate that the attacker can manipulate the system by using special or worthless tokens. These tokens can be used either by printing very large amounts or by adding them to BribeRewarder contracts while they are worthless.

Finding #190 indicates that the attacker can fill BribeRewarder contracts using worthless tokens, preventing other users from adding their real reward contracts.

Finding #237 indicates that the attacker can create an overflow error by using an excessively large amount of tokens, thus preventing voting for a specific pool.

Both findings carry the risk of a Denial of Service (DoS) attack. The attacker can disable the system by blocking a specific pool or the entire voting mechanism.Both findings indicate that the reward distribution mechanism can be manipulated by the attacker.

santipu03

The fact that issues #190 and #237 share some similarities, like the use of worthless tokens and the DoS risk, doesn't make them duplicates.

Each issue has a distinct underlying root cause, impact, and fix, so they should be treated separately.

WangSecurity

About the duplication escalation (@iamnmt ). I believe the root cause of both issues are different and saying that it's permissionless adding of bribe rewarder is too broad:

  1. This issue is about bribe rewarded having worthless tokens and the attacker minting type(uint256).max of that token supply, which leads to a revert here.
  2. #190 root cause is that the attacker can create 5 bribe rewarders and link them to the same pool, not allowing to vote and create a new bribe rewarder to that pool, due to the revert here.

Hence, I believe these issues have different root causes and cannot be considered duplicates. @iamnmt escalation will be rejected.

About the severity escalation (@santipu03 ):

As I stated in the "impact" section of the report, this bug will allow an attacker to block all votes in some pools during all the periods, if wanted. We must consider that this impact isn't only a DoS, but an attack that will steal most rewards. That is because the voting of one period will directly translate into the allocated weights on the next period (the code for this is in js/sync-farms.js). An attacker can trigger this bug to block votes to specific pools, and that will result in the pools that benefit the attacker to earn most of the Masterchef rewards on the next period.

Do I understand correctly that it's because the attacker is the only one who voted (their 1 wei vote) and no one else did?

Also, this issue doesn't lead to a loss of funds that were deposited by the users in the pool, i.e. Bob deposited 10 ETH, the attack happened, and Bob freely withdrew their 10 ETH, correct?

IlIlHunterlIlI

If i can question a thing,

Why would you think its a broad statement if the solution (root cause) is the same, same place, same contract.

I don't know what was the solution, but if the solution was just turning bribes to be by admins( one solution solves both ) doesn't this make it a dup?

Under the rule of same conceptual mistake🤔

WangSecurity

Why would you think its a broad statement if the solution (root cause) is the same, same place, same contract

Excuse me, I think I'm missing something, but the solution and the root cause are different things and I believe I explained in the previous comment why the root causes of the two issues are different. Is there something missing from my explanation?

I don't know what was the solution, but if the solution was just turning bribes to be by admins( one solution solves both ) doesn't this make it a dup?

As I understand it's the specific design of the protocol to allow everyone to create BribeRewarders and this is intended. Hence, I don't believe that making BribeRewarders is a "solution". Therefore, I don't see it as the same conceptual mistake because BribeRewarders are intended to be created by anyone. Hope that answers your questions.

@santipu03 waiting for your clarifications on the questions in the previous comment.

santipu03

@WangSecurity Hi sir, sorry for the delay.

Do I understand correctly that it's because the attacker is the only one who voted (their 1 wei vote) and no one else did?

Kind of. The attacker will vote with 1 wei to some pools in order to block future votes to those pools. Then, the users will only have the option to vote for pools that the attacker doesn't block, and those pools will earn most of the rewards in the next epoch, stealing that yield.

For example, if we have only 2 pools (pool1 and pool2) to vote, an attacker can exploit this bug to block all votes for pool1. Then, users will only have the option to vote for pool2, and that pool will steal most of the rewards in the next epoch, as determined by the script in js/sync-farms.js.

Also, this issue doesn't lead to a loss of funds that were deposited by the users in the pool, i.e. Bob deposited 10 ETH, the attack happened, and Bob freely withdrew their 10 ETH, correct?

This issue won't affect the funds directly deposited in the pools, but it will allow an attacker to manipulate the voting system (the Voter contract) to steal most of the distributed yield in the next epoch. I consider that this issue causes a loss of funds because anyone can steal most of the rewards consistently until the bug is fixed.

All in all, I believe this issue deserves high severity given the potential losses and the low constraints.

I hope I've answered your questions, and I'll be glad to provide further clarification.

P.S. Revisiting the accepted issues, this report has a higher impact than issue #166, which is categorized as high severity. Just to ensure consistency in judging.

WangSecurity

Just to understand the issue more, what would happen if the attacker blocks both pools? Do they get all the rewards for that epoch?

santipu03

Just to understand the issue more, what would happen if the attacker blocks both pools? Do they get all the rewards for that epoch?

I guess then both pools would receive the same amount of rewards because they both have 1 wei of votes each, which is the necessary amount of votes needed to block the following ones.

WangSecurity

Excuse me, I phrased the question poorly, I meant the attacker would receive all the rewards, correct (from both pools)?

santipu03

Excuse me, I phrased the question poorly, I meant the attacker would receive all the rewards, correct (from both pools)?

That would depend on whether the attacker is the only staker for those pools within the MasterChef contract. In this scenario, both pools would receive the same amount of rewards, and the rewards would go to the users staking LP tokens for those pools.

The best impact that an attacker can achieve is to block the votes for all pools except for the one that benefits him the most, therefore earning most of the rewards within the MasterChef contract on the next epoch, stealing that yield from other users.

Does that answer your question? @WangSecurity

WangSecurity

I agree it's high severity. Indeed the attacker can cause a loss of funds to other users (in terms of rewards), while it doesn't have any extensive limitations.

Planning to reject the @iamnmt escalation, since it asks to duplicate this issue with another one, but accept @santipu03 escalation to upgrade the severity to high.

WangSecurity

Result: High Unique

sherlock-admin3

Escalations have been resolved successfully!

Escalation status:

WangSecurity

Based on this and this this will be the new main report for #545 issue family.

santipu03

Respectfully sir, I don't understand how it can be considered that issue #545 and this one have the same root cause.

Issue #545 root cause is the use of "weird ERC20" tokens within the protocol, as determined here:

Here, the conceptual mistake is Weird tokens. Hence, planning to reject the escalation and leave the issue as it is.

However, the root cause of this issue is the missing checks for distributing huge amounts of tokens on the Rewarders. Unlike the issues related to #545, this issue does not involve any "weird ERC20" tokens.

Moreover, this issue can be fixed by simply adding an extra check in the _bribe function, as expressed here. The recommendation made in the original report wasn't quite accurate because I later realized that the protocol can easily fix this issue by adding this extra line of code instead of removing a core mechanic of the protocol, which is the permissionless use of tokens.

From my understanding of reading the escalation on issue #545, the decision to group all the family under the same conceptual mistake of "weird tokens" was made for the sake of simplicity and because all dups didn't really add more value to the protocol. However, I believe that broadening the conceptual mistake so that more issues fit into that category isn't the right decision given that this issue is pointing at a different problem than the family of #545.

The fact that applying a broad fix to issue #545 (limiting the use of tokens) would also fix this issue isn't enough to consider them duplicates IMO. It happened a ton of times that the developers of the protocol can fix different issues by applying a broad fix (e.g. removing a core mechanic of the protocol) but that doesn't make those issues duplicates because they have different root causes even if the fix ends up being the same.

@WangSecurity I kindly ask you to reconsider the decision.

chinmay-farkya

However, the root cause of this issue is the missing checks for distributing huge amounts of tokens on the Rewarders.

I don't think this is correct. The root cause is "random tokens can be permissionlessly added to the system" in order to cause myriad of impacts listed in different issues under #545.

Moreover, this issue can be fixed by simply adding an extra check in the _bribe function, as expressed https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/237#issuecomment-2263555440.

Every issue under #545 can have a range of fixes but that does not make this #237 different from the family as the root cause remains the same.

the decision to group all the family under the same conceptual mistake of "weird tokens" was made for the sake of simplicity and because all dups didn't really add more value to the protocol

I don't think that this is true. The listings inside #545 family point to many different issues at different places. Examples are :

  1. #231 pointing to tokens with large decimals, affecting MLUMStaking contract.
  2. #296 showing how "large amount of a token getting deposited" causing issues, affecting Masterchef contract, which can also cause overflow : ie. the same impact as #237
  3. #500 shows "tokens perceived as standard : like USDC" causing issues due to extraRewarder contract
  4. #655 shows ctokens edge case issue when trying to transfer large amount of tokens : affecting multiple contracts
  5. #499 shows tokens with low decimals create problems in MLUMStaking
  6. #14 shows tokens with low decimals can create problems in calculations

Note that the high decimal tokens (one impact being an overflow : see point 2.) is also mentioned in many other duplications under #545 . So this issue #237 is not really different in pointing out that "a token with high circulating supply and that too controlled completely by the attacker" can be used for overflow DOS"z

I believe that broadening the conceptual mistake so that more issues fit into that category isn't the right decision given that this issue is pointing at a different problem than the family of https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/545.

We are not broadening it. it already a single conceptual mistake. You can see the reasoning under #545 by lead judge of grouping different issue categories into one becauseopf having the same root cause and same fix. Your issue #237 is not the only "type" there are many types already grouped into one because they all point to the use of custom tokens : which could have a hundred different problems that people have not listed in duplicates of #545 even.

It happened a ton of times that the developers of the protocol can fix different issues by applying a broad fix (e.g. removing a core mechanic of the protocol) but that doesn't make those issues duplicates because they have different root causes even if the fix ends up being the same.

The case of custom tokens is different from what you are pointing to. Here the "allowing the use of custom tokens" is the root cause, which can have many different impacts.

santipu03

I don't think this is correct. The root cause is "random tokens can be permissionlessly added to the system" in order to cause myriad of impacts listed in different issues under https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/545.

To better understand the term "root cause," let's refer to the definition provided in the Sherlock documentation:

[!IMPORTANT] Root Cause: The primary factor or a fundamental reason that imposes an unwanted outcome

The root cause of this issue cannot be "random tokens can be permissionlessly added to the system" because that isn't the primary factor that imposes an unwanted outcome. That is because the protocol can continue having permissionless tokens on the Rewarders and still fix this issue, and that's why that's not the primary factor.

The primary factor in this issue is the missing checks for distributing huge amounts of tokens on the Rewarders, which can be fixed by simply adding an extra line in the _bribe function. If that fix is applied, the issue is fixed because the primary factor has been fixed.

We are not broadening it. it already a single conceptual mistake. You can see the reasoning under https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/545 by lead judge of grouping different issue categories into one becauseopf having the same root cause and same fix. Your issue https://github.com/sherlock-audit/2024-06-magicsea-judging/issues/237 is not the only "type" there are many types already grouped into one because they all point to the use of custom tokens : which could hav

The original report as published on Sherlock, by santipu_. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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 the reward accounting multiplies a huge reward amount by a tiny deposit without bounding the per-share value, so the result exceeds the integer limit and reverts.

What the attacker needed

No special access needed; attacker can create a bribe rewarder; attacker can mint a custom token

The fix

The protocol team fixed this issue in the following PRs/commits.

How it was found

  1. Create a custom token and mint the maximum possible supply.
  2. Create a bribe rewarder for the target pool using that token.
  3. Fund the rewarder with the whole supply and set it to distribute in one period.
  4. When the period starts, vote with one wei to push the per-share value very high.
  5. Other users' votes to that pool then revert with an overflow.

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 bribe rewarder is a contract that pays people for voting in a particular pool. The attacker made one with a fake token and an enormous supply, so the maths that tracks each voter's share overflowed and every later vote crashed. Because those votes could not be recorded, the attacker could push rewards toward pools they wanted.

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.

More by santipu_

View all

13 more disclosed reports, best first.

More from MagicSea - the native DEX on the IotaEVM

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.