If allowed token have vulnerability been found, there is no way to remove it, which could harm the protocol
howlbot-integration opened this issue · 3 comments
howlbot-integration commented
Lines of code
Vulnerability details
Impact
There is no way to avoid harm from allowed token which been proved exploitable.
Proof of Concept
Owner of PrelaunchPoints have authority to add allowed token, but can't remove it if one of allowed tokens have been proved exploitable, this could harm the protocol.
function allowToken(address _token) external onlyAuthorized {
isTokenAllowed[_token] = true;
}Tools Used
Vscode
Recommended Mitigation Steps
Add a bool parameter to add/remove allowed token
- function allowToken(address _token) external onlyAuthorized {
+ function allowToken(address _token, bool isAllowed) external onlyAuthorized {
- isTokenAllowed[_token] = true;
+ isTokenAllowed[_token] = isAllowed;
}Assessed type
Access Control
0xd4n1el commented
This poses a security risk in case of malicious owner, since disallowedTokens can be withdrawn by owner
c4-judge commented
koolexcrypto marked the issue as unsatisfactory:
Invalid