Skip to content

Code4rena

Opus

Every publicly disclosed report for Opus and what kind of bugs they were.

disclosed reports
13
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Opus on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Opus chose to make public.

Business logic

after shut, no pulled redistribution yang will be locked

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.

Opus

Medium
DoS

Attacker can lock every trove withdrawals

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.

Opus

Medium
Smart contracts

ERC4626 inflate issue mitigation is not sufficient

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.

Opus

Medium
Business logic

The provide() function does not reset withdrawal requests, allowing an attacker to bypass risk-free yield tactics protection

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.

Opus

Medium
Smart contracts

Multiplier is incorrectly calculated in Controller

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.

Opus

Medium
Business logic

Collateral cannot be withdrawn from trove once yang is suspended

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.

Opus

Medium
Audit finding

convert_to_yang_helper() loss precision

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.

Opus

High
Business logic

Loss of liquidation compensation assets in absorb

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.

Opus

Medium