subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
candidates = [[*shlex.split(command), "auth", "print-access-token"]] for cmd in candidates: try: token = subprocess.check_output( cmd, env=env, text=True,- Confidence
- 88% confidence
- Finding
- The code executes a subprocess based on the FULCRA_CLI_COMMAND environment variable, split into argv and then invoked. Although it does not use shell=True, it still allows an attacker who can influence environment variables or runtime configuration to cause execution of an arbitrary binary for token retrieval, which is unsafe for an analytics skill.
