Skip to content

Immunefi

eBTC

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

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

Disclosed reports

Newest first. Only what eBTC chose to make public.

Crypto

Incorrect implementation of EIP- domain separat

The contract builds its EIP-712 domain separator using a type hash that does not match the expected domain type schema, so the separator is non-standard. The author states this does not directly introduce a security vulnerability but could cause signatures to fail validation externally and create mismatched assumptions between the contract and clients.

eBTC

Informational
DoS

Potential for Denial-of-Service in the redeemCo

The redeemCollateral function in CdpManager loops over CDPs and can consume excessive gas when a large debt amount is redeemed against many small CDPs, causing the transaction to revert. An attacker could deliberately trigger this to prevent legitimate users from redeeming collateral.

eBTC

Informational
Business logic

Ther is an invariant Check Failure in flashLoan

The report claims that the flashLoan function's invariant check assumes the collateral share rate stays constant during the transaction, but an attacker could manipulate the rate within the same transaction to bypass the check. This could allow unjust profit or, in severe cases, protocol insolvency.

eBTC

Informational
Smart contracts

Users CDPs can be removed unintentionally by CD

The batchRemove function in SortedCdps assumes the provided CDP IDs are sorted in the same order as the internal linked list. If an unsorted array is passed, it can remove additional CDPs that were not specified, causing those users to lose their positions and be unable to claim rewards or collateral.

eBTC

Informational
Business logic

When fallback oracle is frozen fetchPrice can r

When the fallback oracle is frozen and the status is usingFallbackChainlinkFrozen, fetchPrice returns INVALID_PRICE even if Chainlink is working, so the caller uses the last good price. An attacker could exploit the price difference between the last good price and the actual Chainlink price to gain a collateral surplus, potentially leading to protocol insolvency.

eBTC

Informational
Business logic

Liquidation Abuse More than half of all assets

In recovery mode, a liquidator can choose to liquidate CDPs with ICRs close to the TCR first, which slowly raises the TCR and allows more CDPs to be liquidated than if the lowest-ICR CDP were liquidated first. This can lead to more than half of the protocol's collateral being liquidated in a single transaction, causing significant losses to the protocol.

eBTC

Informational
Business logic

EBTCTokensol mint function lack of checks allow

The mint function in EBTCToken.sol lacks the recipient check that transfer and transferFrom enforce, allowing tokens to be minted directly to the token contract itself. An attacker with minting permission could mint tokens to the contract, bypassing the balance restriction and causing those tokens to become stuck.

eBTC

Informational
Business logic

Unfair Liquidation when ICR equals TCR in redee

The liquidation check in the eBTC protocol uses a less-than-or-equal comparison, so a CDP whose individual collateral ratio equals the total collateral ratio can be liquidated during recovery mode. This contradicts the documentation, which states that only CDPs with an ICR below the TCR can be liquidated, allowing an unfair liquidation.

eBTC

Informational
Business logic

Static MIN_CHANGE threshold and lack of relativ

The contract enforces that any debt or collateral change is either zero or at least a fixed minimum of 1000 wei, with no check relative to the size of the CDP. An attacker could repeatedly make tiny adjustments to leave dust amounts in CDPs, wasting gas and complicating accounting and liquidations.

eBTC

Informational
DoS

Execution of SortedCpds while command may cause

The redemption logic in the eBTC protocol uses a while loop that iterates over CDPs with ICR below the MCR, causing gas costs to grow linearly with the number of such CDPs. An attacker could create many such CDPs to make redemptions prohibitively expensive or cause out-of-gas errors, leading to gas loss for users.

eBTC

Informational
Business logic

Trycatch will not function with internal type

The report claims that try/catch in Solidity only works for external calls and contract creation, so the internal functions in PriceFeed.sol that fetch Chainlink responses cannot be caught if they revert. The author suggests this could leave Chainlink variables unupdated, but provides no working test against the target.

eBTC

Informational
Business logic

Using batchRedemption even if the TCR becomes s

The eBTC protocol blocks redemptions when the total collateral ratio (TCR) falls below the minimum collateral ratio (MCR), but the check is only performed once at the start of a redemption. An attacker can redeem multiple CDPs in one call, and after the first redemption pushes the TCR below the MCR, the loop continues to redeem further CDPs, bypassing the intended restriction.

eBTC

Low
Business logic

Canceled partial redeeming syncs the accounting

When a partial redemption is cancelled, the system has already synced the CDP's collateral shares but fails to update its stake to match the new stake ratio. This can cause the CDP to pay an incorrect split fee or bad debt later.

eBTC

Low
DoS

Use of deprecated Chainlink API can lead contra

The ChainlinkAdapter contract uses the deprecated latestRound() function from Chainlink, which may return zero in future upgrades. This would cause the adapter to fail and the system to rely on fallback oracles or the last good price.

eBTC

Low
Business logic

Lido slashing can negatively affect the whole l

A Lido slashing event reduces the value of stETH shares, which lowers the underlying value of all CDP collateral and liquidator rewards. This can make liquidations of small CDPs unprofitable, potentially trapping the protocol in recovery mode and preventing users from withdrawing collateral.

eBTC

Informational
Audit finding

The system protects from any rounding issues wh

In recovery mode, liquidating a CDP with ICR below MCR can produce a non-zero collateral surplus for the borrower due to rounding, whereas normal mode forces any surplus back to the liquidator. This breaks the invariant that no surplus should be issued when liquidating undercollateralised CDPs.

eBTC

Low
Race condition

Reentrancy on BorrowerOperations allows users t

The BorrowerOperations contract's flashLoan function lacks reentrancy protection, allowing a borrower to re-enter the function during the callback and borrow more than the maximum flash loan limit. An attacker could thus obtain a larger flash loan than intended, though the contract does not lose value.

eBTC

Informational
Race condition

Reentrancy in BorrowerOperationsflashLoan enabl

The flashLoan function in BorrowerOperations lacks a reentrancy guard, allowing a malicious receiver contract to re-enter the function during the onFlashLoan callback and repeatedly borrow eBTC. This lets an attacker bypass the maximum flash loan amount and mint an unlimited amount of eBTC.

eBTC

Informational
Race condition

Reentrancy on ActivePool allows users to borrow

The ActivePool contract's flashLoan function lacks a reentrancy guard, so a borrower's callback can call flashLoan again before the first loan is repaid. This lets an attacker borrow more than the maximum flash loan limit, potentially draining the pool's collateral.

eBTC

Informational
Business logic

FlashLoan can be taken with no fee to be paid

The flash loan fee calculation in ActivePool rounds down to zero for small loan amounts, so borrowers pay no fee at all. The reporter also claims the flash loan function lacks reentrancy protection, allowing repeated re-entry to accumulate fee-free loans.

eBTC

Informational