The withdraw_helper function calculates the new trove balance before calling charge, which may update the deposits map with exceptional redistribution amounts. As a result, the redistribution is overwritten and the user loses the added collateral.
After a shrine is shut down, any redistributed collateral that has not yet been pulled into a trove cannot be released by the caretaker, so it remains locked in the contract. An attacker could not directly exploit this, but users lose access to their redistributed collateral.
The withdrawal path in the Abbot contract incorrectly calls a conversion function that enforces a deposit cap by adding the withdrawn amount to the current total. An attacker can deposit enough to reach the cap, after which all withdrawals for that asset revert, locking every user's funds.
The ERC4626 inflation mitigation in the gate and absorber contracts is insufficient because the total assets are calculated using the contract's token balance, which can be inflated by a direct transfer. An attacker can donate a large amount of tokens to the contract, causing subsequent depositors to receive far fewer shares and lose funds when they withdraw.
The provide() function does not reset withdrawal request timestamps, allowing an attacker to bypass the risk-free yield protection by maintaining valid withdrawal requests across multiple accounts. An attacker could then provide a large amount of yin just before a profitable absorption and immediately withdraw, capturing yield without risk.
The Opus protocol allows anyone to deposit collateral into any trove, not just the owner. An attacker could exploit this by depositing a small amount of a volatile asset into a victim's trove, causing the victim to absorb all bad debt from the attacker's trove during redistribution instead of the loss being shared across all assets.
The Controller contract multiplies the entire integral term by i_gain, including the previously accumulated old_i_term, instead of only the new contribution. This makes the multiplier differ from the documented formula and could affect the yin borrowing rate.
When a collateral asset (yang) is suspended, the system blocks all withdrawals of that asset, not just deposits. This prevents users from replacing the suspended collateral with healthier assets, breaking the intended suspension mechanism.
The deposit share calculation in the Opus protocol divides by 1e18 before multiplying by 1e18, causing precision loss for assets with fewer than 18 decimals. An attacker or user depositing a small amount of such an asset could receive zero shares and lose their deposit.
A logic error in the redistribute_helper function causes a trove's debt to be reset while its collateral remains, allowing the owner to withdraw the collateral and steal from the shrine. An attacker can force redistribution of their own trove to exploit this.
The Shrine's recovery mode lowers the liquidation threshold when the system's overall loan-to-value ratio reaches 70% of its nominal threshold. An attacker can open a large loan to trigger recovery mode and then liquidate previously healthy troves.
In the absorb function, calling shrine.melt after free causes the caller to receive less compensation than intended because free only updates balances for yangs after the first non-zero balance, missing unaccounted updates from earlier zero-balance yangs. An attacker could exploit this to reduce the compensation they receive, though the impact is capped at 50 USD.
OP
Opus
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.