Skip to content

fix: resolve OS command injection in plumber dataproc tool by removin…#2213

Open
AK47Kavan wants to merge 2 commits into
google:mainfrom
AK47Kavan:fix/plumber-command-injection
Open

fix: resolve OS command injection in plumber dataproc tool by removin…#2213
AK47Kavan wants to merge 2 commits into
google:mainfrom
AK47Kavan:fix/plumber-command-injection

Conversation

@AK47Kavan

Copy link
Copy Markdown

Fixes #2202

Description

This PR resolves the OS command injection vulnerability reported in issue #2202 within the plumber-data-engineering-assistant sub-agent.

Changes

  • Removed the insecure use of shell=True and " ".join(command) in get_dataproc_normal_job_logs_with_id inside monitoring_agent/tools/dataproc.py.
  • Refactored the execution to pass parameters as a safe, explicit list configuration using shell=False. This ensures that user-controlled inputs (like job_id) are evaluated strictly as literal arguments rather than executable shell strings.

Verification

  • Ensured parameters are passed correctly as an array.
  • Verified that formatting and structure comply with the repository's guidelines.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OS Command Injection in plumber-data-engineering-assistant Dataproc log tool (shell=True)

1 participant