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:
- Valid command && malicious
- Valid command | malicious
- Valid command; malicious
Recommendation:
- Never use shell=True
- Validate and sanitize all arguments
- Use argument arrays
- Implement command whitelist
Severity: CRITICAL
CVSS: 9.8
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:
Proof of Concept:
Actual PoC Output:
Attack Vectors:
Recommendation:
Severity: CRITICAL
CVSS: 9.8