video-explorer
Fail
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: Command injection vulnerability in
scripts/videxwithin thecmd_rangefunction andtime_to_secondsutility. - The
time_to_secondsfunction returns raw, unvalidated input in itselsebranch if the input does not match expected time formats (HH:MM:SS or MM:SS). - The
cmd_rangefunction uses a loose regular expression^([^-]+)-(.+)$to parse the range argument, allowing arbitrary strings to be assigned tostart_timeandend_time. - These values are then passed to
time_to_seconds, and the results are interpolated into a shell command for thebccalculator: `local duration=$(echo "$end_sec - $start_sec" | bc)`.
- Because the variables are evaluated within a command substitution (
$(...)) inside double quotes, any shell commands embedded in therangeargument (e.g.,0-$(id)) will be executed by the shell before the command is passed tobc. - [DYNAMIC_EXECUTION]: The script dynamically assembles and executes shell commands using user-controlled input without sufficient sanitization.
- The
ffmpegfilter parameters forfpsandscaleare directly interpolated from theinterval,width, andfpsarguments, providing an additional surface for command injection if an attacker can influence these parameters through the agent's interaction loop.
Recommendations
- AI detected serious security threats
Audit Metadata