Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: high

Non whitelisted tokens can stuck forever

Summary

If someone from sponsors send non whitelisted tokens to Proxy.sol there no have way to get it back even owner can't withdraw it. So there have possibility for locked funds in contract forever.

Vulnerability Details

If sponsors non whitelisted tokens to Proxy.sol address , there no have function/way to get it back / unlock it. Also owner no have that ability

Impact

Locked non whitelisted tokens forever

Tools Used

Manual Review

Recommendations

Adding function with onlyOwner modifier to can rescue stucked toekns on contracts like

function rescueTokens(IERC20 _token, uint256 _amount ) public onlyOwner {
_token.safeTransfer(msg.sender, _amount);
}

Support

FAQs

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