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

08.19.2025 - 09.12.2025

Migrate.fun

Emblem Vault

Halborn logotext
← Back to Audits

Migrate.fun - Emblem Vault


Prepared by:

Halborn Logo

HALBORN

Last Updated 10/10/2025

Date of Engagement: August 19th, 2025 - September 12th, 2025

Summary

100% of all REPORTED Findings have been addressed

All findings

12

Critical

4

High

1

Medium

2

Low

2

Informational

3


Table of Contents

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

1. Introduction

Emblem Vault team engaged Halborn to conduct a security assessment of the hustle-migration program from August 19th to September 12th, 2025. The security assessment was scoped to the smart contracts provided in the GitHub repository EmblemCompany; commit hashes and further details can be found in the Scope section of this report.


The hustle-migration program is a comprehensive token migration platform on Solana that enables anyone to create and manage projects for seamless token swaps. Projects can be created in two modes: protected or unprotected. Protected projects enforce additional security safeguards to minimize user risk by imposing stricter rules and administrator limitations. Unprotected projects, on the other hand, grant administrators greater flexibility. The platform supports concurrent token migrations across multiple projects with automatic fee collection, and it is specifically designed to recover liquidity from pools where projects no longer control the LP tokens. Advanced features include automated liquidity pool creation, percentage-based safeguarded migrations with real-time evaluation, refund mechanisms for failed migrations, BONK.fun integration for LP token splitting (90/10), and a Merkle tree–based claims system for users who miss the migration window.


It should be noted that changes made during the remediation phase that do not directly address the identified issues are considered out of scope for this security assessment.


2. Assessment Summary


Halborn was provided 19 days for the engagement and assigned 1 full-time security engineer to review the security of the Solana Program in scope. The engineer is 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 Program.

    • Ensure that smart contract functionality operates as intended.


In summary, Halborn identified some improvements to reduce the likelihood and impact of risks, which have been addressed by the Emblem Vault team. The main ones were the following:

    • Add a validation to ensure the new_token_amount is greater than 0.

    • Add explicit checks to differentiate protected vs unprotected projects and enforce the expected requirements for each one to call emergency_withdraw.

    • Modify the total_quote_tokens_for_refunds update in finalize_swap to add the new calculated amount.

    • Add a validation to ensure the new tokens amount from the new_token_vault to create the pool does not affect the mft claims and merkle claims.

    • Implement completely or remove the Token2022 support for the quote token mint, adjust accordingly all the instructions and remove the validation that enforce the quote token mint matches the native SOL mint.

    • Implement Atomic creation of vault accounts, dynamic space calculation and Strict existence validation of the accounts.

    • Ensure consistent handling of the TransferFeeConfig extension across all relevant instructions


3. SCOPE

