Tainted flow: 'OPENBB_BINARY' from os.environ.get (line 42, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
results = [] for symbol in symbols[:10]: # Limit to 10 symbols try: result = subprocess.run( [OPENBB_BINARY, symbol, '--earnings'], capture_output=True, text=True,- Confidence
- 77% confidence
- Finding
- OPENBB_BINARY can be sourced from the OPENBB_QUOTE_BIN environment variable and then executed. While this is likely intended configurability, it creates a code-execution sink if an attacker can influence the process environment, causing the script to run an arbitrary executable under the script's privileges.
