Skip to content

Code4rena

eBTC Zap Router

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

disclosed reports
14
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find eBTC Zap Router on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what eBTC Zap Router chose to make public.

Business logic

Incorrect comparison logic in post-operation checks

The post-operation validation function in LeverageMacroBase has reversed comparison logic for the gte and lte operators, so checks that should enforce a minimum or maximum value instead enforce the opposite. This could allow operations to pass validation when they should fail, potentially enabling manipulation of CDP states.

eBTC Zap Router

Medium
Smart contracts

Staking ETH incorrectly assumes revert bubbling

The zap router staked ETH with Lido using a low-level call that ignored reverts, so when Lido paused staking or hit its stake limit the deposit silently failed and the CDP flow continued, potentially losing the user's ETH or leaving the position in an unexpected state.

eBTC Zap Router

Medium
Business logic

Loss of user funds, as LeverageMacroReferences can’t do an arbitrary system call to the function claimsSurplusCollShare in order to claim the extra surplus collateral gained from their liquidated or fully redeemed Cdps

LeverageMacroReference contracts cannot claim surplus collateral from fully redeemed or liquidated Cdps because they block arbitrary calls to system contracts, including the only function that can claim it. This causes the surplus collateral to be permanently stuck in CollSurplusPool.

eBTC Zap Router

High
Business logic

The way fees are accounted can break the sorted list order

The fee accounting mechanism in eBTC can cause the sorted list of CDPs to become unordered because new CDPs receive a higher stake than older ones, leading to different rates of change in their collateral ratios. An attacker could potentially exploit this to cause a denial of service or manipulate redemption order, though the report's proof of concept only shows a tiny ordering break under extreme conditions.

eBTC Zap Router

Medium
Audit finding

fetchPrice can return different prices in the same transaction

The price feed contract can return two different prices within the same transaction when the Chainlink price changes by more than 50% and no fallback oracle is configured. An attacker could exploit this to perform arbitrage, gaining a collateral surplus at the protocol's expense.

eBTC Zap Router

Medium
Business logic

Batched liquidations doesn’t distribute bad debt on next batches in the list

When a batch liquidation creates bad debt, the redistribution index is not updated after each liquidation, so subsequent liquidations in the same batch use an incorrect debt value. This means less debt is liquidated and more collateral goes to the CDP owner, while other users must cover the skipped bad debt.

eBTC Zap Router

Medium
Business logic

Attacker can utilize function CdpManager.redeemCollateral() to break the order of sortedCdps

The redeemCollateral function reinserts a partially redeemed CDP into the sorted list before fully redeemed CDPs are removed, allowing an attacker to supply crafted hints that place the CDP in the wrong position. This can disrupt the sorted order, potentially causing incorrect returns from HintHelpers and unfair priority redemption of high-NICR CDPs.

eBTC Zap Router

Medium
Business logic

Redemptions are inconsistent with other cdp’s operations

Redemptions in the eBTC CDP system are not subject to the same collateral-ratio checks as other CDP operations, so a redemption can reduce the system's total collateral ratio and push it into recovery mode. An attacker could use this to trigger recovery mode unintentionally, though the report notes the scenario is unlikely.

eBTC Zap Router

Medium
Business logic

auraBAL can be stuck into the Strategy contract

The strategy contract calculates rewards by comparing token balances before and after claiming, so any auraBAL sent to the contract outside that claim window is not counted and becomes stuck. An attacker can call the public reward claim function for the strategy, causing auraBAL to be transferred but not harvested, and since auraBAL is a protected token it cannot be swept.

eBTC Zap Router

High
Business logic

_harvest has no slippage protection when swapping auraBAL for AURA

The _harvest function performs token swaps without any slippage or deadline protection, making it vulnerable to sandwich attacks and other MEV exploits. An attacker could exploit this to cause significant loss of yield.

eBTC Zap Router

Medium
Access control

Attacker can call sweepRewardToken() when bribesProcessor==0 and reward funds will be lost because there is no check in sweepRewardToken() and _handleRewardTransfer() and _sendTokenToBribesProcessor()

The contract's sweepRewardToken function transfers reward tokens to the bribesProcessor address without checking if it is the zero address. If bribesProcessor is unset or set to zero, an attacker can call sweepRewardToken to send all reward tokens to the zero address, causing permanent loss.

eBTC Zap Router

High