Flow

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

Fee and Revenue Collection Manipulation Due to Lack of Capping and Validation

Summary

In SablierFlowBase.sol, functions like collectProtocolRevenue and recover handle protocol fee collection without enforcing checks on the accuracy or limits of fees. This could lead to unauthorized revenue manipulation.

Vulnerability Details

The collectProtocolRevenue and recover functions allow the accumulation of fees but lack checks for validating or capping the amounts:

function collectProtocolRevenue(...) external {
// No capping or strict validation on collected revenue
}

Without additional controls, attackers could potentially manipulate the fee structure and collect excess protocol revenue.

Impact

Uncapped or unchecked fee collection can lead to:

  1. Financial inconsistencies in protocol revenue.

  2. Potential loss of funds or imbalances in protocol resources.

Tools Used

Manual code review

Recommendations

Add validation checks to ensure fee calculations are accurate and implement caps to prevent excessive revenue accumulation.

Updates

Lead Judging Commences

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.