Core Contracts

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

Lack of Token Withdrawal Function in RAACNFT Contract

Description

The RAACNFT contract contains a critical vulnerability where tokens sent to the contract become permanently locked. It lacks any mechanism to withdraw the funds sent when users mint RAACNFT.

Impact:

  • Permanent loss of funds.

  • No way to withdraw collected ERC20 tokens

Fix Recommendation:

  • Add functions to withdraw sent tokens

function withdrawTokens(address _token) external onlyOwner {
IERC20(_token).safeTransfer(owner(), IERC20(_token).balanceOf(address(this)));
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 2 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 2 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.