20,000 USDC
View results
Submission Details
Severity: medium

Reentrancy Attack Vulnerability

Summary

The Staking contract is vulnerable for the re-entrancies attacks.

Vulnerability Details

In the claim function the claimable[msg.sender] variable is updated after the tokens are transfered.

Impact

This allows an attacker to re-entrant the function and withdraw the tokens that do not belong to them until the contract balance is empty.

Tools Used

Manual review

Recommendations

Follow the CEI pattern or use the nonReentrant modifier.

Support

FAQs

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

Give us feedback!