The LikeRegistry
contract is designed to receive Ether using its receive()
function, but it lacks a corresponding function to allow the contract's owner to withdraw these funds.
The LikeRegistry
contract's receive()
function allows it to accept Ether transfers. However, there's no withdraw()
function or any other mechanism to send the accumulated Ether back to an authorized account. This means any Ether accidentally or intentionally sent to the contract will be permanently locked and unrecoverable.
This vulnerability leads to a loss of funds. Any Ether sent to the LikeRegistry
contract, regardless of the intention, becomes inaccessible. The contract's owner loses the ability to utilize or recover any Ether that accidentally or intentionally gets deposited. This represents a direct financial loss.
Manual code review
Implement withdraw function.
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.