CVE-2022-24696 – Glance By Mirametrix Privilege Escalation
The Glance by Mirametrix service allowed all users to change its configuration, including the binary path. An attacker could replace the service binary with a malicious executable to escalate privileges to SYSTEM.
Published on trustedsec.com
Hardware Security Assessment Penetration Testing Red Team Adversarial Attack Simulation Security Testing & Analysis
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
The service's access control list granted the built-in Users group permission to change the service configuration, including the binary path.
Impact
An attacker with local access could escalate from a standard user to SYSTEM, gaining full control of the machine.
What the attacker needed
Local access to the machine; Glance by Mirametrix version 4.5.16.39967 installed
The fix
The issue was fixed by removing the old version of Glance and installing a new version from the Microsoft Store, which does not have the vulnerable service configuration.
How it was found
- Check the service permissions with accesschk.exe and find that Users can change the configuration.
- Query the registry to find the current service binary path.
- Replace the service binary path with a malicious executable (RogueWinRM.exe) that performs privilege escalation.
- Restart the service so the malicious binary runs and escalates to SYSTEM.
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 Windows service runs programs in the background with high privileges. If ordinary users can change which program a service runs, they can point it to their own program and have it run with those high privileges, taking over the computer.
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.