Skip to content

v2.5.1 — Session log hardening

Choose a tag to compare

@VelimirMueller VelimirMueller released this 09 Oct 00:08
· 233 commits to develop since this release
Immutable release. Only release title and notes can be modified.
v2.5.1
0a5ee90

Security

  • Session log refuses anything but a regular file (overdrive contract rule 2). src/sessionlog.ts now opens the log with O_WRONLY|O_APPEND|O_CREAT|O_NOFOLLOW|O_NONBLOCK (mode 0600) and checks the open handle with fstat before its one write. A symlink planted at the log path no longer redirects the append into its target; a directory or fifo at the log path gets nothing written and never blocks. Errors stay swallowed. On a platform without O_NOFOLLOW the helper writes nothing.