Skip to content
Access control Advisory Intermediate CVE-2018-4048

GOG Galaxy updater temp directory insecure file permissions local privilege elevation vulnerability

The GOG Galaxy updater extracted its executables into a Temp directory that granted the Everyone group full control, so any local user could overwrite the updater binaries before they were installed. An attacker could then have those overwritten files run with SYSTEM privileges, achieving local privilege elevation.

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 Temp directory. An attacker can overwrite executables of the Desktop Galaxy Updater 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 updater's Temp directory was created with a default permission granting the Everyone group full control, so low-privileged users could modify files that were later executed with SYSTEM rights.

Impact

A local attacker could overwrite the updater executables before installation and thereby execute arbitrary code with SYSTEM privileges.

What the attacker needed

Local access to the machine; a low-privileged user account

The fix

The vendor patched it; users could also replace the Everyone group's Full Control permission with Read and Execute on the Temp directory and ensure child objects inherit from the parent.

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, every file has permissions saying who may read or change it. Here a folder used by the game launcher's updater let every user on the computer change the files inside it. Because those files were later run with the highest system rights, a normal user could swap them for their own program and gain those rights.

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.