Skip to content
Business logic Audit finding Intermediate

Foundation recall will inflate governance power for earnest voters

The escrow contract mints xSUMR based on a vesting wallet's SUMR balance at stake time but does not reduce that xSUMR when the Foundation later recalls unvested tokens, leaving the staker with inflated voting power and reward share. An attacker (or honest staker) could keep the position staked to retain governance power without the corresponding SUMR backing.

0x37 Follow with 0x97, 8olidity and 11 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-09-summer-fi-governance-v2-judging/issues/53

This issue has been acknowledged by the team but won't be fixed at this time.

Found by

0x37, 0x97, 8olidity, BusinessShotgun, Elroi, Ironsidesec, KaplanLabs, asui, dan__vinci, dimulski, ephraim, farismaulana, silver_eth, wickie

Summary

Missing logic to reduce escrowed weights after recallUnvestedTokens will cause an enduring governance power inflation for honest voters as the Foundation will legitimately claw back performance tokens while stakers keep the corresponding xSUMR and voting weight.

Root Cause

In https://github.com/sherlock-audit/2025-09-summer-fi-governance-v2/blob/main/summer-earn-protocol/packages/gov-contracts/src/contracts/SummerVestingWalletsEscrow.sol?plain#L333-L336 and https://github.com/sherlock-audit/2025-09-summer-fi-governance-v2/blob/main/summer-earn-protocol/packages/gov-contracts/src/contracts/SummerVestingWalletsEscrow.sol?plain#L258 the escrow mints xSUMR against the vesting wallet balance at stake time but never re-syncs or burns when https://github.com/sherlock-audit/2025-09-summer-fi-governance-v2/blob/main/summer-earn-protocol/packages/gov-contracts/src/contracts/SummerVestingWallet.sol?plain#L137-L149 reduces that balance via recallUnvestedTokens.

Internal Pre-conditions

  1. [Foundation needs to call] SummerVestingWallet.recallUnvestedTokens() to set the vesting wallet SUMR balance to less than the snapshot taken at stake time.
  2. [Delegatee needs to keep] the escrow position staked so that _unstakeFromFactory is not executed to burn the excess xSUMR.

External Pre-conditions

None

Attack Path

  1. Foundation executes recallUnvestedTokens() on a team vesting wallet while it is staked in the escrow.
  2. The staker leaves the position staked (or restakes after recall) so the escrow keeps the stale stakedBalance.
  3. The protocol continues to account full xSUMR supply and voting power for the staker despite the reduced backing tokens.

Impact

The wider governance community suffers an unbounded loss of voting fairness and reward dilution. (The opportunistic staker gains inflated voting power and reward share without holding the corresponding SUMR.)

PoC

No response

Mitigation

Recompute the escrowed balance on every unstake and after recalls (or prevent recalls while staked) so that xSUMR minted for vesting wallets always matches the underlying SUMR still held.

The original report as published on Sherlock, by 0x37. 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

Impact

The wider governance community could suffer an unbounded loss of voting fairness and reward dilution, while the staker gains inflated voting power and reward share without holding the corresponding SUMR.

What the attacker needed

Foundation calls recallUnvestedTokens; Staker keeps position staked

The fix

The escrow should recompute the escrowed balance on every unstake and after recalls, or prevent recalls while staked, so that xSUMR minted for vesting wallets always matches the underlying SUMR still held.

How it was found

  1. Foundation calls recallUnvestedTokens on a team vesting wallet that is staked in the escrow.
  2. The staker leaves the position staked (or restakes after the recall).
  3. The protocol continues to count full xSUMR supply and voting power for the staker despite the reduced backing tokens.

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.

When you stake tokens in this system, you get a receipt token (xSUMR) that gives you voting power. The system only checks your token balance once when you stake, and never updates it if the Foundation later takes back some of those tokens. So you keep the voting power even though you no longer have the tokens behind it.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0x37

View all

79 more disclosed reports, best first.

More from Summer.fi - governance v2

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.