Soulmate.sol::writeMessageInSharedSpace
. Although it does reference a mapping if a user does not exist in the mapping it would return a zero. Allowing for a non-owner of NFT id 0 to write to the shared space.An individual who does not own any NFT can still right in sharedSpace[0]
.
The owners of NFT 0 now have their shared space open to any malicious individual who wishes to write in their space, breaking the protocol for these users
Foundry
It is recommended to have a check to see if the owner does own a NFT before allowing them to write in the shared space.
Medium Severity, This has an indirect impact and influence on the possibility of divorce between soulmates owning the first soulmate NFT id0, leading to permanent loss of ability to earn airdrops/staking rewards.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.