Open code423n4 opened 2 years ago
https://github.com/code-423n4/2022-04-backd/blob/c856714a50437cb33240a5964b63687c9876275b/backd/contracts/access/RoleManager.sol#L155
The function doesn't remove the address from _roleMembers[role] set, which will mess up with the roleCount
_roles[role].members[account] = false; _roleMembers[role].remove(account);
Low probability and asset will not be lost directly. Judging this and all duplicates as Med Risk.
I believe #83 described this better.
https://github.com/backdfund/protocol/pull/279
Lines of code
https://github.com/code-423n4/2022-04-backd/blob/c856714a50437cb33240a5964b63687c9876275b/backd/contracts/access/RoleManager.sol#L155
Vulnerability details
Impact
The function doesn't remove the address from _roleMembers[role] set, which will mess up with the roleCount
Proof of Concept
Tools Used
Recommended Mitigation Steps