MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Invalid

Owner could not receive nft with liquidity back from contract

Summary

Contract L2TokenReceiver can receive nft (from owner) but owner could not extract it back,

Vulnerability Details

As we can see, contract L2TokenReceiver contract could accept nft

function onERC721Received(address, address, uint256, bytes calldata) external pure returns (bytes4) {
return this.onERC721Received.selector;
}

And sponsor Ruslan said, that they will send nft with token liquidity to contract.
But owner could not (if will want) get this nft back.

Impact

Contract always will keep nft with token's liquidity and owner could not extract it

Tools Used

Manual review

Recommendations

Add function withdraw with modifier onlyOwner, which allow owner receive nft with liquidity

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
sovaslava Submitter
over 1 year ago
inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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