Yet Another Local Privilege Escalation Attack via Razer Synapse Installer (CVE-2021-44226)
The Razer Synapse installer used an insecure installation path and improper privilege management, allowing a local user to replace or add a DLL with malicious code. Because the code runs in a high-privileged context, the attacker can obtain SYSTEM privileges.
Published on blog.syss.com
During a research project in fall 2021, SySS IT security expert Dr. Oliver Schwarz found a security vulnerability in the Razer Synapse installer for Windows which can be exploited in a local privilege escalation attack.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the installer placed a DLL in a user-writable location and a privileged service loaded it without validating its origin.
Impact
A local Windows user could obtain local administrative privileges as the SYSTEM account; the vulnerability has been fixed by Razer.
What the attacker needed
Local Windows user access; attach a supported Razer USB device
The fix
The vulnerability was fixed by Razer in newer Razer Synapse software versions.
How it was found
- Attach a real or fake Razer USB device supported by Razer Synapse to the target system.
- Replace or add a DLL file with one containing malicious code.
- The malicious DLL is executed in a high-privileged context, granting 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 write-up has not been written yet. The Original tab links to the source.
A DLL is a shared program file that Windows loads when an application runs. The installer put a DLL in a place where a normal user could swap it for a malicious one, and then a high-privilege service loaded it. This let a local user become the all-powerful SYSTEM account.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.