Hawk High

First Flight #39
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: high
Likelihood: medium
Invalid

Potential Reentrancy in graduateAndUpgrade

Summary

Lack of reentrancy protection in graduateAndUpgrade risks state manipulation or fund loss.

Vulnerability Details

The graduateAndUpgrade function in LevelOne.sol uses usdc.safeTransfer to send funds to Teachers and the Principal without a reentrancy guard. A malicious contract as a Teacher could re-enter the function during transfer, potentially manipulating state or draining funds if logic is added later.

Impact

Could lead to financial loss or unintended state changes.

Tools Used

Manual code review and reentrancy analysis.

Recommendations

Import ReentrancyGuardUpgradeable and add nonReentrant modifier to graduateAndUpgrade, initializing it in initialize.

Updates

Lead Judging Commences

yeahchibyke Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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