Open c4-bot-7 opened 10 months ago
raymondfam marked the issue as insufficient quality report
raymondfam marked the issue as duplicate of #44
alcueca marked the issue as not a duplicate
alcueca changed the severity to QA (Quality Assurance)
alcueca marked the issue as grade-b
Lines of code
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/Curves.sol#L373
Vulnerability details
Impact
from the
buyCurvesTokenWithName
function implementation there was no check for zero amount, this could lead to buying a zero amount of curveTokens and still minting thereby bypassing the_buyCurvesToken
which by design is bad.Proof of Concept
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/Curves.sol#L373
Tools Used
Manual Review
Recommended Mitigation Steps
Add a check for zero amount to avoid bypassing the
_buyCurvesToken
functionAssessed type
Other