Closed c4-submissions closed 11 months ago
minhquanym marked the issue as insufficient quality report
Invalid
MarioPoneder marked the issue as unsatisfactory: Invalid
Intended
Share creation can be completely permissionless or it can be restricted to whitelisted addresses only.
Lines of code
https://github.com/code-423n4/2023-11-canto/blob/335930cd53cf9a137504a57f1215be52c6d67cb3/1155tech-contracts/src/Market.sol#L114-L127
Vulnerability details
Impact
Sharecreators can create new shares even when share creation is restricted.
Proof of Concept
owner() restricts share creation.
Share creators can call createNewShare() even when share creation is restricted, and it won't revert (Because the onlyShareCreator() modifier has an || operator)
Reason:
Tools Used
Manual Review
Recommended Mitigation Steps
Assessed type
Access Control