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/videx within the cmd_range function and time_to_seconds utility.
  • The time_to_seconds function returns raw, unvalidated input in its else branch if the input does not match expected time formats (HH:MM:SS or MM:SS).
  • The cmd_range function uses a loose regular expression ^([^-]+)-(.+)$ to parse the range argument, allowing arbitrary strings to be assigned to start_time and end_time.
  • These values are then passed to time_to_seconds, and the results are interpolated into a shell command for the bc calculator: `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 the range argument (e.g., 0-$(id)) will be executed by the shell before the command is passed to bc.
  • [DYNAMIC_EXECUTION]: The script dynamically assembles and executes shell commands using user-controlled input without sufficient sanitization.
  • The ffmpeg filter parameters for fps and scale are directly interpolated from the interval, width, and fps arguments, 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
Risk Level
HIGH
Analyzed
Nov 22, 2026, 01:41 PM