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$
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$
03
Phase 3: Reading the Flag File
We append `cat file.txt` to dump the flag contents:
studio@pwnbox:~/cylab-ping-cmd$
studio@pwnbox:~/cylab-ping-cmd$
Final Target Proof of Compromise
Target Root Capture Flag
STUDIO{pwn3d_fl4g_h1dd3n_h3x_00000}