Glow Margin Vaults - Blueprint Finance


Prepared by:

Halborn Logo

HALBORN

Last Updated 11/26/2025

Date of Engagement: September 29th, 2025 - October 16th, 2025

Summary

100% of all REPORTED Findings have been addressed

All findings

10

Critical

1

High

1

Medium

0

Low

2

Informational

6


1. Introduction

The Glow team engaged Halborn to conduct a security assessment on their Glow Vault Solana program beginning on September 29 2025, and ending on October 16, 2025. The security assessment was scoped to the Solana Programs provided in glow-v1 GitHub repository. Commit hashes and further details can be found in the Scope section of this report.


The Glow Vault program allows users to deposit funds that are then operated by designated parties to earn returns. Users deposit funds via direct deposits or margin account transfers into the vault, and are minted a vault token representing shares of the vault. The program charges management and performance fees at the time of withdrawal.

2. Assessment Summary

Halborn was provided 2.5 weeks 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 opportunities to reduce the likelihood and impact of risks, and the Glow team implemented improvements to address them. The main ones were the following:

    • Ensure both management and performance fees accounting is correctly handled.

    • Ensure the performance fees are charged on actual profit at the time of withdrawal.

    • Validate that operators have correct permissions.

The recommendation rated as low-risk to validate potentially dangerous or incompatible Token2022 extensions has been partially addressed, with a comprehensive solution already planned by the Glow team for upcoming releases.

3. SCOPE

REPOSITORY
(a) Repository: glow-v1
(c) Items in scope:
  • Anchor.toml
  • programs/margin-pool/src/instructions/withdraw.rs
  • programs/margin/src/adapter.rs
↓ Expand ↓
Out-of-Scope: Changes that are not part of the Pull Request 2437, third party dependencies and economic attacks.
Remediation Commit ID:
Out-of-Scope: New features/implementations after the remediation commit IDs.

4. Findings Overview

Security analysisRisk levelRemediation
Incorrect fees handlingCriticalSolved - 11/07/2025
Users may pay performance fees from unrealized profitsHighSolved - 11/07/2025
Missing Token 2022 extensions validationLowPartially Solved - 10/22/2025
Insuffient operator permissions checkLowSolved - 10/22/2025
Incorrect pending withdrawal shares calculationInformationalSolved - 10/22/2025
Reliance on Manual or Off-Chain ActionsInformationalAcknowledged - 11/05/2025
Incorrect redundant position freshness validationInformationalSolved - 11/23/2025
Missing instructions to withdraw uncollected feesInformationalFuture Release - 10/24/2025
Unnecessary Token program resolutionInformationalSolved - 11/23/2025
Passing unnecessary accountsInformationalSolved - 10/22/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

Glow Margin Vaults

* Use Google Chrome for best results

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