Anyone can write in the shared space by calling Soulmate::writeMessageInSharedSpace
.
To write in the shared space the function writeMessageInSharedSpace
checks the id of the soul token owned by the caller by uint256 id = ownerToId[msg.sender];
, for a user that doesn't have a soulmate token, this will result in id = 0
and therefore will be allowed to write a message in the space of the owners of token id 0.
Copy the following test into SoulmateTest.t.sol
and run forge test --mt test_write_in_shares_space_0
Any user will be able to write a message in the space of the owners of token id 0.
Foundry
Change starting tokenId in Soulmate.sol
to 1 and only allow users with token ID greater than 1 to write messages.
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.