Hunt prep
Before you test Teller
What 20 disclosed reports say about Teller: 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 | 12 | 0 | – | – | $0 |
| Access control lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 3 | 0 | – | – | $0 |
| DoS lesson | 2 | 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.
-
CollateralManager#commitCollateral overwrites collateralInfo._amount if called with an existing collateral
The fix should allow the lender to specify the expected collateral information and verify it matches the committed collateral before accepting the bid.
Disclosed
-
Bid submission vulnerable to market parameters changes
The bid submission function should take all market parameters as explicit inputs and compare them to the registry values, reverting if they differ; a fix was made but not applied because market owners are currently trusted.
Disclosed
-
If the collateral is a fee-on-transfer token, repayment will be blocked
The fix was to separate repay and collateral withdraw logic so that repaying a loan in full no longer forces withdrawing collateral.
Disclosed
-
A malicious market owner/protocol owner can front-run calls to lenderAcceptBid and change the marketplace fee to steal lender funds
The fix was to allow lenders to specify a maximum fee they are willing to pay when calling lenderAcceptBid.
Disclosed
-
CollateralManager#commitCollateral can be called by anyone
The function was fixed to revert if called by anyone other than the borrower, their approved forwarder, or TellerV2.
Disclosed
-
Premature Liquidation When a Borrower Pays early
The liquidation check should use the payment due date instead of the last repayment timestamp and should verify that the borrower is actually late.
Disclosed
-
A borrower/lender or liquidator will fail to withdraw the collateral assets due to reaching a gas limit
The fix was to separate the repayment logic from the collateral withdrawal logic, as stated in the discussion.
Disclosed
-
Lender can take borrower's collateral before first payment due
The default calculation should account for when the first payment is due, and sensible minimums for the payment default duration should be enforced.
Disclosed
-
The calculation time methods of `calculateNextDueDate` and `_canLiquidateLoan` are inconsistent
The liquidation logic was revised to align with the due date calculation, as confirmed by the fix review.
Disclosed
-
lender could be forced to withdraw collateral even if he/she would rather wait for liquidation during default
The withdraw function was fixed by adding a check that the caller is the lender (or owner of the loan NFT) when the loan is defaulted.
Disclosed
-
LenderCommitmentForwarder#updateCommitment can be front-run by malicious borrower to cause lender to over-commit funds
The fix tracks the amount of allocated principal instead of decrementing the max principal, as confirmed by the discussion.
Disclosed
-
Malicious user can abuse UpdateCommitment to create commitments for other users
The fix requires that the updated lender is the same as the original lender (msg.sender).
Disclosed
-
updateCommitmentBorrowers does not delete all existing users
The function was fixed by splitting it into separate add and remove functions that explicitly manage borrowers.
Disclosed
-
_repayLoan will fail if lender is blacklisted
The protocol was fixed by adding an escrow contract that receives repayment if the lender cannot, ensuring repayment is always possible.
Disclosed
-
setLenderManager may cause some Lenders to lose their assets
The issue was fixed by using a fixed magic number instead of the lenderManager address to mark NFT-backed loans.
Disclosed