Skip to content

[SECURITY] [v0.1.0] Command execution vulnerability in tasks.rs allows arbitrary shell commands #53521

Description

@R-Panic

Command Execution Vulnerability in tasks.rs

Version: v0.1.0

Vulnerability Type: Remote Code Execution (RCE)

File: src-tauri/src/tasks.rs

Issue:
The tasks.rs module passes user-controlled arguments to system commands without proper sanitization. This allows attackers to inject arbitrary shell commands.

Impact:

  • Remote code execution
  • Arbitrary command execution
  • System compromise

Proof of Concept:

Task: clean && rm -rf /
Executes: clean AND rm -rf /

Actual PoC Output:

POC: Shell Command Injection
Task: clean && rm -rf /
If unsanitized, executes: clean AND rm -rf /
Result: Arbitrary command execution!

Attack Vectors:

  1. Valid command && malicious
  2. Valid command | malicious
  3. Valid command; malicious

Recommendation:

  1. Never use shell=True
  2. Validate and sanitize all arguments
  3. Use argument arrays
  4. Implement command whitelist

Severity: CRITICAL
CVSS: 9.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions