Shibamask.addLiquidity(uint256,uint256) (#529-542) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Shibamask._transfer(address,address,uint256) (#448-484):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#475)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(recipient),block.timestamp) (#553-559)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#475)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),category) (#483)
- _rOwned[deadAddress] += rBurn (#381)
- _rOwned[marketingAddress] += rMarketing (#371)
- _rOwned[address(this)] += rLiquidity (#361)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#499)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#500)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),category) (#483)
- _rTotal -= rRfi (#350)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to]),category) (#483)
- _tOwned[address(this)] += tLiquidity (#359)
- _tOwned[sender] = _tOwned[sender] - tAmount (#493)
- _tOwned[deadAddress] += tBurn (#379)
- _tOwned[marketingAddress] += tMarketing (#369)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#496)
Apply the check-effects-interactions pattern.
Additional information: link
Shibamask.rescueAnyBEP20Tokens(address,address,uint256) (#636-639) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#638)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Shibamask._transfer(address,address,uint256).category (#478) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
Shibamask.addLiquidity(uint256,uint256) (#529-542) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
Ensure that all the return values of the function calls are used.
Additional information: link
Shibamask._approve(address,address,uint256).owner (#441) shadows:
- Ownable.owner() (#46-48) (function)
Rename the local variables that shadow another component.
Additional information: link
Shibamask.updateAntiDump(uint256,uint256) (#596-600) should emit an event for:
- antiDumpCycle = timeInMinutes * 60 (#598)
- maxSellAmountPerCycle = _maxSellAmountPerCycle * 10 ** _decimals (#599)
Emit an event for critical parameter changes.
Additional information: link
Shibamask.updateRouterAndPair(address,address).newPair (#591) lacks a zero-check on :
- pair = newPair (#593)
Check that the address is not zero.
Additional information: link
Reentrancy in Shibamask.transferFrom(address,address,uint256) (#235-243):
External calls:
- _transfer(sender,recipient,amount) (#236)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(recipient),block.timestamp) (#553-559)
External calls sending eth:
- _transfer(sender,recipient,amount) (#236)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#240)
- _allowances[owner][spender] = amount (#444)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Shibamask.transferFrom(address,address,uint256) (#235-243):
External calls:
- _transfer(sender,recipient,amount) (#236)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(recipient),block.timestamp) (#553-559)
External calls sending eth:
- _transfer(sender,recipient,amount) (#236)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#534-541)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#445)
- _approve(sender,_msgSender(),currentAllowance - amount) (#240)
Apply the check-effects-interactions pattern.
Additional information: link
Shibamask._transfer(address,address,uint256) (#448-484) uses timestamp for comparisons
Dangerous comparisons:
- newCycle = block.timestamp - userLastSell[from].lastSellTime >= antiDumpCycle (#461)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#31-34) is never used and should be removed
Remove unused functions.
Additional information: link
Shibamask._rTotal (#117) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
solc-0.8.7 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Constant Shibamask._symbol (#136) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#32)" inContext (#26-35)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Shibamask.slitherConstructorConstantVariables() (#95-644) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#133)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Shibamask._tTotal (#116) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- Shibamask.rescueAnyBEP20Tokens(address,address,uint256) (#636-639)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinHunt, CoinGecko, CoinMarketCap
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has relatively low CoinMarketCap rank
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account