Soulmate::writeMessageInSharedSpace Anyone can distort the messages of the first couple.
Because anyone without the minted Soulmate Token, when calling ownerToId() of the Soulmate contract, will always return ID 0, they can maliciously manipulate the messages of the first couple, since the ID of the first couple is 0.
Add this test to SoulmateTest.t.sol and run forge test --match-test test_DistortFirstCoupleMessage -vvvv
the issue
Anyone can distort the messages of the first couple
manual inspection
Modify the ID to start counting from 1, or in writeMessageInSharedSpace, check if the caller has already call the mintSoulmateToken function. If not, revert.
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.