Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: high
Valid

Funds stuck in RAACNFT contract.

Summary

There is no method implemented in the RAACNFT contract to return the user's tokens.

Vulnerability Details

RAACNFT contract allow users to mint nfts by supplying token, an issue with this is that there's no implementation or method to get back these sent tokens, meaning the tokens will be in the contract forever.

Impact

Users funds is lock in RAACNFT contract.

Tools Used

Manual Review

Recommendations

Implement only owner method to get back the user token amounts.

function withdrawFunds() external onlyOwner {
uint256 balance = token.balanceOf(address(this));
require(balance > 0, "No funds to withdraw");
token.safeTransfer(owner(), balance);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACNFT collects payment for NFT minting but lacks withdrawal functionality, permanently locking all tokens in the contract

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACNFT collects payment for NFT minting but lacks withdrawal functionality, permanently locking all tokens in the contract

Support

FAQs

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

Give us feedback!