15,000 USDC
View results
Submission Details
Severity: high

[H-01] Reentrancy in depositCollateralAndMintDsc function

Summary

Reentrancy vulnerabilities have been found in the depositCollateralAndMintDsc function and other functions within the DSCEngine contract. These vulnerabilities could allow malicious attacks, leading to unwanted behavior in the contract.

Vulnerability Details

The functions in question make external calls and modify state variables after these calls, creating an opportunity for a reentrancy attack. The suggested solution is to implement a nonReentrant modifier to prevent these potential attacks.

Impact

High

Tools Used

Slither

Recommendations

Use nonReentrant modifier

Support

FAQs

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