A vulnerability stems from PerpsEngineConfigurationBranch.sol in the configureMarginCollateral() function making the protocol open to high leverage risk.
The function allows setting a loanValue ratio exceeding 100%(1e18 in 18 decimals) this vulnerability creates a path for high leverage risk, which we assume will be harmful to the protocol.
This loan to value parameter dictates how much debt a user can take per unit of collateral for instance LTV=1.2e18 allows borrowing 120 percent of the collateral value. But here they're no checks to ensure that loanValue <= 1e18 leaving it open for users to borrow more than collateral value .
Users can borrow more than deposited collateral and withdraw profits.
POC
``
Manual review
Add LTV validation in configureMarginCollateral() function.
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.