The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: high
Valid

Missing permissions check on LiquidationPool.distributeAssets function

Summary

Function distributeAssets in contract LiquidationPool has no permissions checks, but must be called only by LiquidationPoolManager contract.

Vulnerability Details

Function distributeAssets recalculates rewards based on the passed in parameter _assets . Since the onlyManager modifier is missed, anyone can call the function and pass any assets with any amounts. Based on the passed parameter values the function recalculates rewards, so the issue has high severity.

Impact

Anyone can call the function and recalculate rewards.

Tools Used

Manual review

Recommendations

Add onlyManager modifier to the function.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

distributeAssets-issue

Support

FAQs

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