Fast Khaki Raccoon
High
DecentralizedIndex::_update
has a mechanic allowing users to be blacklisted, and as any other blacklistable token it block transfers to any blacklisted addresses. However it allows from
any that are, meaning that when users get blacklisted they can just transfer them out.
function _update(address _from, address _to, uint256 _amount) internal override {
require(!_blacklist[_to], "BK");
_update
not checking for if from
is blacklisted
function _update(address _from, address _to, uint256 _amount) internal override {
require(!_blacklist[_to], "BK");
No response
No response
- User gets blacklisted
- He transfers his funds to another address of his
Blacklist won't work as any blacklisted user can just transfer his funds to another address.
No response
Make sure if the sender is blacklisted the function reverts