MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Invalid

Risk of silent overflow

Summary

Risk of silent overflow

Vulnerability Details

In the L2TokenReceiver.sol collectFees(),the uint256 amount0_, amount1_ is forcefully cast to uint128.
In the 2023-07-PoolTogether contest on C4, there is relevant and valid finding for this issue. You can find it here: https://code4rena.com/reports/2023-07-pooltogether#m-19-silent-overflow-could-alter-computation-when-calculating-the-vaultportion-in-the-prizepool-contract

Impact

This can potentially result in a silent overflow and may lead to amount0_, amount1_ goes wrong.

Tools Used

Recommendations

Add checks that the casting value is not greater than the uint128 type max value

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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