DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: medium
Invalid

Token Balance Manipulation via selfdestruct Leads to Reward Dilution

Summary

The staking contract is vulnerable to a manipulation attack where an attacker can artificially inflate the contract’s token balance using the selfdestruct method. This action dilutes the rewards for legitimate stakers, leading to diminishing returns across the user base.

Vulnerability Details

The vulnerability is from the staking contract using balanceOf(address(this))to calculate rewards for users. This makes it suspectible to selfdestruct attacks. Where a malicous user forces ether into the contract.

Impact

Diminishing returns on claims for stakers

Tools Used

Manual Review

Recommendations

Track user balance internally istead of relying on balanceOf(address(this))

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.