Core Contracts

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

Stuck Funds Due to Missing Withdrawal Functionality in the `RAACNFT` Contract

Summary

The RAACNFT contract collects ERC20 tokens during NFT minting, but it lacks any function to withdraw or manage these funds. This oversight results in tokens being permanently stuck in the contract.

Vulnerability Details

token.safeTransferFrom(msg.sender, address(this), _amount);

During the mint process, users transfer ERC20 tokens to the contract as payment for minting NFTs. Although the contract refunds any excess funds if the user overpays, there is no mechanism for the owner or any other authorized party to withdraw the collected funds. Without such a function, the funds remain locked in the contract indefinitely.

Impact

  • Inaccessible Funds: The tokens accumulated by the contract cannot be retrieved, which may cause significant financial loss.

  • Operational Issues: The inability to access funds may prevent proper reinvestment or distribution of the collected tokens, leading to liquidity problems.

Tools Used

  • Manual Review

Recommendations

Introduce a withdrawal function to allow authorized parties (typically the owner) to transfer the collected ERC20 tokens from the contract.

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!