Closed code423n4 closed 1 year ago
Incorrect. If the function call rolls back due to the failed require statement, the change to totalClaimed
will also be rolled back. This type of issue is why it is highly recommended that wardens write tests to prove their reports.
dmvt marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/SyndicateRewardsProcessor.sol#L51-L73
Vulnerability details
Impact
The totalClaimed amount may have the wrong due balance . totalClaimed receive the due amount even if any failure in call functions.
Proof of Concept
There is no reverting mechanism followed if any failure is in call function.
The status only checked after due amount is added to totalClaimed . If call operation fails its only through the error .
Manual Audit
Recommended Mitigation Steps