subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: env = os.environ.copy() env["PYTHONIOENCODING"] = "utf-8" result = subprocess.run( ["py", "-X", "utf8", HTSC_QUERY, "queryIndicator", "--query", f"{code}{name}今天MACD、KDJ、RSI、换手率、主力资金流向"], capture_output=True, text=True, encoding="utf-8", timeout=30,- Confidence
- 89% confidence
- Finding
- The script executes a separate local skill via subprocess using a fixed path under the user's home directory. Although it does not use shell=True and the immediate arguments here are mostly constant, it still creates a trust boundary crossing: any tampered or malicious sibling skill at that path will execute with the current user's privileges and its output is implicitly trusted as JSON and trading intelligence.
