DashboardopencodePTY env authorization bypass

PTY env authorization bypass

Category: gotcha
Confidence: 1.00
ID: 01a07f58-e0a9-7c42-8b09-ecf2e6070c18
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 1RrS1SJqju8uNiFRa
Created: 2026-09-08 02:49:59
Updated: 2026-09-08 04:48:46

Content

Trap: inheriting the service-manager or client environment looks convenient, but it can leak /home/byk/.opencode/env credentials or let client-controlled values alter execution. Fix: accept no environment or systemd property names from clients; the fixed launcher must call clearenv() and set only HOME, LANG, PATH, SHELL, and TERM before executing /usr/bin/script.

Move to: