Advantech DeviceOn/iService 1.1.7 Server installation privilege escalation vulnerability
The Advantech DeviceOn/iService installation directory grants the 'Everyone' group full control over service binaries and DLLs. An attacker can replace these files to escalate privileges from any user to NETWORK SERVICE, and then to NT SYSTEM by abusing SeImpersonatePrivilege.
Originally disclosed on Cisco Talos
A privilege escalation vulnerability exists in the installation of Advantech DeviceOn/iService 1.1.7. 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
The installation directory and its service binaries were configured with incorrect default permissions, allowing the 'Everyone' group full control.
Impact
An attacker with any user account could escalate 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; service restart
The fix
The vendor patched the vulnerability, presumably by correcting the default permissions on the installation directory and service binaries.
How it was found
- Identify the installation directory and the service binaries with weak permissions.
- Replace one of the service binaries or DLLs with a malicious file.
- Restart the service so it loads the replaced file.
- Use the resulting NETWORK SERVICE token with SeImpersonatePrivilege to escalate to 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.
On Windows, files and folders have permissions that decide who can change them. Here, a folder used by a background service was writable by everyone, so any user could swap a program file for their own. When the service restarted, it ran the attacker's file with higher privileges, letting the attacker take control of 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.