Security review · November 2026
OFT Contracts Upgrade - Fast lane for USDT0
Guardian's review of OFT Contracts Upgrade - Fast lane for USDT0, published November 2026. The report records 3 findings, including 2 low and 1 informational.
See how Guardian runs a stablecoin security audit.
- Published
- Review window
- November 10 to 20, 2026
- Language
- Solidity
- Chains
- Ethereum, Arbitrum, Hyperliquid, Solana, Ink
- Sector
- Stablecoins
- 0 Critical
- 0 High
- 0 Medium
- 2 Low
- 1 Informational
Scope
-
GuardianOrg/mirror-Everdawn-Labs-usdt0-oft-contracts-706d0024d692ba35681c7d8246c959cb
a6e26932ed
43 files in scope · 2,237 nSLOC
| File | nSLOC | Lines |
|---|---|---|
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/libs/OAppOptionsType3Upgradeable.sol | 45 | 105 |
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppCoreUpgradeable.sol | 44 | 104 |
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppReceiverUpgradeable.sol | 28 | 116 |
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppSenderUpgradeable.sol | 42 | 124 |
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppUpgradeable.sol | 16 | 48 |
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/precrime/OAppPreCrimeSimulatorUpgradeable.sol | 48 | 130 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/messaging-channel/OAppMessagingChannelBaseUpgradeable.sol | 19 | 77 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/messaging-channel/OAppMessagingChannelRBACUpgradeable.sol | 27 | 70 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/msg-inspection/OAppMsgInspectionBaseUpgradeable.sol | 26 | 67 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/msg-inspection/OAppMsgInspectionRBACUpgradeable.sol | 11 | 34 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppCoreBaseUpgradeable.sol | 44 | 111 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppCoreRBACUpgradeable.sol | 19 | 71 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppReceiverUpgradeable.sol | 26 | 118 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppSenderUpgradeable.sol | 44 | 130 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppUpgradeable.sol | 12 | 45 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/options-type-3/OAppOptionsType3BaseUpgradeable.sol | 50 | 122 |
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/options-type-3/OAppOptionsType3RBACUpgradeable.sol | 11 | 34 |
audit-dependencies/@layerzerolabs/oft-evm-contracts@1.2.62/contracts/libs/OFTComposeMsgCodec.sol | 31 | 85 |
audit-dependencies/@layerzerolabs/oft-evm-contracts@1.2.62/contracts/libs/OFTMsgCodec.sol | 29 | 78 |
audit-dependencies/@layerzerolabs/oft-evm-upgradeable@3.0.0/contracts/oft/OFTAdapterUpgradeable.sol | 32 | 110 |
audit-dependencies/@layerzerolabs/oft-evm-upgradeable@3.0.0/contracts/oft/OFTCoreUpgradeable.sol | 134 | 386 |
audit-dependencies/@layerzerolabs/oft-upgradeable-evm-contracts@1.2.62/contracts/oft/OFTCoreBaseUpgradeable.sol | 122 | 344 |
audit-dependencies/@layerzerolabs/oft-upgradeable-evm-contracts@1.2.62/contracts/oft/OFTCoreRBACUpgradeable.sol | 21 | 52 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/access/AccessControl2StepUpgradeable.sol | 68 | 144 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/fee-config/FeeConfigBaseUpgradeable.sol | 54 | 125 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/fee-config/FeeConfigRBACUpgradeable.sol | 15 | 44 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/libs/RateLimiterUtils.sol | 36 | 70 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/RateLimiterBaseUpgradeable.sol | 272 | 590 |
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/RateLimiterRBACUpgradeable.sol | 29 | 81 |
contracts/fast/FastLaneFeeVerifier.sol | 208 | 297 |
contracts/fast/FastLaneGuard.sol | 110 | 231 |
contracts/fast/FastLaneOFT.sol | 120 | 208 |
contracts/fast/FastLaneOFTCore.sol | 111 | 240 |
contracts/fast/FastLaneOFTHub.sol | 26 | 48 |
contracts/hub/HubLedger.sol | 145 | 210 |
contracts/interfaces/IFastLane.sol | 14 | 52 |
contracts/interfaces/IFastLaneFeeVerifier.sol | 3 | 10 |
contracts/interfaces/IFastLaneOFT.sol | 8 | 30 |
contracts/interfaces/IHubLedger.sol | 30 | 87 |
contracts/mixins/MainRolesUpgradeable.sol | 47 | 100 |
contracts/OAdapterUpgradeableFast.sol | 19 | 46 |
contracts/OUpgradeableFast.sol | 16 | 40 |
contracts/OUpgradeableHub.sol | 25 | 55 |
Findings 3
-
L-01 Low Fast lock ignores the USDT transfer fee Compatibility Acknowledged
Description
On Ethereum, a fast send locks USDT in the main adapter.
FastLaneOFT._burnAndCollectFee()callsfastLock(_from, _amountSentLD)onOAdapterUpgradeableFast, which pulls the amount withinnerToken.safeTransferFrom(). The fast OFT then adds_amountSentLD - _amountReceivedLDtoaccruedFees()and the message tells the hub that_amountReceivedLDwas locked. Both values assume that the adapter received exactly_amountSentLD.USDT on Ethereum has a transfer fee that is zero today but that the Tether owner can enable with
setParams(). The token caps it below 20 bps and at 49 USDT for each transfer. While a fee is set,transferFrom()sends the fee to the Tether owner, so the adapter receives less than_amountSentLD.Every fast send from Ethereum then leaves the lockbox short by the USDT fee. The hub mints the full message amount and the hub ledger raises the Ethereum
Lockboxbalance by the same amount. Because of this, the ledger no longer caps unlocks at the USDT that the adapter actually holds. The shortfall grows with every send until the last withdrawals to Ethereum fail because the adapter cannot pay them. The slow lane adapter makes the same assumption when it pulls USDT, so both lanes are affected once the fee is enabled.Recommendation
Make
fastLock()fail closed when the adapter receives less than requested. Read the adapter's USDT balance before and aftersafeTransferFrom()and revert unless it grew by exactly_amount. If Tether enables the fee, fast sends from Ethereum then stop instead of creating USDT0 that is not fully backed. The Safe can decide how to handle the fee before reopening the route. -
L-02 Low Unauthenticated helper sends let callers drain the native reserve and DoS gasless transfers economic Acknowledged
Description
TransactionValueHelper.sendis permissionless and forwards a caller selected_fee.nativeFeeto a caller selectedIOFT, while measuring only the helper's native balance decrease. It does not restrict the OFT, validate the route, or prevent zero-amount sends, so an account can direct the pre-funded native reserve to an arbitrary payable target or inflate a legitimate OFT's executor options.An attacker repeatedly calls
sendwith zero token amount and a fake OFT that retains the forwarded value, paying the resulting token-denominated fee. A live fork PoC drained the helper's complete native reserve, and a normal helper routed transfer then reverts because the helper cannot fund its LayerZero feeThe same reserve consumption can be triggered through the legitimate OFT by supplying an attacker chosen executor native-drop option. The helper also dispatches zero-value packets, including compose payloads, despite consuming native reserve for each packet.
Any account that can acquire and approve the helper's token can spend the entire owner funded native gas reserve at the cost of the configured fee markup. This does not create a net asset theft because the helper retains the paid token fee, but it causes a denial of service for gasless transfers until an operator recovers the tokens and refunds the reserve. The attacker can repeat the disruption after each refunding
Recommendation
Restrict the helper to explicitly configured OFTs and validate their underlying token and burner/minter wiring. Reject unsupported executor options such as native drops, require a positive amount and meaningful minimum fee
-
I-01 Informational Deployer state survives the fast OFT handover Trust Assumptions Acknowledged
Description
A fast OFT is deployed and configured by a deployer key.
initialize()makes that key both theDEFAULT_ADMIN_ROLEholder and the LayerZero endpoint delegate. The same key owns theProxyAdminof the proxy. The rollout then moves all three to the chain Safe. The Safe checks the lane withcheck-fast-lane.tsand grants itFAST_LANE_ROLEon the main contract as the last step. The NatSpec of the main contracts states the condition for that grant: a stock fast OFT whoseburnerMinter()is the main proxy, whose admin andProxyAdminare the Safe and whose rate limits are configured. The configuration script says to keep the fully privileged deployer key secured until the Safe accepts. This process therefore relies on that key acting faithfully throughout setup, including for state that remains after the handover.That condition can hold while the lane still carries state that the deployer key wrote earlier.
_checkFastLane()reads onlyburnerMinter(). Peers, rate limit configs, guard operators and verifier guardians are stored in mappings that have no enumerator. The check script reads them only for the endpoint ids and addresses it already knows. The payload hashes that the endpoint holds for the lane are not read at all. Three paths follow from this.- Hidden route. Before the handover, the deployer key calls
setPeer()for an endpoint id that appears in no USDT0 configuration andsetRateLimitConfigs()to give that id an inbound limit. After the Safe grants the role, a contract on that chain sends an ordinary LayerZero message to the fast OFT. The default DVN set verifies it,_credit()accepts it and the main contract mints or unlocks the amount. On Ethereum this pays USDT out of the lockbox, up to the planted limit. - Verified packets. As endpoint delegate, the deployer key points the receive ULN of the lane at an address it controls, verifies payload hashes that name the genuine remote fast OFT as the sender and restores the expected DVN set. The hashes stay in the endpoint. Once the route is open, anyone can execute them with
lzReceive(). On the hub this mints up to the inbound limit of the route in each window and lowers the ledger balance of the source chain. - Seeded admin. As
ProxyAdminowner, the deployer key upgrades the proxy to a throwaway implementation that writes onehasRoleword forDEFAULT_ADMIN_ROLEand then upgrades back.getRoleMembers()anddefaultAdmin()still show only the Safe. The seeded account can nevertheless callsetPeer()and grant itself any role.
The hub fast OFT is protected against the first path because
HubLedgerrejects an endpoint id that is not configured. The spoke fast OFTs have no such backstop. The same gap lets a guard operator or a verifier guardian that was added before the handover keep the power to throttle routes or switch vouchers off without appearing in any getter.If the deployer key is compromised or misused before the handover, state it planted can later mint USDT0 or unlock USDT after the Safe has checked and activated the lane. This is a residual trust assumption about the deployer during setup, rather than a path available to an unprivileged caller. The exposure recurs for each new lane, tier and rotation.
Recommendation
Document that the deployer remains a trusted part of each lane's setup even after its visible authority is handed to the Safe. If the intended guarantee is to remove that residual trust, change
initialize()so that it grantsDEFAULT_ADMIN_ROLEand the endpoint delegate to the Safe and grants onlyRATE_LIMITER_MANAGER_ROLEandFEE_CONFIG_MANAGER_ROLEto a separate configurator address. Create the proxy with the Safe as the owner of itsProxyAdmin. The configurator can then write limits and fees, while peers, endpoint configuration and upgrades need the Safe from the first block. Store guard operators and verifier guardians in anEnumerableSet, as the verifier already does for signers, so that their full sets can be read back.For lanes that are deployed with the current flow, make the activation check rebuild the state from logs since the deployment block instead of probing known keys. It should fail on any peer, rate limit id, guard operator or verifier guardian outside params, as rebuilt from the
PeerSetevents and the matching events for limits, operators and guardians. It should also fail on more than oneUpgradedevent of the proxy and on a nonzero endpointinboundNonce()for any peer of the lane. - Hidden route. Before the handover, the deployer key calls
No findings match.
More from USDT0
All 45 reportsPut your code through the same review.
This review started with a conversation about scope. Tell us what you are building and we will plan yours with you.
