Will It Vibe logoWill It Vibe?
INJECT-015Medium severity-8 points

Shell command built with interpolation (Ruby)

Part of Security, which counts for 30% of the overall score. When this check fires it deducts 8 points from that category, once per scan, no matter how many places it turns up.

What it detects

A system() call, backtick command, or %x{} interpolates #{...} into the command, which is a command injection risk when the value is user-controlled.

Why it matters

system(), backticks, and %x{} run their argument through a shell, so interpolating #{value} lets a crafted value inject extra commands. This is high impact with user input. It is a heuristic because the interpolated value may be a trusted constant.

How to fix it

Use the multi-argument form of system, which does not invoke a shell: system("ping", "-c", "1", host). For captured output use Open3.capture2/3 with separate arguments. Do not interpolate input into a shell string.

The paid report includes a ready-to-paste prompt for your AI coding agent for every check it finds, pointed at the exact findings from your scan. See pricing

Does your repo trip this check?

Paste a GitHub URL or drop a project folder. Scans run in your browser and take seconds.

Scan your repo

Related Security checks