Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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