Core Contracts

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

Attacker Steal money of users

Summary

In veRAACToken.solin transferFrom function Malicious user will give from address as user address and to address as own address. Using this malicious user will be able to steal money from other user.Using this malicious user will be able to steal money from other user.

Vulnerability Details

In veRAACToken.solin transferFrom function Malicious user will give from address as user address and to address as own address. Using this malicious user will be able to steal money from other user.

function transferFrom(address from, address to, uint256 amount) public virtual override(ERC20, IveRAACToken) returns (bool) {
return super.transferFrom(from, to, amount);
}

Impact

Users will lost his own money.

Tools Used

Manual review

Recommendations

In veRAACToken.solin transferFrom function use sender address equal to msg.sender

function transferFrom(address from, address to, uint256 amount) public virtual override(ERC20, IveRAACToken) returns (bool) {
+ // Logic for from = msg.sender or not ? if not then revert
return super.transferFrom(from, to, amount);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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