Skip to content
We manage your security to weather the AI storm →

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
Sector
Stablecoins
  • 0 Critical
  • 0 High
  • 0 Medium
  • 2 Low
  • 1 Informational

3 acknowledged

Scope

  • GuardianOrg/mirror-Everdawn-Labs-usdt0-oft-contracts-706d0024d692ba35681c7d8246c959cb a6e26932ed
43 files in scope · 2,237 nSLOC
FilenSLOCLines
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/libs/OAppOptionsType3Upgradeable.sol45105
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppCoreUpgradeable.sol44104
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppReceiverUpgradeable.sol28116
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppSenderUpgradeable.sol42124
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/oapp/OAppUpgradeable.sol1648
audit-dependencies/@layerzerolabs/oapp-evm-upgradeable@0.1.0/contracts/precrime/OAppPreCrimeSimulatorUpgradeable.sol48130
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/messaging-channel/OAppMessagingChannelBaseUpgradeable.sol1977
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/messaging-channel/OAppMessagingChannelRBACUpgradeable.sol2770
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/msg-inspection/OAppMsgInspectionBaseUpgradeable.sol2667
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/msg-inspection/OAppMsgInspectionRBACUpgradeable.sol1134
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppCoreBaseUpgradeable.sol44111
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppCoreRBACUpgradeable.sol1971
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppReceiverUpgradeable.sol26118
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppSenderUpgradeable.sol44130
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/OAppUpgradeable.sol1245
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/options-type-3/OAppOptionsType3BaseUpgradeable.sol50122
audit-dependencies/@layerzerolabs/oapp-upgradeable-evm-contracts@1.2.62/contracts/oapp/options-type-3/OAppOptionsType3RBACUpgradeable.sol1134
audit-dependencies/@layerzerolabs/oft-evm-contracts@1.2.62/contracts/libs/OFTComposeMsgCodec.sol3185
audit-dependencies/@layerzerolabs/oft-evm-contracts@1.2.62/contracts/libs/OFTMsgCodec.sol2978
audit-dependencies/@layerzerolabs/oft-evm-upgradeable@3.0.0/contracts/oft/OFTAdapterUpgradeable.sol32110
audit-dependencies/@layerzerolabs/oft-evm-upgradeable@3.0.0/contracts/oft/OFTCoreUpgradeable.sol134386
audit-dependencies/@layerzerolabs/oft-upgradeable-evm-contracts@1.2.62/contracts/oft/OFTCoreBaseUpgradeable.sol122344
audit-dependencies/@layerzerolabs/oft-upgradeable-evm-contracts@1.2.62/contracts/oft/OFTCoreRBACUpgradeable.sol2152
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/access/AccessControl2StepUpgradeable.sol68144
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/fee-config/FeeConfigBaseUpgradeable.sol54125
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/fee-config/FeeConfigRBACUpgradeable.sol1544
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/libs/RateLimiterUtils.sol3670
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/RateLimiterBaseUpgradeable.sol272590
audit-dependencies/@layerzerolabs/utils-upgradeable-evm-contracts@1.2.62/contracts/rate-limiter/RateLimiterRBACUpgradeable.sol2981
contracts/fast/FastLaneFeeVerifier.sol208297
contracts/fast/FastLaneGuard.sol110231
contracts/fast/FastLaneOFT.sol120208
contracts/fast/FastLaneOFTCore.sol111240
contracts/fast/FastLaneOFTHub.sol2648
contracts/hub/HubLedger.sol145210
contracts/interfaces/IFastLane.sol1452
contracts/interfaces/IFastLaneFeeVerifier.sol310
contracts/interfaces/IFastLaneOFT.sol830
contracts/interfaces/IHubLedger.sol3087
contracts/mixins/MainRolesUpgradeable.sol47100
contracts/OAdapterUpgradeableFast.sol1946
contracts/OUpgradeableFast.sol1640
contracts/OUpgradeableHub.sol2555

Findings 3

  1. L-01 Low Fast lock ignores the USDT transfer fee Compatibility Acknowledged
    Location
    contracts/OAdapterUpgradeableFast.sol:33-36

    Description

    On Ethereum, a fast send locks USDT in the main adapter. FastLaneOFT._burnAndCollectFee() calls fastLock(_from, _amountSentLD) on OAdapterUpgradeableFast, which pulls the amount with innerToken.safeTransferFrom(). The fast OFT then adds _amountSentLD - _amountReceivedLD to accruedFees() and the message tells the hub that _amountReceivedLD was 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 Lockbox balance 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 after safeTransferFrom() 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.

  2. L-02 Low Unauthenticated helper sends let callers drain the native reserve and DoS gasless transfers economic Acknowledged
    Location
    packages/mirror-Everdawn-Labs-usdt0-oft-contracts-706d0024d692ba35681c7d8246c959cb/contracts/helper/TransactionValueHelper.sol:send:L85-L111

    Description

    TransactionValueHelper.send is permissionless and forwards a caller selected _fee.nativeFee to a caller selected IOFT, 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 send with 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 fee

    The 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

  3. I-01 Informational Deployer state survives the fast OFT handover Trust Assumptions Acknowledged
    Location
    contracts/fast/FastLaneOFTCore.sol:87-91,234-253

    Description

    A fast OFT is deployed and configured by a deployer key. initialize() makes that key both the DEFAULT_ADMIN_ROLE holder and the LayerZero endpoint delegate. The same key owns the ProxyAdmin of the proxy. The rollout then moves all three to the chain Safe. The Safe checks the lane with check-fast-lane.ts and grants it FAST_LANE_ROLE on the main contract as the last step. The NatSpec of the main contracts states the condition for that grant: a stock fast OFT whose burnerMinter() is the main proxy, whose admin and ProxyAdmin are 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 only burnerMinter(). 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.

    1. Hidden route. Before the handover, the deployer key calls setPeer() for an endpoint id that appears in no USDT0 configuration and setRateLimitConfigs() 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.
    2. 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.
    3. Seeded admin. As ProxyAdmin owner, the deployer key upgrades the proxy to a throwaway implementation that writes one hasRole word for DEFAULT_ADMIN_ROLE and then upgrades back. getRoleMembers() and defaultAdmin() still show only the Safe. The seeded account can nevertheless call setPeer() and grant itself any role.

    The hub fast OFT is protected against the first path because HubLedger rejects 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 grants DEFAULT_ADMIN_ROLE and the endpoint delegate to the Safe and grants only RATE_LIMITER_MANAGER_ROLE and FEE_CONFIG_MANAGER_ROLE to a separate configurator address. Create the proxy with the Safe as the owner of its ProxyAdmin. 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 an EnumerableSet, 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 PeerSet events and the matching events for limits, operators and guardians. It should also fail on more than one Upgraded event of the proxy and on a nonzero endpoint inboundNonce() for any peer of the lane.

More from USDT0

All 45 reports
  1. Canary Sponsored DVN Migration

    0 findings No findings
  2. Zero Network - USDT & XAUT Deployment

    0 findings No findings
  3. MultiHopComposer Review

    7 findings 7 findings: 4 low, 3 informational
  4. WrappedTetherTokenTron & WrappedTetherToken

    0 findings No findings

Put 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.

Get a quote