subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
path = os.path.join(base_dir, "games", game, f"{game}.py") if os.path.exists(path): args = [sys.executable, path] + sys.argv[3:] subprocess.run(args, cwd=base_dir) else: print(_('game_not_found', game=game)) return- Confidence
- 86% confidence
- Finding
- subprocess.run(args, cwd=base_dir)
