The Soulmate::writeMessageInSharedSpace
function allows any user with a valid ID to write a message in the shared space. However, a user who hasn't called mintSoulmateToken
has an ID of 0 . In this way, he/she can write a message in the shared space of the soulmate pair that have the id = 0 and overwrite their messages.
The function does not validate that the caller is a legitimate soulmate before updating the shared space. This means that the initial user without a soulmate can overwrite messages intended for the soulmates who are assigned the ID of 0.
Manual review
Modify the writeMessageInSharedSpace
function to include a check that ensures the caller is a soulmate before allowing them to update 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.