HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Lack of Access Control for Critical Functions

Summary: Several critical functions lack proper access control mechanisms, potentially allowing unauthorized access or modifications.

Root Cause: Functions like _registerCollateralToken, _createContingentPool, and _addLiquidity don't have explicit access controls beyond the base Ownable2Step contract.

Impact: Unauthorized actors could manipulate the system by calling these functions.

Mitigation: Implement role-based access control or restrict these functions to only allow calls from specific addresses or roles.

function _registerCollateralToken(address _collateralToken) internal returns (address) {
require(msg.sender == owner(), "Only the contract owner can register collateral tokens");
// ... rest of the function ...
}
Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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