Flow

Sablier
FoundryDeFi
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Admin Control Vulnerability

location: /src/abstracts/SablierFlowBase.sol

Description: The contract uses an admin-controlled approach for several critical functions. If an unauthorized entity gains control of the admin address, they could manipulate various aspects of the contract.

  • Code Reference:

function collectProtocolRevenue(IERC20 token, address to) external override onlyAdmin { ... }

Impact:

  • A compromised admin could collect protocol revenues, set fees, or change important contract parameters.

  • This can lead to loss of funds or unauthorized access to contract functionality.

  • Recommendations:

    • Implement multi-signature functionality or a time-lock mechanism for sensitive admin functions to enhance security.

    • Use access control libraries like OpenZeppelin’s Ownable or AccessControl to add flexibility and security to admin functions.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality
inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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