GOG Galaxy service insecure file permissions local privilege elevation vulnerability
The GOG Galaxy install directory granted full control to the Everyone group, allowing any local user to overwrite the GalaxyClientService.exe executable. Since that service runs as LocalSystem and is triggered on login, an attacker could replace the executable to execute arbitrary code with system privileges.
Originally disclosed on Cisco Talos
An exploitable local privilege elevation vulnerability exists in the file system permissions of GOG Galaxy’s install directory. An attacker can overwrite an executable that is launched as a system service on boot by default to exploit this vulnerability and execute arbitrary code with system privileges.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The installer set weak file system permissions (Full Control for Everyone) on the installation directory and its service executable, allowing any local user to modify them.
Impact
A local attacker could execute arbitrary code with system privileges, leading to full compromise of the machine.
What the attacker needed
Local access to the machine; low-privileged user account
The fix
The vendor patched the vulnerability; users can also mitigate by replacing Full Control with Read and Execute for the Everyone group on the install directory and ensuring inheritance.
How it was found
- Check the permissions on the GOG Galaxy install directory and note that Everyone has full control.
- Check the permissions on GalaxyClientService.exe and note that Everyone can modify it.
- Confirm that the GalaxyClientService runs as LocalSystem.
- Observe that GalaxyClient.exe is launched at login and triggers the service.
- Replace GalaxyClientService.exe with arbitrary code to execute with system privileges.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
On Windows, some programs run with high privileges (like a system administrator). If a normal user can modify the files of such a program, they can replace it with their own code and gain those high privileges. Here, the GOG Galaxy folder allowed any user to write to it, so a low-privileged user could swap the service executable and take over the machine.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.