During the review of the likeUser
function in the smart contract, it was observed that the function call on line 46matchRewards(liked, msg.sender);
has undergone an unauthorized change from its original flow. This alteration may impact the intended reward distribution logic and potentially introduce security risks.
Incorrect Role Assignment in matchRewards
Originally, matchRewards
was likely designed to process rewards in a specific order:
from
(the user initiating the match)
to
(the user receiving the like)
However, with the current order matchRewards(liked, msg.sender);
, the liked user (liked
) is now being treated as the sender (from
), while the actual sender (msg.sender
) is being treated as the recipient (to
).
Parameter altered as per the original flow of the like likeuser
user function.
Manual Method
Make the parameter order as according to the flow
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelyhood and the detailed impact on the mainnet without any supposition (if, it could, etc) to prove your point.
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.