Advantech SQ Manager Server 1.0.6 privilege escalation vulnerability
The Advantech SQ Manager Server installation directory grants the Everyone group full control over service binaries and DLLs used by the PostgreSQL service. An attacker can replace these files to escalate privileges from Everyone to NETWORK SERVICE, and then abuse SeImpersonatePrivilege to achieve NT SYSTEM execution.
Originally disclosed on Cisco Talos
A privilege escalation vulnerability exists in Advantech SQ Manager Server 1.0.6. A specially-crafted file can be replaced in the system to escalate privileges to NT SYSTEM authority.
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
Likely the installer sets weak file permissions, giving the Everyone group full control over service binaries and DLLs that are later executed by a privileged service.
Impact
An attacker with local access could escalate privileges from the Everyone group to NETWORK SERVICE and then to NT SYSTEM, gaining full control of the system.
What the attacker needed
Local access to the system; ability to write to the installation directory
The fix
The vendor patched the vulnerability, likely by correcting the default file permissions on the installation directory.
How it was found
- Identify the service binary files in the installation directory that the Everyone group can modify.
- Replace one of those files with a malicious file.
- Restart the service so the replaced file is executed with NETWORK SERVICE privileges.
- Use the service's SeImpersonatePrivilege to impersonate a token and run code as NT 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 report has not been written yet. The Original tab links to the source.
This report describes a Windows program that installs its files in a folder where any user on the computer can change them. Because a background service runs those files with higher permissions, a low-privileged user can swap in their own file and gain more control 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.