DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: medium
Valid

Although the function checks shorter == msg.sender, the user can still buy time for liquidation

Summary

Although the function checks shorter == msg.sender, the user can still buy time for liquidation. Because mas.sender may be another account of the shorter

Vulnerability Details

https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/MarginCallPrimaryFacet.sol#L49

Impact

the user can still buy time for liquidation.

Tools Used

manual

Recommendations

I think this is a design issue, maybe a whitelist of liquidators can be designed to only allow specific users to liquidate

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-570

bernd Auditor
almost 2 years ago
t0x1c Auditor
almost 2 years ago
0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-257

Support

FAQs

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