subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 使用OCR识别内容 try: result = subprocess.run(["node", OCR_SCRIPT, chat_screenshot, "--lang", "chi_sim"], capture_output=True, text=True, encoding='utf-8', errors='ignore') message = result.stdout.strip()- Confidence
- 93% confidence
- Finding
- The code launches an external OCR process on captured chat screenshots, introducing an undeclared execution boundary and handling sensitive candidate data outside the main script. While the arguments are not shell-interpolated, this still expands the attack surface and can process private content through another component without validation, consent, or integrity checks.
