code-423n4 / 2024-06-panoptic-findings

1 stars 0 forks source link

Users should not be allowed to mint more positions than the limit #39

Closed howlbot-integration[bot] closed 1 month ago

howlbot-integration[bot] commented 1 month ago

Lines of code

https://github.com/code-423n4/2024-06-panoptic/blob/153f0d82440b7e63075d55b0659706531431145f/contracts/CollateralTracker.sol#L459

Vulnerability details

Impact

The ability for users to mint more positions than a specified limit can lead to several issues within the system. If unchecked, this could:

Proof of Concept

Documentation: Users should not be allowed to mint more positions than the limit https://github.com/code-423n4/2024-06-panoptic/blob/153f0d82440b7e63075d55b0659706531431145f/contracts/CollateralTracker.sol#L459

Tools Used

Recommended Mitigation Steps

Implement Position Limit: Modify the mint function to include a check that prevents users from minting more positions than the predefined limit.

Assessed type

Other

c4-judge commented 1 month ago

Picodes marked the issue as unsatisfactory: Invalid