subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # 执行 clawhub update result = subprocess.run( ["clawhub", "update", self.slug, "--force"], capture_output=True, text=True,- Confidence
- 93% confidence
- Finding
- This subprocess call performs a forced remote update of the skill via an external package manager. Even though it avoids shell injection, it still allows code and content in the skill to be replaced from a remote source without explicit trust verification, version pinning, or interactive confirmation, creating a supply-chain and unauthorized code-change risk.
