Unquoted Service Path in "Rockstar Game Library Service"
The Rockstar Game Library Service created a Windows service registry entry whose ImagePath was not enclosed in quotation marks. A local attacker could place a malicious executable in a folder along the unquoted path so that Windows would run it instead of the intended binary, potentially escalating privileges.
- Triaged in 2 hours
- Fixed in 20 days
- Paid in 6 days
- Disclosed after 46 days
Summary by the program
In this report, the researcher discovered a flaw in a Registry entry created by the Rockstar Service, which is used to install, update, and uninstall Rockstar Games titles on Windows PCs. Specifically, the ImagePath setting used by the entry was not enclosed in quotation marks. Using quotation marks tells Windows to look at the literal path provided in the setting. Without the quotation marks, Windows will attempt to find the binary it is looking for in every folder along the path, and not just at the literal file path provided in the ImagePath setting. This behavior could be abused by a skilled attacker to perform a local privilege escalation attack.
We have since pushed out an update for the Rockstar Service, enclosing the ImagePath setting in quotes, which solves this issue and prevents this potential attack.
What the report shows
The target is the Rockstar Games Launcher on Windows, and specifically the Rockstar Service, the component used to install, update and uninstall Rockstar Games titles on Windows PCs. The researcher found a flaw in a Registry entry that the service creates.
The entry uses an ImagePath setting, and that setting was not enclosed in quotation marks. The report gives no path value, no registry key location, no service name beyond Rockstar Service, and no version numbers. What it does give is the mechanism: quotation marks tell Windows to use the literal path provided in the setting, and without them Windows searches for the binary it is looking for in every folder along the path rather than only at the literal file path in ImagePath.
The program's summary describes this as something a skilled attacker could abuse to perform a local privilege escalation attack. It does not include a proof of concept, a payload, a command line, or a demonstration of a successful escalation.
The outcome is a fix: an update for the Rockstar Service was pushed out that encloses the ImagePath setting in quotes, which the program says solves the issue and prevents the potential attack.
Root cause
The mistake is an unquoted service path. A Windows service is registered with an ImagePath value that points at the executable to run. When that value contains spaces and is not wrapped in quotation marks, Windows does not treat the whole string as one file path. Instead it tries a series of candidate paths, splitting the string at each space and appending .exe to each prefix, before finally trying the full literal path.
So a service whose binary lives under a directory with a space in its name, such as a path under Program Files, can cause Windows to attempt to execute a file from a shallower directory first. If an attacker can write to one of those earlier directories, they can place a binary there that the service loader will pick up. The report does not state which directory in this case was writable, only that the missing quotes created the opportunity.
Impact
The report frames the impact as local privilege escalation by a skilled attacker. Services typically run under a more privileged account than the interactive user, so code that the service loader executes on start or restart runs with that higher privilege. The program's summary hedges deliberately: this "could be abused" to perform the attack, and the fix "prevents this potential attack". There is no claim in the text that exploitation was demonstrated.
How this kind of bug works
Windows resolves an unquoted ImagePath by trying progressively longer prefixes of the string, each terminated with .exe, in order from the shortest to the longest, and finally the exact string. Each candidate is looked up through the normal file resolution rules, which include the current directory and the directories listed in the PATH environment variable before the intended location is reached. Any directory that appears earlier in that search order and is writable by a low-privileged user becomes a place to drop a malicious executable with a name matching one of the prefixes.
The bug class exists because the service configuration format allows a bare string where a quoted string was intended, and because the loader is permissive rather than rejecting an ambiguous value. It is a configuration and packaging mistake rather than a memory-safety flaw, which is why it tends to appear in installers and updaters that create services at install time.
Defences are straightforward: quote the path, and keep the executable in a directory that unprivileged users cannot write to. Service creation APIs and installer frameworks generally accept a properly quoted path, so the fix is a change to the value written into the registry, not to the loader.
How to test for it
This is a local test on a Windows host, not a web request. The general method:
- Enumerate services and their binary paths, for example with
sc queryandsc qcfor each service, or by reading the service keys underHKLM\SYSTEM\CurrentControlSet\Servicesand theirImagePathvalues. Built-in tooling and common enumeration scripts can list unquoted paths directly. - Filter for
ImagePathvalues that contain a space and are not enclosed in quotation marks. A quoted value starts with a double quote and ends with one; anything else with a space is a candidate. - For each candidate, work out the prefix sequence Windows would try, and check the permissions on each directory in that sequence. A candidate is only interesting if some directory before the real binary is writable by the account you control.
- Confirm by checking whether the service can be restarted, or whether it restarts on reboot, so that the loader re-evaluates the path.
A positive result looks like an unquoted path plus a writable directory earlier in the search order plus a way to trigger a service start. Common false positives: paths that are quoted but contain escaped quotes, paths with no spaces at all, and writable directories that sit after the real binary in the search order, which the loader never reaches first. Another frequent mistake is assuming a writable directory is reachable when the service account cannot actually read from it.
How it is fixed
The standard fix is to enclose the ImagePath value in quotation marks so the loader treats it as a single literal path, which is exactly what the program here reports doing. Alongside that, tighten the ACLs on the directories that appear in the search order so that only administrators and the service account can write to them, and avoid placing service binaries in world-writable locations. Re-checking the value after an update matters, because installers and updaters can rewrite service configuration.
Hunting notes
Unquoted service paths cluster in third-party installers, game launchers, updaters and vendor agents that create services at install time, especially when the install directory contains a space. Recon signals include a service whose binary sits under a path with spaces, a vendor updater that runs as a privileged service, and directories in the install tree with loose permissions.
To get a report accepted, show the full chain rather than the configuration alone: the unquoted value, the exact writable directory earlier in the search order, the permissions that allow the write, and the trigger that causes the service to load the planted binary. State the privilege level the service runs at, since that is what turns a configuration quirk into an escalation. If you cannot demonstrate the write or the trigger, say so plainly and describe the exposure.
What happened, in plain words
This report is about the Rockstar Games Launcher, the program you install on a Windows PC to download, update and remove Rockstar games. Part of that launcher is a Windows service called Rockstar Service. A service is a background program that Windows starts for you, often before you even log in, and it usually runs with more power than a normal user account has. The researcher found a mistake in how that service was set up.
On Windows, every service has a configuration entry in a big database of settings called the Registry. One of the settings in that entry is called ImagePath, and it tells Windows where the service's program file lives. The problem was that the value of ImagePath was not wrapped in quotation marks.
Quotation marks matter here because of how Windows reads a file path. If the path is wrapped in quotes, Windows treats everything between the quotes as one single location and looks only there. Without the quotes, Windows does something different: when the path contains spaces, it starts guessing. It tries the first part of the path, then a longer part, and so on, looking for a program file at each guess before it finally reaches the real location.
Think of it like a delivery driver given the address "Flat 3 Rockstar House Main Street". With the whole address in one piece, the driver goes straight there. Without clear boundaries, the driver might stop at "Flat 3" first, then "Flat 3 Rockstar", and so on. If someone has put a parcel at one of those earlier stops, the driver picks that up instead.
The program's summary says a skilled attacker could abuse this to perform a local privilege escalation. That means: someone who already has a normal, low-power account on the machine could use this flaw to get their code run by the service, and therefore with the service's higher power. The report does not include a demonstration, a proof of concept, a command or a payload. It describes the opportunity, not a successful break-in.
The fix was simple and direct: Rockstar pushed out an update for the Rockstar Service that puts the ImagePath setting in quotation marks. The program states that this solves the issue and prevents the potential attack.
In general, how this kind of bug works
This bug class is called an unquoted service path. It is worth understanding because it turns up again and again in installers, updaters and vendor agents, especially when the program is installed in a folder whose name contains a space, such as Program Files.
Here is the mechanism. When Windows starts a service, it reads the ImagePath value and looks for the program file. If the value is quoted, Windows uses the literal path. If it is not quoted and contains spaces, Windows tries a series of candidate paths: it splits the string at each space, adds .exe to each prefix, and tries them from shortest to longest, finally trying the full literal path. Each candidate is looked up through the normal file resolution rules, which include the current directory and the folders listed in the PATH environment variable before the intended location is reached.
If any of those earlier folders is writable by a low-privileged user, that user can drop a program file there with a name matching one of the prefixes. When the service next starts, Windows may pick up that file and run it with the service's privileges. That is the escalation.
The root cause is a configuration and packaging mistake, not a memory-safety flaw. The service configuration format allows a bare string where a quoted string was intended, and the loader is permissive rather than rejecting an ambiguous value. That is why the bug tends to appear in installers and updaters that create services at install time.
How to test for it
This is a local test on a Windows machine, not a web request. The general method:
- List the services and their program paths, for example with
sc queryandsc qcfor each service, or by reading the service keys underHKLM\SYSTEM\CurrentControlSet\Servicesand theirImagePathvalues. Built-in tools and common enumeration scripts can list unquoted paths directly. - Filter for
ImagePathvalues that contain a space and are not enclosed in quotation marks. A quoted value starts with a double quote and ends with one; anything else with a space is a candidate. - For each candidate, work out the prefix sequence Windows would try, and check the permissions on each folder in that sequence. A candidate is only interesting if some folder before the real program file is writable by the account you control.
- Confirm by checking whether the service can be restarted, or whether it restarts on reboot, so that the loader re-evaluates the path.
A positive result looks like an unquoted path, plus a writable folder earlier in the search order, plus a way to trigger a service start. Common false positives: paths that are quoted but contain escaped quotes, paths with no spaces at all, and writable folders that sit after the real program file in the search order, which the loader never reaches first. Another frequent mistake is assuming a writable folder is reachable when the service account cannot actually read from it.
How it is fixed
The standard fix is to enclose the ImagePath value in quotation marks so the loader treats it as a single literal path, which is exactly what the program here reports doing. Alongside that, tighten the permissions on the folders that appear in the search order so that only administrators and the service account can write to them, and avoid placing service program files in locations that ordinary users can write to. Re-checking the value after an update matters, because installers and updaters can rewrite service configuration.
Where to look for it
Unquoted service paths cluster in third-party installers, game launchers, updaters and vendor agents that create services at install time, especially when the install folder contains a space. Signals worth noticing include a service whose program file sits under a path with spaces, a vendor updater that runs as a privileged service, and folders in the install tree with loose permissions.
To get a report accepted, show the full chain rather than the configuration alone: the unquoted value, the exact writable folder earlier in the search order, the permissions that allow the write, and the trigger that causes the service to load the planted program. State the privilege level the service runs at, since that is what turns a configuration quirk into an escalation. If you cannot demonstrate the write or the trigger, say so plainly and describe the exposure.
Glossary
- Service: a background program that Windows starts and manages, often running with more power than a normal user account.
- Registry: the central database of settings on Windows, where service configuration is stored.
- ImagePath: the service setting that tells Windows where the service's program file is located.
- Quotation marks: characters that tell Windows to treat everything between them as one literal value.
- Unquoted service path: a service configuration where the program path contains spaces but is not wrapped in quotes, so Windows tries several candidate paths.
- Local privilege escalation: using a flaw on a machine you already have a low-power account on to get code run with higher privileges.
- Privilege: the level of power an account or program has on a system.
- Binary / executable: a program file that the computer can run.
.exe: the file extension for a Windows program file.PATHenvironment variable: a list of folders Windows searches when looking for a program by name.- ACL (Access Control List): the list of rules that says who is allowed to read, write or run something.
- CVSS score: a standard number that rates the severity of a security flaw.
- Proof of concept: a demonstration that shows a flaw can actually be exploited.
- Payload: the code or file an attacker uses to carry out an attack.
- False positive: a result that looks like a problem but is not actually exploitable.