subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env = os.environ.copy() env["BANKR_ALLOW_TRADE"] = "1" # Bypass trade guard for mechanical pipeline env["BANKR_ALLOW_SELL"] = "1" # Legacy sell override result = subprocess.run( [BANKR_SH, prompt], capture_output=True, text=True, timeout=330, env=env,- Confidence
- 96% confidence
- Finding
- The script constructs a high-risk trade command and invokes an external executable to sell assets automatically. Although subprocess is called without a shell, the command content is derived from position/config data and is used to trigger irreversible on-chain actions, while the code explicitly sets environment flags to bypass Bankr trade guards.
