Low level delegte call doesnt check if the contract code exist on address
Delegate low level call has no ability to check if there's deployed contract code exist which delegating to ,So If proxy sending delegate call to empty address , call will success as everything went according to plan and this might lead to loss of funds cause in proxy factory there's no check if the implemantation contract is deployed.
The entire contest funds might stuck in proxy address cause of no implemantation existence check.
Here's the POC for the scenario
This test will pass means delegatecall returns true from empty address...
Foundry test suite-Manuel Review
During an upgrade, check that the new logic contract has code. One solution is to use the extcodesize opcode. Alternatively, you can check for the existence of the target each time delegatecall is used. Here's usage for extcodesize
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.