uint256 nextID
variable declared in the Soulmate.sol
has a default value of 0. This allows any address that calls readMessageInSharedSpace
function to able to read the messages of soulmates with id of 0, due to the code implementation of both writeMessageInSharedSpace
and readMessageInSharedSpace
functions, as shown below:
Add the following in the Soulmate.t.sol
file:
Low: Since it has minimal to no impact on the protocol's functionality.
Manual Review
Assign the nextID
variable to a non-default value:
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.