DittoETH

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

Potential Reentrancy in Short Record Deletes

Summary

Deleting short records via deleteShortRecord can be vulnerable to reentrancy.

Vulnerability Details

deleteShortRecord calls external contracts to burn NFTs. If these are malicious, they could reenter before state is updated.

For example:

function deleteShortRecord(address asset, address account, uint8 id) external {
NFT(tokenId).burn();
// Vulnerable to reentry here
delete shortRecords[asset][account][id];
}

Impact

Reentrancy could prevent record delete or cause unexpected side effects..

Tools Used

Manual

Recommendations

  • Use checks-effects-interactions pattern

  • Add reentrancy guard

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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