Post

Global-Hyperlink-Zone

HackTheBox Global-Hyperlink-Zone machine writeup — reconnaissance and enumeration walkthrough.

Global-Hyperlink-Zone

Challenge Overview

The Global Hyperlink Zone is a quantum computing challenge that simulates a 5-qubit quantum circuit over multiple measurement shots. The challenge server reads gate instructions, builds and executes the circuit, then verifies if the measurement results satisfy a specific pattern. Understanding quantum gates and their behavior is essential to craft the correct payload and retrieve the flag.

What Makes This Challenge Interesting

This challenge elegantly combines three concepts:

  1. Quantum Gate Operations - understanding how H (Hadamard) and CX (CNOT) gates transform qubit states
  2. Measurement & Probabilistic Outcomes - how repeated measurements create bit-strings (shares)
  3. Constraint Satisfaction - satisfying three specific equality/inequality conditions simultaneously

Understanding the Challenge Mechanics

The Server’s Workflow

The Global Hyperlink Zone service operates in the following sequence:

  1. Accept Instructions - The server prompts for a gate instruction string formatted as GATE:QUBIT[,QUBIT];GATE:QUBIT[,QUBIT];...
  2. Build Circuit - Constructs a 5-qubit quantum circuit and applies gates in the specified order
  3. Execute & Measure - Runs the circuit for many shots (measurement iterations) and records outcomes
  4. Extract Shares - For each qubit (0-4), concatenates all measured bits into a binary string called a “share”
  5. Validate Constraints - Checks three conditions:
    • share0 == share1 == share3 (three qubits must have identical measurement patterns)
    • share2 == share4 (two qubits must have identical measurement patterns)
    • share2/4 != share0/1/3 (the two groups must differ)
  6. Return Flag - If all conditions pass, outputs the flag from flag.txt

The Constraint Pattern Visualized

1
2
3
4
5
6
7
8
9
10
Required Pattern:
┌─────────────────────────┐
│  Qubits: 0, 1, 3        │  ← Must all be identical (Group A)
│  Pattern: share0        │
└─────────────────────────┘
            ≠
┌─────────────────────────┐
│  Qubits: 2, 4          │  ← Must all be identical (Group B)
│  Pattern: share2        │
└─────────────────────────┘


🔒

Premium Content

The full exploitation walkthrough, privilege escalation, and flags are available exclusively for members.

Unlock Full Writeup →
This post is licensed under CC BY 4.0 by the author.