DatingDapp

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

ETH Can Be Locked in LikeRegistry

Summary

If a user sends ETH to LikeRegistry by mistake, it gets stuck forever unless the withdrawFees() function is used.

The receive() function exists but doesn’t allow the owner to withdraw random ETH deposits.

Impact

ETH Can be locked forever

Recommendations

function emergencyWithdraw() external onlyOwner {
(bool success,) = payable(owner()).call{value: address(this).balance}("");
require(success, "Withdraw failed");
}

Updates

Appeal created

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

Users mistake, only impacting themselves.

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.

Support

FAQs

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