Solutions

Company

Resources

Blog

Contact

Login

    • Assurance

      Smart Contract Assessment

      Securing code integrity, protecting digital assets

      Blockchain Layer 1 Assessment

      Assessing protocols, securing blockchain foundations

      Code Security Audit

      Uncovering flaws, strengthening software integrity

      Web Application Penetration Testing

      Exposing weaknesses, fortifying digital defenses

      Cloud Infrastructure Penetration Testing

      Securing configurations, protecting critical environments

      Red Team Exercise

      Simulating real-world attacks, strengthening defenses

      AI Red Teaming

      Testing AI systems against real threats

      AI Security Assessment

      Securing AI models, data, and pipelines

    • Advisory

      AI Advisory

      Guiding secure, strategic AI adoption forward

      Risk Assessment

      From unknown threats to actionable insights

      Blockchain Architecture Assessment

      Optimizing architecture for tomorrow’s networks

      Compliance Readiness

      Stay ready as regulations evolve

      Custody and Key Management Assessment

      Securing the heart of digital custody

      Technical Due Diligence

      See the risks before you invest

      Technical Training

      Empower your teams to secure what matters

    • Who We Are

      The best security engineers in the world

      Careers

      Work with the elite

      Who Trusts Us

      The trusted security advisor for blockchain and financial services industries

      Brand

      Access official logos, fonts, and guidelines

      Service Commitments

      Committed to Protecting Your Data

    • Audits

      In-depth evaluations of smart contracts and blockchain infrastructures

      BVSS

      Blockchain Vulnerability Scoring System

      Disclosures

      All the latest vulnerabilities discovered by Halborn

      Case Studies

      How Halborn’s solutions have empowered clients to overcome security issues

      Reports

      Comprehensive reports and data

  • Blog

  • Contact

  • Login

THIS WEBSITE USES COOKIES

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. You consent to our cookies if you continue to use our website. Learn More.

STAY CURRENT WITH HALBORN

Subscribe to the monthly Halborn Digest for our top blogs and videos, major company announcements, new whitepapers, webinar and event invites, and one exclusive interview.

ADVISORY SERVICES

AI AdvisoryRisk AssessmentBlockchain Architecture AssessmentCompliance ReadinessCustody and Key Management AssessmentTechnical Due DiligenceTechnical Training

ASSURANCE SERVICES

AI Security AssessmentAI Red TeamingSmart Contract AssessmentBlockchain Layer 1 AssessmentCode Security AuditWeb Application Penetration TestingCloud Infrastructure Penetration TestingRed Team Exercise

COMPANY

Who We AreWho Trusts UsService CommitmentsCareersBrandBlogContact

RESOURCES

AuditsDisclosuresReportsBVSSCase Studies
Halborn Logo
Privacy PolicyTerms of UseVulnerability Disclosure Policy

© Halborn 2025. All rights reserved.

Background

// Security Assessment

01.30.2025 - 02.07.2025

Liquid Unstaker

The Vault

Halborn logotext
← Back to Audits

Liquid Unstaker - The Vault


Prepared by:

Halborn Logo

HALBORN

Last Updated Unknown date

Date of Engagement: January 30th, 2025 - February 7th, 2025

Summary

100% of all REPORTED Findings have been addressed

All findings

4

Critical

0

High

0

Medium

0

Low

1

Informational

3


Table of Contents

  • 1. Introduction
  • 2. Assessment summary
  • 3. Scope
  • 4. Findings overview

1. Introduction

The Vault engaged Halborn to conduct a security assessment on their Solana Validator program beginning on January 30th, 2025 and ending on February 7th, 2025. The security assessment was scoped to the smart contracts provided in the GitHub repository liquid-unstaker, commit hashes, and further details can be found in the Scope section of this report.


The Vault team is releasing Liquid Unstaker, a protocol that relies on liquidity providers to supply SOL to a liquidity pool, enabling users to unstake instantly without waiting for the stake deactivation period. In return, liquidity providers earn fees for fronting liquidity and staking rewards.

2. Assessment Summary

Halborn was provided 7 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 codebase.

    • Verify that the funds of the liquidity providers are safe of any leakage

    • Validate that the platform is not vulnerable to arbitrage

    • Verify that the fees are properly calculated and distributed fairly


In summary, Halborn identified some improvements to reduce the likelihood and impact of multiple risks, which has been addressed by the The Vault team. The main one was the following:

    • Consider the case where an staking account has less lamports than what the user is requiring to withdraw

3. SCOPE

REPOSITORY
(a) Repository: liquid-unstaker
(b) Assessed Commit ID: be160a8
(c) Items in scope:
  • src/error.rs
  • src/fee.rs
  • src/instructions/create_or_update_token_metadata.rs
  • src/instructions/deposit_sol.rs
  • src/instructions/initialize_pool.rs
  • src/instructions/liquid_unstake_lst.rs
  • src/instructions/liquid_unstake_stake_account.rs
  • src/instructions/mod.rs
  • src/instructions/update.rs
  • src/instructions/update_pool.rs
  • src/instructions/withdraw_sol.rs
  • src/lib.rs
  • src/lp_math.rs
  • src/seeds.rs
  • src/state.rs
  • src/error.rs
  • src/fee.rs
  • src/instructions/create_or_update_token_metadata.rs
↓ Expand ↓
Out-of-Scope: solana-program-library/stake-pool, agave/programs/stake, third party dependencies and economic attacks.
Out-of-Scope: New features/implementations after the remediation commit IDs.

4. Findings Overview

Security analysisRisk levelRemediation
Potential loss of funds when withdrawing from validator removal stake accountsLowSolved - 02/07/2025
Unstaking funds steal in case of manual funds approvalInformationalSolved - 02/07/2025
Incorrect cap validation in deposit_sol entry pointInformationalSolved - 02/10/2025
Unused is_active boolean in StakeAccountInfoInformationalSolved - 02/07/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.

Table of Contents

  • 1. Introduction
  • 2. Assessment summary
  • 3. Scope
  • 4. Findings overview

// Download the full report

Liquid Unstaker

* Use Google Chrome for best results

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