Core Contracts

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

All tokens collected in RAACNFT contract for NFTs minting will be permanently stuck.

Summary

mint function in RAACNFT contract allows users to mint RAAC NFTs to buy tokenised houses. Minting a RAAC NFT requires a certain amount of tokens, determined by the call to the oracle getter tokenToHousePrice.

The problem arises because there is no mechanism to withdraw these tokens from the RAACNFT contract to the treasury or to any other address, which will leads to tokens being locked forever in the contract.

Vulnerability Details

A user calls mint function after approving the required amount to be transferred to the contract with safeTransferFrom. Tokens are transferred to the RAACNFT contract and the user receives a RAAC NFT with a unique id.

After that, the RAACNFT contracts holds tokens but is unable to do anything with it.

Impact

The impact of this issue is high as it leads to permanent loss of all funds sent by users to buy RAAC NFTs.

Tools Used

Manual review

Recommendations

Make sure to add a function to withdraw these tokens to the treasury or another address.

Updates

Lead Judging Commences

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