KK
08/02/2023, 2:12 PMosqueryd.results.log.X.zst files.
I see that the currently active osqueryd.results.log file is correctly access controlled to rw-r----- but I see that its respective .zst archives are given a rw-r--r-- permission. This allows any user on the system to unarchive the log archive and read the content of the results output.
Could anyone else replicate this issue? Shouldn't the .zst archive have the same access control flags as its log file? If not the attacker can just wait until the results.log gets rotated into an archive and read its content.Stefano Bonicatti
08/02/2023, 3:44 PM0666 but umask downgrades it to 0644 , so that results in the permissions you see. Also the status logs are 0644.KK
08/02/2023, 3:49 PMStefano Bonicatti
08/02/2023, 3:52 PM0666 in the core, when creating files, seems a but dangerous, umask or not.
EDITED: Forgot about log collectors, and then /var/log/osquery already not being open for everyoneStefano Bonicatti
08/02/2023, 3:52 PMKK
08/02/2023, 4:09 PMKK
08/02/2023, 4:18 PMStefano Bonicatti
08/02/2023, 4:20 PM0750