code-423n4 / 2023-06-lukso-findings

3 stars 1 forks source link

Function collision between extensions, ADDEXTENSIONS can not add extension. #42

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/code-423n4/2023-06-lukso/blob/9dbc96410b3052fc0fd9d423249d1fa42958cae8/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol#L490-L499 https://github.com/code-423n4/2023-06-lukso/blob/9dbc96410b3052fc0fd9d423249d1fa42958cae8/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol#L302-L318

Vulnerability details

Summary

Adding extension use 4 bytes function selector to add new extension, but if there is extension with those function selector, user with ADDEXTENSIONS permission cannot add extension.

Impact

Tools Used

manual

Recommended Mitigation Steps

save all functions selector and who want to add extension, check for collision before deploying extension

Assessed type

Other

c4-pre-sort commented 1 year ago

minhquanym marked the issue as duplicate of #40

c4-judge commented 1 year ago

trust1995 marked the issue as unsatisfactory: Invalid