Skip to content
Access control Advisory Beginner CVE-2018-3974

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.

Richard Johnson Follow

Originally disclosed on Cisco Talos

Critical 9.3 View original

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.

Richard Johnson, on Cisco Talos

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

  1. Check the permissions on the GOG Galaxy install directory and note that Everyone has full control.
  2. Check the permissions on GalaxyClientService.exe and note that Everyone can modify it.
  3. Confirm that the GalaxyClientService runs as LocalSystem.
  4. Observe that GalaxyClient.exe is launched at login and triggers the service.
  5. 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.

More by Richard Johnson

View all

2 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.