Core Contracts

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

Funds will be locked in the RAACNFT contract

Summary

Funds will be locked in the RAACNFT contract

Vulnerability Details

In RAACNFT contract, users can buy one NFT to participate the RAAC system via function mint(). In mint(), users will get one specific NFT according to this specific NFT's price.

The problem is that there is not one interface in RAACNFT contract to withdraw these funds. All these funds will be locked in the RAACNFT contract forever.

function mint(uint256 _tokenId, uint256 _amount) public override {
uint256 price = raac_hp.tokenToHousePrice(_tokenId);
if(price == 0) { revert RAACNFT__HousePrice(); }
if(price > _amount) { revert RAACNFT__InsufficientFundsMint(); }
token.safeTransferFrom(msg.sender, address(this), _amount);

Impact

All funds in the RAACNFT will be locked foreve.

Tools Used

Manual

Recommendations

Add one interface to withdraw these funds.

Updates

Lead Judging Commences

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