15,000 USDC
View results
Submission Details
Severity: medium

[M-05] It is allowed any token for redeems collateral functions

Summary

Redeem functions do not make use of the isAllowedToken modifier

Vulnerability Details

The redeemCollateralForDsc function allows burning DSC without verifying that the tokens used as collateral are allowed.
Allowing the burning of tokens but without returning the collateralized tokens because the transaction will fail since there will be no balance of the unlisted tokens. Without the user knowing what happened and burning their tokens.

Impact

High

Tools Used

Manual code reviw

Recommendations

Use isAllowedToken modifier for both functions.

Support

FAQs

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