Skip to content
DoS Audit finding Beginner

Transfers will fail when using USDT

The protocol uses standard ERC20 transfer calls that expect a boolean return value, but tokens like USDT do not return a boolean, causing those calls to revert. This makes core functions such as borrowing impossible to use with USDT, resulting in a denial of service.

0xDemon Follow with 0xpetern, 1337web3 and 16 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-05-lend-audit-contest-judging/issues/529

Found by

0xDemon, 0xpetern, 1337web3, A_Failures_True_Power, Drynooo, Hueber, adeolu, dimah7, h2134, ifeco445, khaye26, kom, mgf15, molaratai, oade_hacks, one618xyz, skipper, theweb3mechanic, wickie

Summary

Some tokens like USDT doesn't comply with the ERC20 standard and doesn't return bool on ERC20 methods. This will make the calls with this token to revert, making it impossible to use them.

Root Cause

Tokens like USDT on Mainnet doesn't comply with the ERC20 specs, thus will fail when regular transfers are tried to be made with them, resulting in DoS of core functions of the protocol. For example the CoreRouter::borrow:

https://github.com/sherlock-audit/2025-05-lend-audit-contest/blob/3c97677544cf993c9f7be18d423bd3b5e5a62dd9/Lend-V2/src/LayerZero/CoreRouter.sol#L170

JavaScript
function borrow(uint256 _amount, address _token) external {
        require(_amount != 0, "Zero borrow amount");

        address _lToken = lendStorage.underlyingTolToken(_token);

        ...

        // Borrow tokens
        require(LErc20Interface(_lToken).borrow(_amount) == 0, "Borrow failed");

        // Transfer borrowed tokens to the user
@>      IERC20(_token).transfer(msg.sender, _amount);

Using USDT here will not comply with the interaface and revert, this is of concern because the borrow function is basically one of the entry-points to the protocol.

Internal Pre-conditions

None

External Pre-conditions

None

Attack Path

None

Impact

DoS on borrows

PoC

No response

Mitigation

Use OZ SafeERC20 library's safeTransfer

The original report as published on Sherlock, by 0xDemon. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The code calls the standard ERC20 transfer function directly, which assumes the token returns a boolean, but USDT and similar tokens do not, causing a revert.

Impact

Core functions such as borrowing are blocked for USDT, causing a denial of service for that token.

What the attacker needed

None

The fix

Use the SafeERC20 library's safeTransfer function to handle tokens that do not return a boolean.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some tokens, like USDT, do not follow the usual ERC20 rule of returning a true/false value after a transfer. The protocol's code expects that return value, so when it tries to move USDT it fails and the whole action stops. This means users cannot borrow or use USDT in the protocol.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by 0xDemon

View all

8 more disclosed reports, best first.

More from LEND

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.