Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

Check if the sender is the owner of the token ID in `writeMessageInSharedSpace()::Soulmate.sol` contract.

Summary

The writeMessageInSharedSpace() function does not check if the sender is the owner of the token ID before writing to the shared space.

Impact

This could allow anyone to write messages in the shared space of any token ID.

Tools Used

Manually

Recommendations

Add a require statement inside the writeMessageInSharedSpace() function, that checks sender is the owner of token ID or not

+ require(idToOwners[id][0] == msg.sender || idToOwners[id][1] == msg.sender, "Sender is not the owner of the token ID");
Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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