Hunt prep
Before you test eBTC
What 20 disclosed reports say about eBTC: 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 | 11 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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 implementation of EIP- domain separat
The report recommends defining a proper DOMAIN_TYPEHASH constant and constructing the domain separator from it plus the contract-specific values.
Disclosed
-
Users CDPs can be removed unintentionally by CD
The function should be fixed by validating that the input IDs are sorted in the same order as the internal list before removal.
Disclosed
-
When fallback oracle is frozen fetchPrice can r
The code should be changed to switch to using Chainlink price when Chainlink is working and the fallback is frozen, instead of returning INVALID_PRICE.
Disclosed
-
Liquidation Abuse More than half of all assets
The code should check the TCR after each liquidation and stop if TCR >= MCR, as suggested by modifying the while loop condition in CdpManager.sol to include getCachedTCR(totals.price) >= MCR.
Disclosed
-
EBTCTokensol mint function lack of checks allow
The mint function should include the same recipient validation as transfer and transferFrom.
Disclosed
-
Execution of SortedCpds while command may cause
The code should be fixed by using a binary search algorithm or by storing the last CDP with ICR < MCR to reduce the number of iterations.
Disclosed
-
Using batchRedemption even if the TCR becomes s
The TCR check should be performed on every iteration of the redemption loop, not just once before it.
Disclosed
-
Canceled partial redeeming syncs the accounting
The system should update the CDP's stake after syncing its collateral shares even when the partial redemption is cancelled, or avoid syncing before the cancellation check.
Disclosed
-
Use of deprecated Chainlink API can lead contra
Use latestRoundData to fetch the latest round id as recommended by Chainlink.
Disclosed
-
Reentrancy on BorrowerOperations allows users t
The flashLoan function should be protected with a reentrancy guard, as MakerDAO does for its flash loan module.
Disclosed
-
Reentrancy on ActivePool allows users to borrow
The flashLoan function should be protected with a reentrancy guard, as MakerDAO does in its flash loan module.
Disclosed