-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make fog.log unreadable by standard users #46
Comments
On top of changing permission I also suggest we move that file to |
I agree! I have the code to change the permissions, but need to locate all the code that refer to the log file itself. I'll dig through the FOG Client code, as I'm sure there's a section in there about it too. |
@0x41c Could you please elaborate on the thoughs on this you posted on Mattermost? |
@Sebastian-Roth Do we know what the UserService does? If it does not run as an Administrator, then the path-changing will not help.
It looks like I am able to just change Zazzles/Log/Log.cs to adjust the path for any logging. I am going to work on building both Zazzles and the FOG Client, and make sure it's working as expected. After that, I'll ask for a code review (again, I'm not good with C#). |
For sure, and I think what lukebarone mentioned is what I have a concern with. If UserService does run as Administrator, then any issues found in fog-client will directly lead to local privledge-escalation. I have yet to do dynamic analysis on it, but I'd wait until there's been a good audit on fog-client as a sanity check before we require higher privileges be given to it if it's not given already. |
@lukebarone The fog-client consists of two processes at runtime as far as I know. The one running as a service (FOGService) and another one running when a user is logged in - FOGUserService.exe - I think it's running as user not as Administrator (code ref). So that means that we'd need to either pipe the log information through zazzles message bus (code ref) - not even sure that is possible; or user log information needs to be stripped down/removed altogether. From a few years helping to debug and work on the fog-client/zazzles stuff I can tell you that I haven't looked at this log much at all. Though I would not decide to drop it in a rush. |
I'm going to see on one of my test machines if after changing the path and permissions on the fog.log file if it is still being written to - if so, then we know the service writing to the log file is running as an Administrator, and these changes should work (again, needing to get the build to work first) |
I propose changing the fog.log file to be unreadable by standard users, and only accessible by members of the Administrators group.
Link for reference: https://github.com/FOGProject/zazzles/blob/master/Zazzles/Log/Log.cs#L282
The text was updated successfully, but these errors were encountered: