Skip to content

[Security] Shell execution in command helper allows prompt-to-command injection #1

@RReport

Description

@RReport

Hi,

I found a potential security issue in:

main.py

Specifically in the execute_command function:

result = subprocess.run(
    command, 
    shell=True, 
    capture_output=True, 
    text=True, 
    encoding='utf-8'
)

Why this is a security issue

  1. The command string is executed with shell=True, enabling shell interpretation.
  2. Even with a confirmation prompt, the command can still be manipulated via LLM-generated input or untrusted sources in MCP workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions