52314 sc low unsold token withdrawal causes permanent inventory mismatch
Description
Brief/Intro
Vulnerability Details
function getMaxNumberOfTokens(address _tokenContract)
external view returns (uint256)
{
TokenInfo storage info = _getPurchaseStorage().tokenInfo[_tokenContract];
return info.totalAmountForSale - info.amountSold;
}Impact Details
References
Proof of Concept
Previous50040 sc low missing pause controls eth refund flaws and miscalculated shares enable fund loss and protocol inconsistency in depositandbridgeNext51836 sc low contract cannot be paused despite inheriting pausable
Was this helpful?