Reading
PentestingHere Academy
23 Sep 2026
What it is
Whenever user input is concatenated into a string that gets handed to a shell, an attacker can often append a second command of their own, using the shell's own metacharacters.
The labs here
- PingPoint uptime checker injection: the direct version. A
hostfield is concatenated straight into aping -c 1 <input>shell command. A semicolon, backtick, or$()gets you a second command running alongside (or instead of) the intended one. - ArchiveIt tar wildcard injection: no shell metacharacters needed at
all here. The folder name itself is properly escaped, but filenames
inside that folder aren't, and the backup command runs
tar czf backup.tar.gz *. Create a file whose name looks like ataroption (for example one starting with--checkpoint-action=), and the wildcard expansion hands it totaras an argument instead of a filename, which is enough to run an arbitrary command.