Liked address can be zero address, potentially leading to locked funds. if user cannot find a match funds will be locked. it should not accept deposit if one of the params is incorrect.
Impact: Funds could be locked in the contract if zero address is used for liked
.
Proof of Concept:
Recommended Mitigation: Add zero address check:
Please read the CodeHawks documentation to know which submissions are valid. If you disagree, provide a coded PoC and explain the real likelihood 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.