REPOSITORY
(a) Repository: hustle-migration
(b) Assessed Commit ID: e64c641
(c) Items in scope:
  • programs/hustle-migration/src/lib.rs
  • programs/hustle-migration/src/events.rs
  • programs/hustle-migration/src/errors.rs
  • programs/hustle-migration/src/constants.rs
  • programs/hustle-migration/src/utils/fees.rs
  • programs/hustle-migration/src/utils/mod.rs
  • programs/hustle-migration/src/utils/token.rs
  • programs/hustle-migration/src/utils/token_extensions.rs
  • programs/hustle-migration/src/utils/validation.rs
  • programs/hustle-migration/src/state/mod.rs
  • programs/hustle-migration/src/state/platform_config.rs
  • programs/hustle-migration/src/state/pool_config.rs
  • programs/hustle-migration/src/state/project_config.rs
  • programs/hustle-migration/src/state/user_merkle.rs
  • programs/hustle-migration/src/state/user_migration.rs
  • programs/hustle-migration/src/pumpswap_cpi/pumpswap.rs
  • programs/hustle-migration/src/pumpswap_cpi/mod.rs
  • programs/hustle-migration/src/pumpswap_cpi/constants.rs
  • programs/hustle-migration/src/meteora_cpi/dynamic_amm.rs
  • programs/hustle-migration/src/instructions/mod.rs
  • programs/hustle-migration/src/instructions/admin/claim_fees.rs
  • programs/hustle-migration/src/instructions/admin/initialize_platform.rs
  • programs/hustle-migration/src/instructions/admin/update_fee.rs
  • programs/hustle-migration/src/instructions/admin/toggle_project_emergency_withdraw.rs
  • programs/hustle-migration/src/instructions/admin/update_platform_config.rs
  • programs/hustle-migration/src/instructions/claims/claim_refund.rs
  • programs/hustle-migration/src/instructions/claims/claim_with_mft.rs
  • programs/hustle-migration/src/instructions/claims/claim_with_merkle.rs
  • programs/hustle-migration/src/instructions/migration/migrate.rs
  • programs/hustle-migration/src/instructions/project/config/enable_claims.rs
  • programs/hustle-migration/src/instructions/project/config/pause_project.rs
  • programs/hustle-migration/src/instructions/project/config/set_merkle_root.rs
  • programs/hustle-migration/src/instructions/project/emergency/emergency_withdraw.rs
  • programs/hustle-migration/src/instructions/project/liquidity/create_pool.rs
  • programs/hustle-migration/src/instructions/project/liquidity/lock_admin_portion.rs
  • programs/hustle-migration/src/instructions/project/liquidity/lock_bonk_fun_portion.rs
  • programs/hustle-migration/src/instructions/project/liquidity/lock_lp_from_vault.rs
  • programs/hustle-migration/src/instructions/project/liquidity/mark_token_created.rs
  • programs/hustle-migration/src/instructions/project/liquidity/verify_lp_lock.rs
  • programs/hustle-migration/src/instructions/project/setup/create_project.rs
  • programs/hustle-migration/src/instructions/project/setup/deposit_new_tokens.rs
  • programs/hustle-migration/src/instructions/project/setup/initialize_project.rs
  • programs/hustle-migration/src/instructions/project/workflow/finalize_swap.rs
  • programs/hustle-migration/src/instructions/project/workflow/recover_unclaimed.rs
  • programs/hustle-migration/src/lib.rs
  • programs/hustle-migration/src/events.rs
  • programs/hustle-migration/src/errors.rs
↓ Expand ↓
Out-of-Scope: Third party dependencies and economic attacks.
Remediation Commit ID:
  • 5cc40c5
  • 1c7c687
  • 9d9f20b
  • fe687d1
  • 8abadbb
  • f4f37ea
  • 620de61
  • c38cb7f
  • edb037f
  • 7fef55d
  • 7ce55fe
Out-of-Scope: New features/implementations after the remediation commit IDs.

4. Findings Overview

Security analysisRisk levelRemediation
Missing protected project validation in emergency withdrawCriticalSolved - 09/29/2025
Overwriting of total quote tokens for refunds May Lead to Incorrect Refund Distribution for protected projects CriticalSolved - 09/02/2025
Insufficient Validation of vaults' balances during pool creationCriticalSolved - 09/02/2025
Multiple vulnerabilities may lead into loss of funds and DoS CriticalSolved
New token amount missing validation may lead in loss of old tokens HighSolved - 09/30/2025
Inconsistent Handling of TransferFeeConfig ExtensionMediumSolved - 10/07/2025
Project Initialization DoS Caused by Insufficient PDA Allocation in create_token_accountsMediumSolved - 09/30/2025
Risk of front-running during program initializationLowRisk Accepted - 10/03/2025
Lack of 2-step transfer ownership mechanism LowSolved - 09/30/2025
Missing Validation of Token Decimals and Migration Timestamps may lead in unusable projectsInformationalSolved - 09/29/2025
Fee basis points missing validation in platform initializationInformationalSolved - 09/29/2025
Duplicated validations and unused fieldsInformationalSolved - 10/04/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

Migrate.fun

* Use Google Chrome for best results

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