Commit 1a5099b
committed
fix(security): Telegram stderr log 0644→0600 — world-readable file in /tmp
spawnChild() opens /tmp/odek-telegram.log with 0644 permissions,
making the Telegram bot's stderr output readable by any user on the
system. This log contains startup errors, connection failures, and
other diagnostic output that could leak paths or sensitive context.
Changed to 0600 (owner-only read/write). The log is a private
debugging artifact for the process that created it.
Fixes H4 from security audit.1 parent 86eea65 commit 1a5099b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| |||
0 commit comments