DatingDapp

First Flight #33
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Inability to Remove Matches/Unlike Users

Summary

The contract LikeRegistry.sol lacks functions to:

  • Remove entries from the matches array.

  • Reset likes to false (unlike a user).

Proof of Concept

  1. Alice likes Bob, but Bob deletes his profile.

  2. Alice’s matches array still includes Bob’s address, which points to a nonexistent profile.

Impact

  • Stale data accumulates in matches, bloating storage.

  • Users cannot undo accidental likes, harming UX.

  • Matched users remain linked even after burning profiles.

Tools Used

manual review

Recommendations

Add an unmatch function and track matches via mappings

mapping(address => mapping(address => bool)) public isMatched;
function unmatch(address user) external {
delete isMatched[msg.sender][user];
}
Updates

Appeal created

n0kto Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational or Gas

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.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.