52732 sc medium permanent dos of purchase token change
Description
Brief/Intro
Vulnerability Details
function setPurchaseToken(address purchaseTokenAddress) external onlyRole(DEFAULT_ADMIN_ROLE) {
PurchaseStorage storage ps = _getPurchaseStorage();
if (ps.enabledTokens.length() > 0) {
revert CannotChangePurchaseTokenWithActiveSales();
}
...
}Impact Details
Proof of Concept
References
Previous51918 sc insight redundant zero address checks for router address Next50312 sc insight validator can steal user rewards due to a lack of cooldown when validator increases commission
Was this helpful?