os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
if __name__ == "__main__": DATA_FILE = os.path.expanduser("~/.okx_data/historical/btc_4h_recent.json") os.system('okx market index-candles BTC-USD --bar 4H --limit 100 --history --json > ~/.okx_data/historical/btc_4h_recent.json 2>/dev/null') strategy = BTC10xStrategyV40(DATA_FILE) result = strategy.run()- Confidence
- 93% confidence
- Finding
- os.system('okx market index-candles BTC-USD --bar 4H --limit 100 --history --json > ~/.okx_data/historical/btc_4h_recent.json 2>/dev/null')
