Anyone can send a message through the Soulmate::writeMessageInSharedSpace
so the soulmates with the nft Id0 will have messages sent on his behalf or have override messages
Description:
Anyone can call the function Soulmate::writeMessageInSharedSpace
and override the message sent by the soulmate nft id0. Nevertheless, anyone can send an offensive message and cause a divorce leading to a loss of the airdrop rights. Considering the correction of "Soulmate being able to withdraw LoveToken
from the period after divorce, leading to a loss of funds to protocol" finding, this can even be worse.
If an offensive message is sent through the breach, one of the soulmates sees, claims the withdrawal, and immediately gets divorced, the other soulmate will be directly private of his airdrop funds.
Impact:
Malicious users can send an offensive message leading to a divorce and loss of LoveTokens
.
Proof of Code:
Recommendation:
Add a checker in the function. See the example below.
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.