subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not parking_script.exists(): return "(停車查詢 skill 未安裝)" try: result = subprocess.run( [python, str(parking_script), "--lat", str(lat), "--lon", str(lon), "--mode", "realtime"], capture_output=True, text=True, timeout=30 )- Confidence
- 92% confidence
- Finding
- The skill executes another local Python skill via subprocess, creating a trust boundary crossing to code outside this file. Although shell injection is mitigated by passing an argument list, this still allows execution of whatever code exists at ~/.openclaw/skills/parking_query/parking_query.py, so a tampered or malicious local skill would run with the current user's privileges.
