The Standard

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

LiquidationPool.distributeAssets function lacks permission control

Summary

LiquidationPool.distributeAssets function lacks permission control

Vulnerability Details

The distributeAssets function has no permission controls, which allows anyone to call this function. This function should only be called by LiquidationPoolManager.
##Impact
An attacker can construct arbitrary parameters to call the distributeAssets function:

  1. Transfer tokens from LiquidationPoolManager contract to LiquidationPool contract

  2. Burn the EURO tokens of the LiquidationPool contract.

Tools Used

Recommendations

It is recommended to add permission control

function distributeAssets(ILiquidationPoolManager.Asset[] memory _assets, uint256 _collateralRate, uint256 _hundredPC) external payable
onlyManager {...}
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.