fluent / sigdump

Use signal to show stacktrace of a Ruby process without restarting it
Apache License 2.0
188 stars 27 forks source link

Fix default dump file permission : 0666 => 0600 #11

Open Etsukata opened 5 years ago

Etsukata commented 5 years ago

Currently, the default dump file permission is 0666. But there will be no reason to let other users to read or modify dump files.

An attacker could inject some malicious escape sequences into a file, which may be executed on a victim’s terminal emulator (Not Critical).

Etsukata commented 5 years ago
Etsukata commented 5 years ago

This PR does not mean the current implementation is vulnerable to symlink attacks. Because the sticky bit is usually set on /tmp and sigdump uses just /tmp (not sub dirs of '/tmp').