Project
vgrep
Description
In install.rs lines 383 and 406, Python hook files are generated with paths embedded directly using format!(). If the path contains quotes or shell metacharacters, the Python subprocess call could execute arbitrary commands.
Error Message
Debug Logs
System Information
Bounty Version: 0.1.0
OS: Ubuntu 24.04 LTS
CPU: AMD EPYC-Genoa Processor (8 cores)
RAM: 15 GB
Screenshots
No response
Steps to Reproduce
- Create Factory Droid directory at a path with special chars:
~/.factory' && rm -rf / #/
- Run
vgrep install droid
- Malicious Python hooks are generated
- When hooks execute, arbitrary commands run
Expected Behavior
Paths properly escaped for shell execution
Actual Behavior
Paths embedded raw, allowing injection
Additional Context
No response
Project
vgrep
Description
In
install.rslines 383 and 406, Python hook files are generated with paths embedded directly usingformat!(). If the path contains quotes or shell metacharacters, the Pythonsubprocesscall could execute arbitrary commands.Error Message
Debug Logs
System Information
Screenshots
No response
Steps to Reproduce
~/.factory' && rm -rf / #/vgrep install droidExpected Behavior
Paths properly escaped for shell execution
Actual Behavior
Paths embedded raw, allowing injection
Additional Context
No response