Skip to content
Katabench
Try free

Shell Argument Quoting

Easy About 20 min Katabench Pro

Quote customer-named files for a shell command so tar archives exactly those files, whatever characters the names contain.

The full brief is part of Katabench Pro

Pro opens this kata's brief, its starter code and its grader. To see how the track works first, try Comment Renderer (HTML Injection), which is free.

How it is graded

Functional tests and adversarial payloads both have to pass before the solution is accepted.

C# secure coding exercises →

What it practices

Command injection
Quote or avoid shell arguments so file names cannot become commands.

Related katas