According to ERC-7484
, for check functions The attesters provided MUST be unique and sorted and the Registry MUST revert if they are not
. RegistryFactory::addAttester
function lets us add the attester to the RegistryFactory::attesters
array which are passed in Registry::isModuleAllowed
to the REGISTRY::check
function. Registry::isModuleAllowed
function is being used in Registry::createAccount
function, which uses it to check if the Module being passed to create the account instance is allowed or not, otherwise it will revert. So if there are duplicates in the attesters array the REGISTRY::check
function will revert and user will be unable to create acount through ResgistryFactory
.
link to the eip https://eips.ethereum.org/EIPS/eip-7484
Adding suplicate attesters can render users unable to create account instances.
Use a mapping to keep the track of attesters index in the array mapping(address => uint256)
use this while adding attester and associate its address to index at which it is being added. check this mapping when additional enteries so that there are no duplicates.
Loop through the array to check that attester being added, does not matches the existing enteries.
Invalid, - Addition of attesters are admin only functionalities so if duplicate addresses are added it would consitute admin input/call validation. - ERC-7484 is in draft mode so we should not take it as the final EIP configuration yet. - Even if a mistake was made, removals can be performed by invoking `removeAttester` multiple times by the owner to completely remove a duplicate user. - In the [documentation](https://github.com/bcnmy/nexus/wiki#problems-nexus-solves), it is not noted that Nexus suite will be ERC7484 compliant.
Invalid, similar issue to #151 and duplicates - Addition of attesters are admin only functionalities so if duplicate addresses are added it would consitute admin input/call validation. - ERC-7484 is in draft mode so we should not take it as the final EIP configuration yet. - In the [documentation](https://github.com/bcnmy/nexus/wiki#problems-nexus-solves), it is not noted that Nexus suite will be ERC7484 compliant.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.