Skip to content
Access control Advisory Intermediate CVE-2021-40389

Advantech DeviceOn/iEdge Server 1.0.2 privilege escalation vulnerability

The Advantech DeviceOn/iEdge Server installation 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 a low-privileged user to NT AUTHORITY\SYSTEM.

Yuri Kramarz Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A privilege escalation vulnerability exists in the installation of Advantech DeviceOn/iEdge Server 1.0.2. A specially-crafted file can be replaced in the system to escalate privileges to NT SYSTEM authority.

Yuri Kramarz, on Cisco Talos

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 installer set weak file permissions, giving the 'Everyone' group full control over service executables and libraries.

Impact

An attacker with local access could escalate privileges to NT AUTHORITY\SYSTEM, gaining full control of the system.

What the attacker needed

Local access to the system; ability to write to installation directory

The fix

The vendor patched the vulnerability, presumably by correcting the file permissions.

How it was found

  1. Locate the vulnerable service binaries or DLLs in the installation directory.
  2. Replace one of these files with a malicious file.
  3. Restart the affected service.
  4. Use the SeImpersonatePrivilege assigned to the service to escalate to NT AUTHORITY\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 is a privilege escalation bug. The software installer gave every user on the computer permission to change important program files. A normal user can swap one of those files with their own program, and when the service restarts it runs that program with higher privileges, letting the attacker take full 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.

More by Yuri Kramarz

View all

57 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.