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

0 stars 0 forks source link

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

Open c4-bot-6 opened 5 months ago

c4-bot-6 commented 5 months 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