subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""解包 asar 到 dest_dir,失败 sys.exit。""" try: os.makedirs(dest_dir, exist_ok=True) result = subprocess.run( ["asar", "extract", asar_path, dest_dir], capture_output=True, text=True, timeout=120, )- Confidence
- 83% confidence
- Finding
- The script invokes an external asar binary found via PATH to extract an attacker-influenced archive path. While shell injection is not present, the skill context makes this risky because a trojanized or shadowed asar executable could be executed with the user's privileges during normal use of the tool.
