Open c4-bot-10 opened 9 months ago
raymondfam marked the issue as insufficient quality report
raymondfam marked the issue as duplicate of #339
alcueca marked the issue as not a duplicate
alcueca changed the severity to QA (Quality Assurance)
alcueca marked the issue as grade-b
expected behavior
andresaiello (sponsor) disputed
Lines of code
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L440-L448
Vulnerability details
Impact
If a user only specifies one of token name or symbol, both are overriden and set to the default value. This prevents them from using their choice.
Proof of Concept
https://github.com/code-423n4/2024-01-curves/blob/516aedb7b9a8d341d0d2666c23780d2bd8a9a600/contracts/Curves.sol#L440-L448
Tools Used
Manual Review
Recommended Mitigation Steps
Check that either name and symbol are both provided or both empty, don't allow only one to be specifed.
Assessed type
Other