Missing zero address check which will put forfeited rewards at risk(ForefeitHandler.sol) #216
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0xwags
Vulnerability details
Impact
Since users forfeited awards will be shared between either the treasury and the swing trader, there should be a zero address in the initialize() function to ensure rewards are not lost and thereby affecting Malt's collateralisation and other such funding mechanism.
This will have implications for safetransfer() functions in lines 50 & 54 in handleForfeit().
Tools Used
Manual Analysis.
Recommended Mitigation Steps
require(treasuryMultisig&& swingTrader ! =address(0), "0x0");
The text was updated successfully, but these errors were encountered: