Core Contracts

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

Lack of Access Control in FeeCollector.sol

Author Revealed upon completion

Vulnerability Details

The collectFees() function in FeeCollector.sol lacks proper access control, allowing any user to call it and potentially disrupt fee collection processes.

Impact

Unauthorized users could interfere with fee collection, leading to loss of funds or denial of service.

Recommendations

Implement Access Control

Restrict access to the collectFees() function to authorized roles using OpenZeppelin's AccessControl or Ownable contracts.

import "@openzeppelin/contracts/access/Ownable.sol";
contract FeeCollector is Ownable {
function collectFees(address token) external onlyOwner {
// Fee collection logic
}
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 8 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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