Binding Machine Program - Xitadel


Prepared by:

Halborn Logo

HALBORN

Last Updated 10/17/2025

Date of Engagement: August 5th, 2025 - August 27th, 2025

Summary

100% of all REPORTED Findings have been addressed

All findings

8

Critical

2

High

2

Medium

0

Low

1

Informational

3


1. INTRODUCTION

Xitadel engaged Halborn to conduct a security assessment on their Solana programs beginning on August 5th, 2025, and ending on August 20th, 2025. The security assessment was scoped to the Solana Programs provided in xitadel-svm GitHub repository. Commit hashes and further details can be found in the Scope section of this report.


Xitadel is pioneering a new standard for capital formation in the Web3 space. As a decentralized LTT protocol, it enables projects to issue over-collateralized LTTs - unlocking capital without selling off native tokens or resorting to risky OTC deals. This model offers a structured, compliant, and sustainable path to financing within the decentralized economy.


NOTE: The codebase in scope (xitadel-svm-audit) was provided as a snapshot from the original repository (xitadel-svm) for the purpose of the review. After the fixes were implemented, they were verified in the original repository at the client’s request through the following pull requests: #106

and #125.

It is important to note that only the fixes addressing the findings identified in the audit report were reviewed. Any functionality or changes beyond the verification of these specific fixes are out of scope for this audit. Similarly, any other modifications not directly related to resolving the reported issues are also considered out of scope.

2. ASSESSMENT SUMMARY

Halborn was provided 10 days for the engagement and assigned one full-time security engineer to review the security of the Solana Programs in scope. The engineer is a blockchain and smart contract security expert with advanced smart contract hacking skills, and deep knowledge of multiple blockchain protocols.

The purpose of the assessment is to:

    • Identify potential security issues within the Solana Programs.

    • Ensure that smart contract functionality operates as intended.


In summary, Halborn identified some improvements to reduce the likelihood and impact of risks, which were addressed by the Xitadel team. The main recommendations were the following:

    • Update the 'activate_ltt' instruction to remove the user supplied 'liquidity' and 'sqrt_price' parameters, and instead compute these values internally.

    • Remove the 'Active' arm from the 'refresh_status' function and ensure all transitions from 'Active' occur only via the 'maturate' instruction.

    • Add a constraint that verifies the provided 'chainlink_program' account matches the expected Chainlink program ID.

    • Require that the entire LP position is withdrawn from the pool and enforce repayment of the full 'token_interest_amount' before allowing the LTT to transition to the 'Matured' state.

    • Make 'token_interest_mint' optional during LTT initialization in 'register_ltt'.


3. SCOPE

REPOSITORY
(a) Repository: xitadel-svm-audit
(b) Assessed Commit ID: e9d4718
(c) Items in scope:
  • programs/xitadel/Cargo.toml
  • programs/xitadel/Xargo.toml
  • programs/xitadel/src/constants.rs
↓ Expand ↓
Out-of-Scope: Economic attack vectors and external dependencies.
Remediation Commit ID:
  • 3e546d1
  • fc6e92d
  • 64bf8ca
  • 18fca60
  • 4e71323
  • 49f9a15
  • a8687a1
  • 90c12be
Out-of-Scope: New features/implementations after the remediation commit IDs.

4. Findings Overview

Security analysisRisk levelRemediation
Unvalidated Pool Parameters in activate_ltt Allow fund drainageCriticalSolved - 09/09/2025
Missing Oracle Program Ownership Check Enables Unintended or Forced Liquidation CriticalSolved - 08/29/2025
Missing Principal Check and Race Condition in update_ltt_status Allow Unsafe Transition to Matured/DefaultedHighSolved - 09/22/2025
Missing Validation in maturate Allows Incomplete Liquidity Withdrawal and Unpaid Token InterestHighSolved - 10/13/2025
Invalid or misconfigured token_interest_mint blocks LTT maturityLowSolved - 09/21/2025
Position NFT and Collateral Permanently Locked in Harvest Vault After DeactivationInformationalSolved - 09/16/2025
Collateral Cannot Be Withdrawn When LTTStatus Is CancelledInformationalSolved - 09/04/2025
Incomplete and Missing Validations of Inputs in register_ltt and redeem instructionsInformationalSolved - 09/18/2025

Halborn strongly recommends conducting a follow-up assessment of the project either within six months or immediately following any material changes to the codebase, whichever comes first. This approach is crucial for maintaining the project’s integrity and addressing potential vulnerabilities introduced by code modifications.

// Download the full report

Binding Machine Program

* Use Google Chrome for best results

** Check "Background Graphics" in the print settings if needed

© Halborn 2025. All rights reserved.