Tainted flow: 'binary' from os.environ.get (line 8, credential/environment) → subprocess.Popen (code execution)
Medium
- Category
- Data Flow
- Content
notif = json.dumps({"jsonrpc":"2.0","method":"notifications/initialized"}) call = json.dumps({"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":tool,"arguments":args}}) proc = subprocess.Popen([binary], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True) proc.stdin.write(init + "\n" + notif + "\n" + call + "\n") proc.stdin.flush()- Confidence
- 96% confidence
- Finding
- proc = subprocess.Popen([binary], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True)
