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

Offchain security review · October 2026

USDU Deployment for Universal Digital Intl Limited

Guardian's review of USDU Deployment for Universal Digital Intl Limited, published October 2026. The report records 26 findings across 2 review rounds, including 11 low and 15 informational.

See how Guardian runs a web3 pentest.

Published
Review window
October 8 to 14, 2026
Rounds
Main Review, Remediation Review 1
Language
TypeScript, JavaScript
  • 0 Critical
  • 0 High
  • 0 Medium
  • 11 Low
  • 15 Informational

24 resolved · 2 acknowledged

Scope

Findings 26

Main Review

25 findings · October 8, 2026
  1. L-01 Low Rate limit gates ignore settings that bypass the limiter Validation Resolved
    Location
    packages/evm-contracts/scripts/lz-common.ts:319
    Round
    Main Review

    Description

    effectiveRateLimit in lz-common.ts reports the rate limit in force for an EID, and isDenyByDefault treats a direction as closed when it is enabled with a zero limit. lz-finalize-evm.ts uses them to confirm the route is closed before setting the peer, and lz-verify-evm.ts uses them to check that the limiter is enabled and closed.

    However, the adapter skips or redirects the rate limit in three cases these checks do not consider:

    function _applyRateLimit(uint256 _id, address _user, uint256 _amount, bool _isOutflow) internal virtual {
        /// @dev Early return.
        RateLimiterStorage storage $ = _getRateLimiterStorage();
        if ($.isGloballyDisabledFlag) return;
        // ...
        if (
            (!forwardEnabled && (!backwardEnabled || !netAccountingEnabled)) ||
            (addressExemptionEnabled && isRateLimitAddressExempt(_user))
        ) return;
    
    • If isGloballyDisabled is true, the adapter skips every rate-limit check, but the helper never calls getRateLimitGlobalConfig() and still reports the per-EID entry as enabled with a zero cap.
    • If useGlobalState is true, the adapter applies the DEFAULT_ID config to every EID, but the helper reports the per-EID entry whenever its override bit is set.
    • If the route's address exemption bit is set, any exempt sender (outbound) or recipient (inbound) bypasses the limit, including a zero cap. effectiveRateLimit decodes and prints this bit, but isDenyByDefault ignores it.

    In these states lz-finalize-evm.ts logs "deny-by-default confirmed" and goes on to setPeer, opening the route without an effective limit for all users or for exempt addresses. lz-verify-evm.ts passes its "outbound rate limiter ENABLED" and closed-cap checks in the same states.

    Both global flags are false and the exemption bit is clear on the Sepolia adapter today. Any holder of RATE_LIMITER_MANAGER_ROLE can change them through setRateLimitGlobalConfig, setRateLimitConfigs and setRateLimitAddressExemptions. capture-console-state.js already reads both global flags.

    Recommendation

    Consider reading getRateLimitGlobalConfig() in effectiveRateLimit, treating isGloballyDisabled as unenforced in both directions, resolving to DEFAULT_ID when useGlobalState is set, and treating a direction as closed only when address exemptions are disabled.

  2. L-02 Low Solana artifact hash is only compared against the same build Validation Resolved
    Location
    packages/lz-config/scripts/console/ops/build-console.sh:156
    Round
    Main Review

    Description

    Documentation's §1.1 states that mainnet hashes "are produced by two independent container builds during the ceremony and must match byte-for-byte", and that console-pins.json is a ledger that "CI enforces". §5 step 3 gates on "both hashes identical", and §7 states that if container hashes differ "no artifact is deployable".

    However, no script compares two builds or checks a deployed artifact against an independent hash:

    • build-console.sh builds each program once and overwrites console-build/<label>/hashes.json with the hash of its own output.
    • fireblocks-deploy-program.js deploys whatever SO_PATH points to, defaulting to an untracked local clone's target/deploy, and never compares its hash with hashes.json:
    const soPath =
      process.env.SO_PATH ??
      path.join(cfg.LZ_CONFIG, "..", "..",
        "reference/layerzero-console/solana-console-v1/apps/project-types/console-oft-app/contracts/solana/target/deploy",
        `${pin.libraryName}.so`);
    
    • After deploying, recordDeployment writes that same hash into console-pins.json as buildHash, so the ledger records whatever was deployed.
    • verify-deployed-hash.js compares the on-chain bytes with the local .so and with hashes.json, both produced by the same build on the same machine.
    • verify-lz-pins.js, which CI runs, does not read the Solana pins, so no CI job checks the Solana build hashes.

    The build itself is also not fully pinned. build-console.sh checks only that the Console clone's HEAD equals the pin, so uncommitted changes in the clone are built. A missing or mismatched lockfile falls back to an unlocked install:

    ( cd "$REPO" && pnpm install --frozen-lockfile 2>/dev/null || pnpm install )
    

    The verifiable-build image is selected by tag rather than digest.

    A stale local build, a modified clone or drifted tooling therefore produces an artifact that passes the bytecode gate and is then recorded as the reference hash. Detecting it relies on an operator comparing hashes by hand.

    Recommendation

    Consider having 01-build.sh run two builds (ideally on separate machines) and fail unless their hashes match, requiring an explicit SO_PATH whose hash equals that recorded build hash before deploying, and removing the buildHash write from recordDeployment. Consider also rejecting a dirty Console clone, removing the unlocked pnpm install fallback and pinning the build image by digest.

  3. L-03 Low Upgrade authorities and the Solana delegate are never verified Validation Resolved
    Location
    packages/lz-config/scripts/console/ops/fireblocks-deploy-program.js:956
    Round
    Main Review

    Description

    Documentation's §4.4 assigns the ProgramData upgrade authority of both Solana programs and the Ethereum ProxyAdmin ownership to governance. §2 asks Guardian to attest that "no deployer or hot-wallet privilege survives closeout". The Solana OApp Endpoint delegate, which can change the pathway's libraries and DVN configuration, is set to the admin when init_console_oft runs.

    However, none of the read-only verifiers or the closeout capture checks any of these three authorities.

    Solana upgrade authority. It is checked only inside fireblocks-deploy-program.js transfer-authority, immediately after the transfer. With AUTH_TRANSFER_PATH=defer, that step logs and returns success:

    } else if (pathChoice === "defer") {
      console.log("  DEFERRED — upgrade authority remains USDU-DEPLOY (TAP-locked) until Fireblocks support lands.");
      return;
    }
    

    02-deploy.sh then prints "Authority transfer complete — drain + policy-lock USDU-DEPLOY now." verify-deployed-hash.js reads the authority field only to locate the program bytes, and capture-console-state.js --assert-closed checks rate-limit caps only.

    Ethereum ProxyAdmin owner. Deploy assertion A6 compares ProxyAdmin.owner() with PROXY_ADMIN_OWNER, the same environment value used to deploy. That value is not required to equal the governance vault or a Fireblocks signer:

    const proxyAdminOwner = process.env.PROXY_ADMIN_OWNER ?? owner;
    ...
    assert("A6 ProxyAdmin.owner() == governance (upgrade authority)", paOwner.toLowerCase() === proxyAdminOwner.toLowerCase(), `got ${paOwner}`);
    

    No verifier reads ProxyAdmin.owner() afterwards. capture-console-state.js records the ProxyAdmin from a malformed ERC-1967 admin-slot constant (60 hexadecimal characters rather than 64), so it reads the wrong slot and always records the zero address. The correct slot is 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103.

    Solana OApp delegate. No script reads the OApp registry's delegate. verify-console-rbac.js checks the delegate only on Ethereum.

    A deferred authority transfer, or a mistaken PROXY_ADMIN_OWNER, would leave an upgrade authority with USDU-DEPLOY or another key while every gate and the closeout capture pass.

    Recommendation

    Consider adding a closeout check that both ProgramData upgrade authorities, ProxyAdmin.owner() and the Solana OApp delegate equal the governance vault, recording them in the state capture, and correcting the ERC-1967 admin-slot constant. Consider also making AUTH_TRANSFER_PATH=defer exit non-zero, and requiring PROXY_ADMIN_OWNER to equal the governance vault.

  4. L-04 Low Pre-funded role accounts are treated as granted roles Validation Resolved
    Location
    packages/lz-config/scripts/console/ops/console-init.js:351
    Round
    Main Review

    Description

    Console roles are recorded as RoleMember accounts at a PDA derived from the state account, the role and the member. console-init.js grant-role, which 07-grant-rbac-matrix.sh calls for each role, skips the grant when any account already exists at that address:

    const targetRoleMember = roleMember(state, roleByte, member);
    if (await connection.getAccountInfo(targetRoleMember, "confirmed")) {
      console.log(`  role already granted: ${target}.${roleName} -> ${member.toBase58()} (${targetRoleMember.toBase58()})`);
      return;
    }
    

    verify-console-rbac.js counts a holder on the same basis:

    const info = await connection.getAccountInfo(roleMemberPda(plane.state, plane.programId, roleByte, addr), "confirmed");
    if (info) holders.push(vaultRole);
    

    Neither checks the account's owner, its RoleMember discriminator or its contents. verify-console-config.js and console-wire.js use the same existence-only test for the roles they check.

    Anyone can create a system-owned account at a PDA address by transferring the rent-exempt minimum of 890,880 lamports to it. The security vault's address is public from the mint ceremony onwards, because it is the mint's freeze authority. A third party can therefore pre-fund the hook and OFT Pauser, Unpauser and Blacklister RoleMember addresses before step 9 for under 0.005 SOL in total.

    07-grant-rbac-matrix.sh then reports these roles as already granted, and the RBAC gate passes. The deployment completes with no working Pauser, Unpauser or Blacklister, which would only surface when one of those roles is first needed. Governance can still grant the roles once the gap is noticed.

    Recommendation

    Consider treating a RoleMember as present only when its account is owned by the program, carries the RoleMember discriminator and records the expected role and member, both in grant-role and in the verifiers.

  5. L-05 Low RoleMember dust makes grant ceremony skip roles and RBAC checks report false success denial-of-service Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/console-init.js:main:L334-L354
    Round
    Main Review

    Description

    The role writer, dedicated RBAC verifier, and compliance-action preflight treat any account at a deterministic RoleMember PDA as a valid grant. An unauthenticated party can transfer the rent-exempt minimum of 890,880 lamports to that address, creating a System Program-owned zero-data account. console-init.js then skips the real grant, the verify-console-rbac.js can report the expected holder as valid, and compliance actions pass preflight before the Console program rejects the role account during simulation with AccountOwnedByWrongProgram. The PoC reproduces this behavior locally using the deployed devnet hook bytecode whose hash matches the repository’s recorded hash. The independent AquaNow review suite detects the missing program-owned RoleMember account.

    An attacker can cheaply disrupt emergency and compliance role provisioning. Pause and blacklist actions then fail during simulation until operators bypass or fix the existence-only script and submit the authorized grant directly. No asset loss, unauthorized role use, or permanent denial of service was demonstrated.

    Recommendation

    In the writer, verifier, and preflight helper, require the account owner to equal the target console program and decode a valid RoleMember discriminator and expected fields. Treat a System Program-owned zero-data account as uninitialized where the program can safely claim it, or fail explicitly rather than reporting an existing grant.

  6. L-06 Low Oversized composed EVM sends permanently lock USDU before Solana execution incomplete-validation Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/console-wire.js:main:L283-L315
    Round
    Main Review

    Description

    The Ethereum-to-Solana executor configuration accepts LayerZero messages up to 10,000 bytes, while the public OFT send path allows callers to append arbitrary compose data without applying a destination-executable bound. A sufficiently large accepted message must be included inline in Solana's lz_receive instruction and cannot fit the 1,232-byte transaction limit. The revised PoC sends a real 1,072-byte OFT message through the deployed Sepolia adapter, EndpointV2, and SendUln302, then derives the real Solana account layout. Even a synthetic replacement ALT containing every non-signer account yields a 1,434-byte transaction without the compute-budget instruction; an even more favorable conservative lower bound is 1,410 bytes. The standard 40-byte message remains plannable. The ALT freeze check only probes that small non-compose shape and therefore does not detect the mismatch.

    Impact: A holder or integration making a legitimate composed transfer above the Solana execution budget can have USDU debited into the Ethereum escrow even though the destination packet can never mint. Because the full message must be supplied to lz_receive, neither retrying nor replacing the ALT can recover it, and the adapter exposes no withdrawal path. Restoring the user's funds requires exceptional governance intervention or an upgrade; until reconciled, locked backing exceeds the Solana supply by the sent amount.

    Recommendation

    Set the Ethereum-side executor maxMessageSize for the Solana destination to a Solana-executable bound instead of 10,000, enforce the same bound in lz-verify-evm.ts, and document the maximum supported compose size for integrators.

  7. L-07 Low Mint sweep deletes the payer key without checking for post-snapshot SOL fund-loss Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/create-mint.js:main:L366-L403
    Round
    Main Review

    Description

    The sweep reads the ceremony payer balance once, fixes the transfer amount to that snapshot minus the transaction fee, and deletes the payer and mint staging keys after the transfer finalizes without re-reading the payer balance. A sufficiently large transfer credited after the snapshot is not included in the fixed sweep amount, so the sweep can succeed while leaving SOL at the now keyless payer. The local rehearsal checks only that the refund exceeds a threshold and does not assert the payer's final balance is zero.

    Impact: A delayed, duplicated, or concurrent funding transfer can leave protocol SOL permanently stranded at the ephemeral ceremony payer after its only persisted private key is deleted. The real-validator PoC credits 5 SOL after the snapshot, observes a successful finalized sweep and key deletion, and verifies that the 5 SOL remains at the payer.

    Recommendation

    After the transfer finalizes, re-read the payer at finalized commitment and retain the staging keys unless the balance is zero. Prefer a bounded sweep-and-recheck loop, and report any residual balance for explicit recovery before deleting either key.

  8. L-08 Low Dry runs persist phantom buffer state state-machine Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/fireblocks-deploy-program.js:vaultThenLocalSignBroadcast:L193-L207
    Round
    Main Review

    Description

    In FB_DRY_RUN mode, buffer creation returns without submitting a transaction, but both fresh deploy and upgrade callers still persist the generated address and advance the ceremony to phase write. The script then reads the nonexistent account, and a later real resume reloads the same phantom state. This is distinct from the known Fireblocks blockhash-expiry, RAW-signature, and finalization findings because it concerns dry-run state transitions after an intentionally skipped submission.

    Impact: A build-only run from fresh state fails visibly and leaves local ceremony state that blocks a subsequent resume until an operator deletes or repairs the state and staging-key artifacts. No on-chain account or funds are stranded.

    Recommendation

    Do not persist buffer or phase changes when the signing helper reports that nothing was submitted. Exit the stateful flow after building, or record dry-run results separately from resumable ceremony state.

  9. L-09 Low Sticky per-path unpause defeats the adapter's emergency default pause state-management Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/evm-contracts/scripts/evm-compliance.ts:main:L200-L240
    Round
    Main Review

    Description

    Effective EVM pause state is config.enabled ? config.paused : defaultPaused, and outbound _debit enforces that effective value. The EVM portal's adapter-unpause action always writes an enabled paused:false per-path override—even when the path was already unpaused only through the default—while adapter-default-pause changes and reads back only defaultPaused. Consequently, the later default pause reports success but the path remains effectively unpaused. The Solana portal has the analogous source-level behavior: oft-unpause writes Some(false), whereas only paused:null clears the override.

    Impact: After a routine per-path unpause, the portal can report a successful default emergency pause while outbound sends on that pathway continue. This defeats the intended bulk containment control during incident response. The finding alone does not create unbacked supply or steal funds, and the sticky state is recoverable through another per-path action, supporting Medium rather than High severity.

    Recommendation

    Clear per-path overrides when restoring inheritance (EVM enabled:false; Solana paused:null), add explicit override-clear actions, and have each default-pause action verify the effective pause state of every configured pathway before reporting success. Document separately that inbound EVM credits are intentionally not governed by this pause if that design is retained.

  10. L-10 Low Program ID dusting blocks Fireblocks deployment denial-of-service Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/fireblocks-deploy-program.js:main:L659-L668
    Round
    Main Review

    Description

    The deploy rail rejects any PROGID account that already has lamports or data, then later relies on SystemProgram.createAccount for that public address. After the program artifact containing its embedded ID is uploaded to a public buffer, any party can fund the still-uncreated ID and make the approval-bound deployment fail. Retries continue to fail because the rail has no PROGID sweep path and close-buffer does not recover this account. The updated PoC also proves the limitation precisely: an out-of-band transfer signed by PROGID can empty the zero-data system account, after which the same deployment succeeds.

    Impact: An attacker can cheaply and repeatedly interrupt program deployment, forcing an operator to perform an unmodeled multi-signer sweep or rotate the program ID and rebuild. The account and funds are recoverable, but without an atomic recovery transaction the attacker can dust the address again between cleanup and deployment.

    Recommendation

    When PROGID contains lamports but no data, use the existing DEPLOY and PROGID signers to sweep it and create the program account atomically in the same transaction. Continue to reject data-bearing or unexpectedly owned accounts and report those separately.

  11. I-01 Informational Matching limits skip enabling enforcement Validation Resolved
    Round
    Main Review

    Description

    lz-rate-limit-evm.ts configures the Ethereum bridge’s rate limits and enables enforcement in both directions. Setting the capacity to zero should therefore block transfers.

    However, the script skips the update when both saved capacities match the requested values, without checking whether enforcement is enabled:

    if (
      before.overrideDefaultConfig &&
      before.outboundLimit === limit &&
      before.inboundLimit === inboundLimit
    ) {
      console.log("Already at the target configuration — nothing to do.");
      return;
    }
    

    If both saved limits are zero but a direction is disabled, running the script with CAPACITY_USDU=0 reports success without enabling that direction. A disabled limiter does not enforce its zero limit.

    The operator can therefore believe the route is closed while transfers remain unrestricted by the disabled limiter.

    Recommendation

    Consider checking the full requested configuration, including whether both directions are enabled, and only skip the update when every setting matches.

  12. I-02 Informational Missing capacities default to 1,000 USDU Configuration Resolved
    Round
    Main Review

    Description

    Documentation's §4.5 states:

    Through deployment and wiring, rate limits are enabled with zero capacity (not disabled) in both directions.

    However, lz-rate-limit-evm.ts defaults outbound capacity to 1,000 USDU and copies that value to inbound capacity when both settings are omitted:

    const capacityUsdu = BigInt(process.env.CAPACITY_USDU ?? "1000");
    const inboundUsdu = BigInt(process.env.INBOUND_CAPACITY_USDU ?? capacityUsdu.toString());
    

    These defaults also apply on mainnet. Although the documented mainnet command explicitly sets CAPACITY_USDU=0, omitting that variable targets nonzero limits in both directions.

    If the operator approves the resulting transaction, the script can unintentionally open the EVM limits during deployment; transfers may proceed once the remaining pathway configuration permits them.

    Recommendation

    Make lz-rate-limit-evm.ts require explicit inbound and outbound capacities on mainnet, or default both to zero so omitted settings cannot open the limits.

  13. I-03 Informational Peer wiring ignores unsafe inbound limits Validation Resolved
    Round
    Main Review

    Description

    Documentiation's §4.5 states:

    Through deployment and wiring, rate limits are enabled with zero capacity (not disabled) in both directions.

    However, lz-finalize-evm.ts only warns when inbound enforcement is disabled or its capacity is nonzero, then permits setPeer. Its comment explicitly says:

    Warn rather than abort: the outbound cap is what this step gates

    This contradicts the requirement for closure in both directions. If valid inbound messages arrive, tokens can be unlocked during the required closed deployment phase.

    Recommendation

    Update lz-finalize-evm.ts to stop before setting the peer if either direction of the rate limiter is disabled or has a nonzero limit, and enforce the same check in lz-verify-evm.ts.

  14. I-04 Informational Executor config skipped when the default matches Configuration Resolved
    Location
    packages/evm-contracts/scripts/lz-configure-evm.ts:111
    Round
    Main Review

    Description

    lz-configure-evm.ts configures the Ethereum adapter's LayerZero pathway to Solana. Its header states that it sets the executor config explicitly and never relies on endpoint defaults.

    However, the script decides whether to set the executor config by reading it through EndpointV2.getConfig. This returns the send library's resolved config: for any field the adapter has not set, SendLibBase.getExecutorConfig substitutes the library default.

    const curExec = await endpoint.getConfig(adapter, sendLib, SOLANA_EID, CONFIG_TYPE_EXECUTOR);
    // ...
    if (curExec !== wantExecutor) {
      // ...
      sendParams.push({ eid: SOLANA_EID, configType: CONFIG_TYPE_EXECUTOR, config: wantExecutor });
    }
    

    If the adapter has never set an executor config and the library default equals the target, the script skips the update. This is the case on Sepolia, where the default for Solana devnet is (10000, 0x718B92b5CB0a5552039B593faF724D182A881eDA). The deployed devnet adapter 0xce275228B66509ed774259fba9270A7b116852F9 has (0, address(0)) stored and follows the default.

    lz-verify-evm.ts reads the executor config the same way and only checks the executor address. On mainnet the target executor is the library's default executor, so this check passes whether or not the executor config was set. The current mainnet default maximum message size (200) differs from the target (10000), so the configure script would set the config today.

    The adapter can therefore follow LayerZero's default executor config, and any later change to it, while both scripts report the pathway as configured. The ULN checks avoid this by reading the stored config with getAppUlnConfig.

    Recommendation

    Consider reading the stored executor config from the send library's executorConfigs(adapter, eid) getter, as the ULN checks do with getAppUlnConfig, and comparing both maxMessageSize and executor in lz-configure-evm.ts and lz-verify-evm.ts.

  15. I-05 Informational Mainnet confirmation guard missing from most scripts Validation Resolved
    Location
    packages/evm-contracts/scripts/lz-common.ts:427
    Round
    Main Review

    Description

    lz-common.ts provides requireMainnetConfirmation and documents that "Mainnet stateful actions require an explicit per-invocation acknowledgement". DEPLOYMENT.md likewise states "On mainnet, every stateful action additionally requires CONFIRM_MAINNET=yes".

    However, only deploy-oftlockunlock-fb.ts, lz-send-evm.ts, lz-retry-evm.ts and upgrade-oftlockunlock-fb.ts enforce it. grant-adapter-roles-fb.ts, lz-configure-evm.ts, lz-finalize-evm.ts (including setPeer), lz-rate-limit-evm.ts and tokenv1-blacklist.ts send mainnet transactions without it. In a local mainnet-fork rehearsal (chain ID 1, ENV=mainnet), each of these completed its transactions with CONFIRM_MAINNET unset.

    05-canary.sh also passes the flag to lz-rate-limit-evm.ts on the assumption that the script enforces it:

    # The mainnet EVM mutators (lz-send-evm.ts, lz-rate-limit-evm.ts) require this
    # acknowledgement per invocation; on devnet the array is empty and `env` is a no-op.
    

    An operator who runs one of these scripts against mainnet by mistake gets only the interactive prompt, which YES=1 skips, before the transaction goes to Fireblocks for approval.

    Recommendation

    Consider calling requireMainnetConfirmation in each script that sends mainnet transactions, or narrowing the documentation to the scripts that enforce it.

  16. I-06 Informational Deploy manifest omits the implementation deployment Best Practices Acknowledged
    Location
    packages/evm-contracts/scripts/deploy-oftlockunlock-fb.ts:191
    Round
    Main Review

    Description

    deploy-oftlockunlock-fb.ts writes a deployment manifest whose receipts, A7 receipt assertion and gas total record the deployment transactions as evidence.

    However, upgrades.deployProxy sends two transactions, the implementation and then the proxy, and only the proxy's is recorded:

    const deployTx = proxy.deploymentTransaction();
    // ...
    if (deployTx) await recordGas("Transparent proxy deploy (incl. initialize)", deployTx);
    

    recordGas is the only source for gasRows, and the A7 check, the manifest's receipts and the reported gas total are all built from gasRows. In a local mainnet-fork rehearsal, the manifest held three receipts (the proxy deployment and two role grants), A7 reported "all 3 deployment/role tx receipts present", and the gas total of 1,134,619 excluded the implementation deployment, the largest transaction of the ceremony.

    The OpenZeppelin plugin still records the implementation's transaction hash in .openzeppelin/<network>.json, but not in the release manifest that A7 vouches for.

    Recommendation

    Consider recording the implementation deployment receipt in the manifest and including it in the A7 check and gas total, for example by reading its transaction hash from the OpenZeppelin network file.

  17. I-07 Informational Adapter deployment does not verify the TokenV1 proxy Validation Resolved
    Location
    packages/evm-contracts/scripts/deploy-oftlockunlock-fb.ts:169
    Round
    Main Review

    Description

    deploy-oftlockunlock-fb.ts deploys the adapter around the existing TokenV1 proxy given in USDU_TOKEN, and all USDU locked by the adapter is held through that proxy. Before deploying, the script only checks that the token is unpaused and has six decimals:

    const [tokenPaused, tokenDecimals] = await Promise.all([token.paused(), token.decimals()]);
    console.log(`  TokenV1 probe: paused=${tokenPaused} decimals=${tokenDecimals}`);
    assert("TokenV1 decimals == 6", Number(tokenDecimals) === 6);
    

    TokenV1 is not yet deployed on Ethereum mainnet and is deployed outside this repository. Its initializeToken is a public initializer that makes the caller the owner:

    function initializeToken(
        // ...
    ) public initializer {
        Ownable.initialize(msg.sender);
    

    If the mainnet proxy were deployed and initialized in separate transactions, a third party could initialize it first and take ownership along with the minting, pausing, blacklisting and rescue roles, or place its own proxy in the implementation slot (the "clandestine proxy in the middle" pattern). Nothing in the deployment or verification scripts would detect either before the adapter is wired to the token.

    The Sepolia token was created and initialized in a single transaction (0x34ed0c0169ce06294cad7f0e13d96eab164db3f58ce965515b765da41db7e45f), has emitted a single Upgraded event, and its implementation slot points to the TokenV1 implementation.

    Recommendation

    Consider confirming that the mainnet TokenV1 proxy is deployed and initialized in one transaction as on Sepolia, and checking its implementation slot, implementation bytecode and role holders against expected values before deploying the adapter.

  18. I-08 Informational Solana to Ethereum lzReceive gas too low after Glamsterdam Configuration Resolved
    Location
    packages/lz-config/pathway-config.mainnet.json:61
    Round
    Main Review

    Description

    pathway-config.mainnet.json sets the enforced lzReceive gas for Solana → Ethereum messages, and console-wire.js writes it to console_oft as the enforced option for destination 30101:

    "solanaToEthereum": {
      "msgType": 1,
      "gas": 120000,
      "value": 0
    }
    

    On delivery, OFTLockUnlock unlocks USDU through a TokenV1 transfer. When the recipient's USDU balance is zero (a first-time recipient, or one that has emptied its balance), the transfer writes a storage slot from zero to non-zero. Under today's mainnet pricing this delivery fits in 120,000 gas, with roughly 10% headroom.

    However, EIP-8037 (State Creation Gas Cost Increase), part of the Glamsterdam upgrade, adds a state-gas charge of 64 bytes × 1,530 = 97,920 gas for each new storage slot. An executor delivery does not carry a state-gas reservoir, so this charge is paid from the forwarded lzReceive gas. Glamsterdam activated on Sepolia on 2026-10-06, and measurements there show the effect:

    • TokenV1.transfer to a fresh address costs 159,762 gas, against 60,245 to an existing holder.
    • Adapter lzReceive to a never-funded recipient reverts at 150,000 gas and succeeds at 200,000.

    Glamsterdam is targeted for mainnet in Q4 2026 without a confirmed date, and EIP-8037 is still in Last Call, so the exact cost may change. Because bridging only begins after FSRA approval, the first Solana → Ethereum transfers, including the activation canary, may happen after the fork.

    Once it activates, every Solana → Ethereum delivery to a zero-balance recipient runs out of gas. Funds are not lost: the message stays verified at the Endpoint and can be retried with more gas (lz-retry-evm.ts), but each affected transfer needs a manual retry.

    Recommendation

    Consider raising solanaToEthereum.gas in pathway-config.mainnet.json before the deployment ceremony, sized from a Sepolia measurement of the worst case (first inbound message to a zero-balance recipient) plus a margin, which currently suggests roughly 250,000–300,000. If the value is instead raised after deployment, update the pathway config in the same change, since verify-console-config.js compares the on-chain enforced options against it, and do so before the activation canary.

  19. I-09 Informational OFT RateLimiterManager role is never granted by the runbook Configuration Resolved
    Location
    packages/lz-config/scripts/console/runbook/07-grant-rbac-matrix.sh:95
    Round
    Main Review

    Description

    Documentation's §4.4 assigns the console_oft RateLimiterManager role to bridgeAdmin, and lib/console-rbac.js expects it:

    oft: {
      // ...
      RateLimiterManager: "bridgeAdmin",
    },
    

    RateLimiterManager is the only role that can call set_rate_limit_config, set_rate_limit_global_config, set_rate_limit_state, set_rate_limit_address_exemption and checkpoint_rate_limit. console-wire.js needs it to write the enabled-at-zero rate limit in step 9, and the activation canary and later cap changes depend on it.

    However, no script grants it. init_console_oft creates only the DefaultAdmin role, 04-init-and-wire.sh grants only the hook BypassManager, and the matrix in 07-grant-rbac-matrix.sh omits it. The comment below the matrix states otherwise:

    # Already granted by earlier ceremonies (re-checked, not re-sent):
    #   hook.DefaultAdmin -> governance, hook.BypassManager -> governance
    #   oft.DefaultAdmin  -> governance, oft.RateLimiterManager -> bridgeAdmin
    

    Nothing grants or re-checks the role before this point. On a fresh deployment, verify-console-rbac.js reports the role as unassigned and 04-init-and-wire.sh stops at its RBAC gate. Should that gate be skipped, console-wire.js also refuses to run without the role, so no unsafe state results.

    The operator must instead grant the role by hand with console-init.js grant-role, whose MEMBER accepts any vault name or public key. Because init-hook cannot be re-run, the remaining steps of 04-init-and-wire.sh, including the ALT freeze, must then be run individually. Appendix A.2 likewise omits this grant from the devnet evidence.

    Recommendation

    Consider adding oft|RateLimiterManager|bridgeAdmin to the matrix in 07-grant-rbac-matrix.sh and correcting the comment, so the runbook produces the full §4.4 role set without a manual grant.

  20. I-10 Informational Solana peer is set before the remaining wiring and gates Configuration Resolved
    Location
    packages/lz-config/scripts/console/runbook/04-init-and-wire.sh:96
    Round
    Main Review

    Description

    Documentation's §4.2 states "Peers are set last", and §5 places the Solana peer in step 11, after the Ethereum libraries, ULN, DVN, executor, enforced-options and rate-limit configuration in step 10. §7 lists "Peer set early or differs" as a stop condition requiring incident review.

    However, 04-init-and-wire.sh, which performs step 9, runs console-wire.js. That script ends by calling set_peer unconditionally, with no opt-in switch:

    node "$OPS/console-endpoint-init.js"
    node "$OPS/console-wire.js"
    
    echo "=== ALT: populate + verify + freeze (inbound account discovery) ==="
    node "$OPS/extend-alt.js" extend
    node "$OPS/extend-alt.js" verify
    node "$OPS/extend-alt.js" freeze
    
    echo "=== hard gate: library pinning ==="
    node "$OPS/verify-library-pinning.js"
    
    echo "=== hard gate: pathway state (incl. deny-by-default rate limit + zero fees) ==="
    node "$OPS/verify-console-config.js"
    

    The Solana peer is therefore set before the ALT is populated and frozen, before both Solana verification gates run, and before any Ethereum-side configuration in step 10. verify-console-config.js also requires the peer to exist, so step 9 cannot pass without it.

    Following the runbook as written triggers the packet's own §7 abort condition. Exposure is limited in practice, because the Ethereum peer is still unset and both rate limits are zero, but the documented "peers last" ordering does not hold.

    Recommendation

    Consider moving set_peer out of console-wire.js behind an explicit opt-in and running it after the ALT freeze, the Solana gates and lz-verify-evm.ts, or updating §4.2, §5 and §7 to reflect the actual order.

  21. I-11 Informational Localnet test errors leave keys and validator resource-management Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/test-upgrade-localnet.js:keypairFile:L57-L62
    Round
    Main Review

    Description

    Cleanup occurs only on success. A post-readiness requestAirdrop exception exits through main().catch, leaving deploy.json, progid.json, and the spawned validator.

    Failed rehearsals leave owner-only localnet key-file residue and orphan validator processes. The PoC shows neither cross-user disclosure nor stale .deploy-state.

    Recommendation

    Use a finally block to remove temporary artifacts and terminate any validator spawned by the harness.

  22. I-12 Informational Step 9 library-pinning gate cannot pass in the documented order Configuration Resolved
    Location
    packages/lz-config/scripts/console/ops/verify-library-pinning.js:183
    Round
    Main Review

    Description

    Documentation's §5 gates step 9 (04-init-and-wire.sh) on the library-pinning and config verifiers, and configures the Ethereum send and receive libraries later, in step 10 (lz-configure-evm.ts).

    04-init-and-wire.sh runs with set -euo pipefail and ends with:

    node "$OPS/verify-library-pinning.js"
    ...
    node "$OPS/verify-console-config.js"
    

    However, verify-library-pinning.js always runs its Ethereum check before the Solana one, with no way to skip it:

    await checkEVM();
    await checkSolana();
    ...
    process.exit(failures === 0 ? 0 : 1);
    

    checkEVM() requires the adapter's libraries to be explicitly set rather than the Endpoint defaults:

    const isDefaultSend = await endpoint.isDefaultSendLibrary(adapter, REMOTE_EID);
    check("send library explicitly set (not default)", isDefaultSend === false, `isDefault=${isDefaultSend}`);
    

    At step 9 the adapter deployed in step 8 still uses the default libraries, so these checks fail and the script exits with 1. 04-init-and-wire.sh then stops before verify-console-config.js, the step 9 gate for the Solana pathway state, runs.

    On a fresh deployment following §5, step 9 ends red after all of its on-chain actions are complete. Operators must re-run the gates by hand, and the Solana config verifier never runs as part of step 9.

    Recommendation

    Consider giving verify-library-pinning.js a Solana-only mode for 04-init-and-wire.sh, running the full check after step 10, or running verify-console-config.js before the library-pinning gate.

  23. I-13 Informational Solana to Ethereum sends may exceed Solana's transaction limits Configuration Acknowledged
    Location
    packages/lz-config/scripts/console/ops/console-send.js:52
    Round
    Main Review

    Description

    console-send.js builds the Solana → Ethereum send used by the activation canary. It requests 400,000 compute units by default and compresses accounts using the address lookup tables registered on the OFT store:

    const COMPUTE_UNITS = Number(process.env.SEND_CU ?? 400_000);
    

    The only lookup table the scripts populate (extend-alt.js) holds the accounts needed for inbound delivery (lz_receive and the Endpoint's clear). Accounts used only by a send — each DVN's program and config account, the executor, the send library and its price feed — are passed inline.

    The devnet canary send used a single DVN and was reported at about 1,066 bytes, against Solana's 1,232-byte transaction limit, and about 313,000 compute units. The mainnet pathway configures five DVNs (Aquanow, FurtherFP, Deutsche Telekom, Horizen and Luganodes), each adding its own program and config account. The additional inline accounts are likely to push the send over 1,232 bytes, and the extra DVN fee quotes are likely to exceed the 400,000 compute-unit default.

    If so, the Solana → Ethereum leg of the activation canary, and any send built the same way, cannot be submitted. This fails closed and puts no funds at risk, but would only surface at activation. These figures are estimated from the devnet send and the mainnet DVN set, not measured on mainnet.

    Recommendation

    Consider building and simulating a Solana → Ethereum send against the mainnet configuration before activation. If it exceeds the limits, register a second lookup table holding the send-side accounts and raise the compute-unit limit.

  24. I-14 Informational Standalone mint verification reads confirmed rather than finalized state finality Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/create-mint.js:verifyMint:L217-L228
    Round
    Main Review

    Description

    The documented standalone verify mode calls verifyMint() without a commitment override, causing all §8 mint invariants to be read at the helper's default confirmed commitment. This differs from the create and sweep paths, which explicitly require finalized, and from create's explicit rejection of a confirmed-but-not-finalized mint. The vetted create path finalizes and verifies the mint before recording it, so this is a defense-in-depth consistency flaw rather than a demonstrated bypass of that ceremony.

    Impact: A standalone verify-mint run can report success based on reversible confirmed state rather than attest to finalized state, weakening the stated fail-closed semantics if operators or CI use this read-only gate before subsequent deployment steps.

    Recommendation

    Make finalized the verifier's default commitment or explicitly pass commitment: "finalized" from standalone verify mode.

  25. I-15 Informational Fireblocks RAW signature object breaks authority-transfer fallback integration-error Resolved
    Location
    packages/mirror-aquanow-usdu-multichain/packages/lz-config/scripts/console/ops/lib/fb.js:rawSign:L133-L154
    Round
    Main Review

    Description

    fb.rawSign() returns signedMessages[0].signature verbatim, but the pinned Fireblocks SDK models that value as { fullSig, r, s, v }. Both RAW consumers pass the object to Buffer.from(..., "hex"), which throws before a signature can be attached or the transaction broadcast. The PoC drives the real helper through the SDK using its declared response shape and reproduces the type error.

    IThe RAW fallback cannot complete when Fireblocks returns its documented response shape, temporarily preventing the DEPLOY-to-GOVERNANCE authority handoff if PROGRAM_CALL is unavailable. The failure is safe and recoverable: it occurs before broadcast, the P2 probe records ERROR, and operators can use the documented defer path, leaving authority in the TAP-locked DEPLOY vault.

    Recommendation

    Extract signature.fullSig, validate it is valid 64-byte hex, and make both callers consume the normalized value. Add an integration regression test using the pinned SDK response shape.

Remediation Review 1

1 finding · October 14, 2026
  1. L-01 Low Dry-run resume broadcasts transactions Unexpected Behavior Resolved
    Location
    packages/lz-config/scripts/console/ops/fireblocks-deploy-program.js:530,576,903,955
    Round
    Remediation Review 1

    Description

    When FB_DRY_RUN=1, a new deployment or upgrade correctly stops before broadcasting transactions. However, when resuming an existing deployment from the buffer writing or authority-handoff phase, some transaction submissions do not check dry-run mode.

    Each Solana transaction is atomic, but the deployment process uses several separate transactions. A dry-run resume may therefore upload program data, spend fees, transfer buffer authority, update the saved phase, and delete the temporary signing key.

    The final deployment or upgrade remains blocked, but dry-run mode can unexpectedly modify both on-chain and local state.

    Recommendation

    Consider checking FB_DRY_RUN before every transaction submission, including resumed buffer writes and authority handoffs. When dry-run mode is enabled, do not update saved deployment state or delete signing keys.

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