Hunt prep
Before you test eBTC Zap Router
What 14 disclosed reports say about eBTC Zap Router: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 9 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Incorrect comparison logic in post-operation checks
The comparisons in the _doCheckValueType function should be reversed so that gte checks valueToCheck >= check.value and lte checks valueToCheck <= check.value.
Disclosed
-
Staking ETH incorrectly assumes revert bubbling
The code should call Lido's submit function directly so that any revert propagates, and the report notes the team agreed to fix it.
Disclosed
-
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
Add a dedicated claim surplus operation to LeverageMacroReference that calls borrowerOperations.claimSurplusCollShares, rather than allowing arbitrary calls to system contracts.
Disclosed
-
The way fees are accounted can break the sorted list order
The eBTC team needs to rethink the fee/debt redistribution to maintain the list order, as no quick fix was found.
Disclosed
-
fetchPrice can return different prices in the same transaction
The logic should be adjusted so that when the fallback oracle is not set and the Chainlink price change exceeds the maximum, the status remains bothOraclesUntrusted and the last good price is consistently returned, as suggested in the sponsor's alternative fix.
Disclosed
-
When calling LeverageMacroBase.doOperation to open a CDP, the POST CALL CHECK may use the wrong cdpId
The fix should store the newly created cdpId in a slot during _openCdpCallback and read it in the post-call check, then reset it.
Disclosed
-
Batched liquidations doesn’t distribute bad debt on next batches in the list
Redistribute bad debt after each liquidation in the batch when bad debt occurs.
Disclosed
-
Attacker can utilize function CdpManager.redeemCollateral() to break the order of sortedCdps
The partially redeemed CDP should be reinserted after the fully redeemed CDPs are removed from the sorted list.
Disclosed
-
Redemptions are inconsistent with other cdp’s operations
The maintainer plans to add a check to prevent directly triggering recovery mode, but acknowledges it may still be possible and will monitor the situation.
Disclosed
-
auraBAL can be stuck into the Strategy contract
The contract was fixed by refactoring the reward calculation to use absolute balances instead of a before-and-after delta.
Disclosed
-
Badger rewards from Hidden Hand can permanently prevent Strategy from receiving bribes
The fix was to remove the direct transfer to the Badger Tree and rely only on _processExtraToken to send BADGER through the Vault.
Disclosed
-
Withdrawing all funds at once to vault can be DoS attacked by frontrunning and locking dust
The withdraw-all function should call processExpiredLocks(false) directly and remove the zero-balance check.
Disclosed
-
_harvest has no slippage protection when swapping auraBAL for AURA
The project mitigated by using private transactions for harvest and refactoring to include a slippage tolerance.
Disclosed
-
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 was mitigated by adding a zero-address check in _sendTokenToBribesProcessor.
Disclosed