Open code423n4 opened 2 years ago
https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L116-L122 https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L124-L136
The function manageWhiteList() allows whitelisted users to add users to the whitelist.
Manual review
Proper access control needs to be implemented for the manageWhiteList().
Duplicate of #19
Lines of code
https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L116-L122 https://github.com/code-423n4/2022-05-cudos/blob/main/solidity/contracts/Gravity.sol#L124-L136
Vulnerability details
Impact
The function manageWhiteList() allows whitelisted users to add users to the whitelist.
Proof of Concept
Tools Used
Manual review
Recommended Mitigation Steps
Proper access control needs to be implemented for the manageWhiteList().