GivingThanks

First Flight #28
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Missing Access Control Inheritance

Summary

The owner variable is defined but not utilized effectively in the GivingThanks contract.

Vulnerability Details

The contract lacks standardized access control functionality for owner-specific functions.

https://github.com/Cyfrin/2024-11-giving-thanks/blob/main/src/GivingThanks.sol#L10

contract GivingThanks is ERC721URIStorage {

Impact

Lack of proper ownership control can make managing the contract’s administrative functions cumbersome and error-prone.

Tools Used

Manual review

Recommendations

Inherit from OpenZeppelin’s Ownable contract to simplify access control:

contract GivingThanks is ERC721URIStorage, Ownable { ... }
Updates

Lead Judging Commences

n0kto Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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