Skip to content

Sherlock

Teller

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

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

Disclosed reports

Newest first. Only what Teller chose to make public.

Business logic

CollateralManager#commitCollateral can be called on an active loan

The commitCollateral function in CollateralManager does not check if the loan is active, allowing a borrower to add a malicious token as collateral after the loan is accepted. This can block liquidation because the escrow transfer of the malicious token reverts, enabling the borrower to demand a ransom.

Teller

High
Race condition

Bid submission vulnerable to market parameters changes

The bid submission function reads market parameters such as payment cycle and default duration from a registry controlled by the market owner, so a market owner can change these settings while a bid transaction is pending. An evil market owner could set the default duration to zero, accept the bid, and immediately liquidate the loan to seize the borrower's collateral.

Teller

Medium
Business logic

If the collateral is a fee-on-transfer token, repayment will be blocked

The contract records the full amount of collateral deposited, but fee-on-transfer tokens cause the actual received amount to be less. When the borrower repays, the contract tries to withdraw the recorded amount, which exceeds the actual balance, causing the transaction to revert and blocking repayment.

Teller

Medium
Access control

CollateralManager#commitCollateral can be called by anyone

The commitCollateral function in CollateralManager lacked access control, allowing anyone to add collateral to any bid. An attacker could front-run a lender and add a malicious token that, once paused, would block liquidations and loan repayment, enabling ransom of locked funds.

Teller

High
Business logic

Premature Liquidation When a Borrower Pays early

The liquidation check in TellerV2 uses the time since the last repayment rather than the payment due date, so a borrower who pays early can be liquidated before their next payment is due. An attacker could exploit this to liquidate loans prematurely and profit from the collateral.

Teller

Medium
Business logic

Lender can take borrower's collateral before first payment due

The loan default check used when a lender withdraws collateral ignores when the first payment is due, so if the payment default duration is shorter than the payment cycle, the lender can seize the borrower's collateral almost immediately after the bid is accepted. This is especially dangerous when the market operator who sets these parameters is also the lender.

Teller

Medium
Access control

Malicious user can abuse UpdateCommitment to create commitments for other users

The updateCommitment function checks that the caller is the original lender but does not verify that the new lender in the updated commitment is the same as the original. An attacker can create a commitment, update it to set a different lender, and then use malicious loan parameters to steal funds from that lender.

Teller

High
Business logic

updateCommitmentBorrowers does not delete all existing users

The updateCommitmentBorrowers function uses the delete keyword on a mapping that contains an EnumerableSet, which does not clear the underlying mapping. As a result, previously removed borrowers remain in the set and can still call acceptCommitment to obtain a loan.

Teller

Medium
DoS

_repayLoan will fail if lender is blacklisted

The loan repayment function transfers tokens directly to the lender, so if the lender's address is blacklisted by the token (e.g., USDC), the transfer fails and repayment or liquidation is blocked. A lender can exploit this to prevent repayment and cause the borrower to default, potentially leading to loss of collateral.

Teller

High
Business logic

setLenderManager may cause some Lenders to lose their assets

The contract stores the lender manager's address in the bid's lender field when a loan NFT is claimed. If the owner later changes the lender manager, repayments for those loans are sent to the old lender manager address instead of the actual lender, causing loss of funds.

Teller

Medium
Business logic

bids can be created against markets that doesn't exist

The bid submission function did not verify that the referenced market existed, allowing a bid to be created for a non-existent market. When that market was later created, the bid could be accepted but the resulting loan could neither be defaulted/liquidated nor repaid, locking any collateral forever.

Teller

Medium
Business logic

last repayments are calculated incorrectly for "irregular" loan durations

The loan repayment calculation incorrectly identifies the last payment cycle for loans whose duration is not a multiple of the payment cycle, causing the borrower to owe the full remaining principal earlier than expected. An attacker could exploit this by liquidating a borrower who has paid on schedule, taking their collateral.

Teller

Medium
Business logic

defaulting doesn't change the state of the loan

When a loan defaults, the lender can seize the collateral, but the loan's state remains ACCEPTED, so the borrower can keep making payments. An attacker (the lender) could front-run a late payment with a collateral seizure to get both the payment and the collateral.

Teller

Medium