BATBToken Smart Contract Whitelist Management Access Control Vulnerability
Vulnerability
A vulnerability has been identified in the BATBToken smart contract on the Binance Smart Chain. The issue arises from improper access control in whitelist management functions, specifically in the setColdWhiteList() and setSpecialAddress() methods inherited from the ERC20 base contract. These functions are public and lack necessary access control modifiers, enabling any user to manipulate transfer restrictions and special address settings. This flaw could disrupt the contract's dividend distribution mechanisms and lead to unauthorized privileges, undermining the intended tokenomics.
Impact
Exploitation of this vulnerability allows unauthorized users to bypass transfer restrictions and manipulate special address settings, potentially disrupting dividend distributions and other contract mechanisms.
Reproduction
To reproduce this vulnerability, call the setColdWhiteList() function to add an address to the cold whitelist, bypassing the intended transfer restrictions. Additionally, the setSpecialAddress() function can be used to manipulate special address settings without authorization.
Remediation
Implement proper access control modifiers, such as onlyOwner, for the affected whitelist management functions.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
