The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

No Address(0) Check for removeCollateralNative

Summary

The function removeCollateralNative has no check for sending funds to address(0) which allows the owner to effectively burn their native tokens on accident.

Vulnerability Details

There is an unsafe arbitrary call execution to a user input address. Should the owner be able to remove their native collateral by having sufficient collateral, and the owner provides no calldata for the _to variable, the function will execute and send the user's funds to the default address effectively burning their funds.

Impact

Potential loss of all native tokens in the vault.

Tools Used

Manual Review

Recommendations

Add a check that the _to address is not address(0) as is best practice, or specify the recipient as msg.sender or the owner.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic
Assigned finding tags:

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.