Fund With The Zero Amount Leads To DOS On The Contract #163
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
G (Gas Optimization)
Lines of code
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraVestedEscrow.sol#L96
Vulnerability details
Impact
On the contract, Recipients can be funded with rewardTokens through fund function. However, the external call can be made with zero amount and totally will lock fund function with initialised variable.
Proof of Concept
https://github.com/code-423n4/2022-05-aura/blob/main/contracts/AuraVestedEscrow.sol#L96
Tools Used
code review
Recommended Mitigation Steps
Ensure that funding didn't complete with "zero amount". Compare _recipient and _amount size in the function. If arrays sizes are not equal, the function always will revert.
The text was updated successfully, but these errors were encountered: