DittoETH

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

Incorrect Owner Check

Summary

The ownerOf() function does not properly verify token ownership.

Vulnerability Details

ownerOf() calls _ownerOf() which simply returns the mapped owner address. It does not verify that the token actually exists first.

This could allow ownerOf() to return a non-zero owner for a non-existent token ID.

Impact

Makes it appear tokens are owned when they are not actually minted.

Could disrupt systems relying on ownerOf() checks.

Tools Used

Manual

Recommendations

Call _exists() first in ownerOf() to properly validate.

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.