GlobalGold

GlobalGold Smart Contract Audit Report

Share
Share
EVMEVM
DeFiRWA / Tokenization / ReFiVaults+2
EVMEVM
DeFiRWA / Tokenization / ReFi+3

QuillAudits audited the GlobalGold smart contracts on EVM between Sep 1, 2025 and Oct 2, 2025. The audit found 16 issues: 2 critical, 3 high, 5 medium, 4 low, 2 informational, of which 14 resolved and 2 acknowledged.

Project Description

The Global Gold Vault system provides a secure, upgradeable smart contract framework for managing digital assets (ERC20, ERC721, ERC1155) with multi-signature guardian protection. Each vault is represented as an NFT, allowing for easy ownership transfer and verification.
Key Features
• NFT-Based Vaults: Each vault is represented by a unique NFT, making ownership transfer seamless
• Guardian Protection: Multi-signature protection with customizable thresholds
• Asset Management: Support for ERC20, ERC721, and ERC1155 tokens
• Recovery System: Guardian-based recovery mechanism for lost access
• Upgradeable: Uses OpenZeppelin's upgradeable contracts pattern
• Emergency Functions: Emergency withdrawal capabilities for non-protected assets

Timeline

S1
Sep 1, 2025
IA
Sep 19, 2025
S2
Oct 2, 2025

Scope of Audit

The scope of this Audit was to analyze the GlobalGold Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
91.1%
AUDIT SCORE
icon

Critical

High

Medium

Low

Informational

open00000
acknowledged00011
partially resolved00000
resolved23531
GlobalGold

GlobalGold

Critical Severity Issues

Complete Recovery Cancellation Bypass - Execution Flow Bug Combined with Logic Error Enables Asset Theft

Resolved
arrow-right
Description

A critical vulnerability exists in the recovery cancellation system involving two interconnected bugs that together create a complete bypass of the cancellation mechanism. Users attempting to cancel recovery requests through GUARDIAN_CANCEL_REQUEST receive false confirmation of cancellation while the recovery remains fully executable after the time delay.
Bug #1: Incomplete Guardian Request Cancellation (Execution Flow)
When GUARDIAN_CANCEL_REQUEST is executed, the system only partially cancels the request due to an execution flow bug in the inheritance chain.

// Guardian.sol _executeAction() - Executes first
else if (actionId_ == GUARDIAN_CANCEL_REQUEST) {
    uint256 requestId = uintParams_[0];
    _cancelRequest(requestId);           // ✅ Executes - Guardian request cancelled
    emit ActionCancelled(requestId, msg.sender);
    return;                              // ⚠️ Execution stops here - CRITICAL BUG
}
// GlobalGoldVault.sol _executeCustomAction() - NEVER reached
else if (actionId_ == GUARDIAN_CANCEL_REQUEST) {
    uint256 requestId = uintParams_[0];
    _cancelRecoveryIfExists(requestId);  // ❌ Never executes - Recovery remains active
}


Bug #2: Recovery Execution Logic Error
The executeRecovery function contains flawed validation logic that allows execution even when the guardian request has been cancelled.Vulnerable Code:


function executeRecovery(bytes32 requestId_) external {
    // ... other checks ...
    
    // FLAWED LOGIC: Uses AND instead of proper validation
    if (
        !IGlobalGoldVault(request.requestingVault).isPendingRequest(
            request.guardianRequestId
        ) &&
        !IGlobalGoldVault(request.requestingVault)
            .getRequest(request.guardianRequestId)
            .finalized
    ) revert GuardianRequestCancelled();
    
    // Recovery proceeds despite cancellation
}

Contract

contracts/Guardian.sol

Recommendation

The immediate priority is implementing a two-pronged fix to address both underlying issues simultaneously. First, the execution flow must be corrected by moving the recovery cancellation logic from the child contract's _executeCustomAction method into the parent contract's _executeAction method, ensuring that when GUARDIAN_CANCEL_REQUEST is processed, both the guardian request cancellation and the associated NFT recovery cancellation occur in sequence before the early return statement.

Missing Access Control for GUARDIAN_RESET_ACTION_THRESHOLD

Resolved
arrow-right
Description

The GUARDIAN_RESET_ACTION_THRESHOLD action is missing from all access control classification functions, which should cause the function to revert with InvalidActionId().

The action GUARDIAN_RESET_ACTION_THRESHOLD is implemented in the guardian system but not properly classified in the access control system. This creates an inconsistency between the action's availability and its permissions.
When submitActionRequest() is called with GUARDIAN_RESET_ACTION_THRESHOLD , the _checkActionPermissions() function should:
1. Check if it's a vault owner only action → NO (not in _isVaultOwnerOnlyAction)
2. Check if it's a guardian only action → NO (not in _isGuardianOnlyAction)
3. Check if it's a vault owner or guardian action → NO (not in _isVaultOwnerOrGuardianAction())
4. Reach the final line and revert with InvalidActionId()

Contract

contracts/GlobalGoldVault.sol

Recommendation

Add GUARDIAN_RESET_ACTION_THRESHOLD to the appropriate classification function. Based on its functionality (resetting action thresholds), it should be a vault owner only action

High Severity Issues

Medium Severity Issues

Low Severity Issues

Informational Issues

Appendix

Disclaimer

GlobalGold

GlobalGold

Critical Severity Issues
High Severity Issues
Medium Severity Issues
Low Severity Issues
Informational Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC