The distributeAssets()
of LiquidationPool.sol contract lacks access control.
The distributeAssets()
of LiquidationPool.sol contract can be called by anyone with any parameters.
Also, No amount is lost for the attacker except for the gas fees as all amount is transferred from the manager contract.
_collateralRate
of distributeAssets()
can be set very low and _hundredPC
can be set very high by the attacker to forcefully liquidate users position and causing loss of funds for the user.
Manual Analysis
Add the onlyManager
modifer for the distributeAssets()
.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.