The MixOracle::getThePrice() function uses the wrong token decimals when scaling the price, causing inflated or deflated prices for token pairs with different decimal scales. An attacker could exploit this to cause loss of funds for users or systems relying on the oracle.
A lend offer in perpetual mode with zero available amount can be deleted multiple times because the changePerpetual function does not set isActive to false. This repeatedly decrements activeOrdersCount, eventually preventing other lend offers from being deleted.
The fee percentage for connecting offers is calculated with integer division that rounds down, causing a precision loss. A borrower can set the loan duration to just below a day boundary to pay less than the intended fee, with the loss reaching up to a quarter of the daily fee.
When a borrower extends a non-perpetual loan, interest is accrued and the lender's interestPaid is updated. Later, when the borrower repays the debt, the unpaid interest overwrites the previously accrued interestToClaim, causing the lender to lose the interest earned during the extension period.
A borrower could obtain principal tokens without paying any collateral because the collateral calculation rounds down to zero for small loan amounts. By exploiting this rounding error, an attacker could repeatedly borrow small amounts and drain the protocol's funds.
The updateFunds function in DebitaIncentives exits early when it encounters a non-whitelisted principle-collateral pair, skipping all subsequent valid pairs. This prevents lenders and borrowers from having their incentive amounts recorded, so they cannot claim incentives they are owed.
The TaxTokensReceipt NFT contract overrides transferFrom to only allow transfers involving borrow orders, lend orders, or loans, but not buy orders. As a result, holders cannot sell their TaxTokensReceipt NFTs to a buy order, breaking that feature.
The extendLoan function calculates the fee for extending a loan using the absolute deadline timestamp instead of the extended duration, which can cause borrowers to pay more fees than necessary. An attacker could exploit this to cause financial loss to users, though the report does not specify an attack path.
A lender who makes their lend offer perpetual after a loan has been extended loses the interest accrued before the extension, because the repayment function marks the debt as claimed and prevents later claiming. The lost interest remains locked in the contract.
When a seller completes a buy order by selling an NFT, the NFT is transferred to the buy order contract instead of the order creator. The order creator loses the NFT, while the seller receives the buy token.
The sellNFT function in buyOrder.sol lacks reentrancy protection, allowing a malicious contract to repeatedly call it and delete multiple buy orders. This temporarily blocks the orderbook, preventing users from viewing, deleting, or selling positions.
The fee calculation for extending a loan incorrectly subtracts the initial fee from the maximum deadline fee, causing an arithmetic underflow when both durations are less than 24 hours. This prevents borrowers from extending such loans.
The TaxTokenReceipt NFT contract overrides transferFrom to require that either the sender or receiver is a Debita contract (BorrowOrder, LendOrder, or Loan). When a loan is auctioned, the NFT is held by the Auction contract, which is not one of those, so nobody can buy it, locking the collateral and causing lenders to lose funds.
The extendLoan function calculates the fee for extending a loan using the offer's maximum deadline instead of the actual extended period, leading to inflated fees. Borrowers are charged more than they should be when extending their loans.
The addFunds function in DLOImplementation lacks a check that the lend order is active, allowing an attacker to add funds to a cancelled order and then cancel it again, repeatedly decrementing the factory's activeOrdersCount until it reaches zero. This causes deleteOrder to revert with an arithmetic underflow, blocking all lenders from cancelling their orders and preventing non-perpetual lend orders from being fully matched.
The incentive claim function rounds each user's share to two decimal places, leaving a small fraction of the total incentives unclaimable. Over many epochs and users, these fractions accumulate and become permanently locked in the contract.
The auction contract does not account for fee-on-transfer tokens when buying a taxTokensReceipt NFT, so the loan contract receives less than the expected amount. This causes the last lender claiming collateral to be unable to withdraw due to insufficient funds.
The matchOffersV3 function allows anyone to match borrow and lend orders, and a malicious matcher can split a large lend order into many tiny amounts with a higher APR, causing the borrower to pay more interest than the specified maximum APR on a portion of the principal. This results in the borrower overpaying interest, and the attacker can profit if they provide the higher-APR lend order.
The function getDataByReceipt reverts when the receipt token has been burned, which happens after the auction buyer withdraws the veNFT. This prevents lenders and the borrower from claiming the liquidation token after the NFT collateral auction is sold.
Transferring ownership of a veNFT receipt does not update the vault's manager address, so the previous owner remains the manager. The previous owner can then claim unclaimed bribes that should belong to the new owner.
The MixOracle.getThePrice function uses TarotOracle.getResult as the TWAP price, but that function returns a cumulative value rather than a time-weighted average. This causes the oracle to report a price that is orders of magnitude too high, disrupting the matching of lend and borrow orders and potentially causing user loss of funds.
The protocol lacked a minimum size for loans and offers, allowing a malicious aggregator to split a user's borrow offer into many tiny loans and offers. This could overwhelm the user and force them to pay excessive gas to manage or claim their funds.
The DebitaIncentives contract lacks a mechanism to recover incentive tokens deposited for a future epoch if no lending or borrowing activity occurs during that epoch. As a result, incentive creators permanently lose their tokens, which remain locked in the contract.
The report describes a flaw in a lending protocol where an attacker can use a flash loan to create a huge lend offer and a borrow offer with dust collateral, self-match them, repay in the same block, and then claim nearly all epoch incentives. The attacker profits by stealing a larger share of the borrow and lending incentives.
The extendLoan function in DebitaV3Loan contains an unused variable extendedTime that can cause an arithmetic underflow when a borrower tries to extend a loan near its deadline. This reverts the transaction, preventing borrowers from extending their loans even when they meet all other requirements.
DF
Debita Finance V3
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.