56776 sc high tvl manipulation via missing mytsharesdeposited decrement in liquidations
Description
2. Description
Vulnerability Overview
Root Cause
// LINE 546: Transfer MYT to transmuter
TokenUtils.safeTransfer(myt, transmuter, amountLiquidated - feeInYield);
// LINE 550: Transfer fee to liquidator
if (feeInYield > 0 && account.collateralBalance >= feeInYield) {
TokenUtils.safeTransfer(myt, msg.sender, feeInYield);
}
// ❌ MISSING: _mytSharesDeposited -= amountLiquidated;Attack Flow
Impact
Link to Proof of Concept
Proof of Concept
3. Proof of Concept
Step-by-Step Reproduction
Validation Steps
Code References
Mitigation
Previous57749 sc low zeroxswapverifier misses critical sender recipient minout validations allowing malicious 0x calldata to drain funds critical direct theft Next57023 sc high global earmark not reduced in forcerepay lets redeem over burn global debt cross account leakage protocol insolvency
Was this helpful?