trading-plan-generator
Warn
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/generate_plan.shis vulnerable to command injection within itsprompt_inputfunction. It uses theevalcommand (e.g.,eval "$var_name=\"$input\"") to process user input received via thereadcommand without any sanitization or validation. This allows an attacker to execute arbitrary shell commands by providing input containing metacharacters such as backticks, semicolons, or dollar-sign parentheses. - [DYNAMIC_EXECUTION]: The use of
evalinscripts/generate_plan.shto dynamically handle variable assignments from user-controlled strings constitutes a significant security risk for dynamic execution. - [COMMAND_EXECUTION]: The script
scripts/position_calculator.shis vulnerable to command injection through unsafe shell expansion. User-provided values likeACCOUNT_SIZEandRISK_PERCENTare interpolated directly into shell command strings (e.g.,echo "... $ACCOUNT_SIZE ..." | bc). If these inputs contain command substitution patterns, they will be executed by the shell during the evaluation of the pipe.
Audit Metadata