Lucene search

K
talosTalos IntelligenceTALOS-2021-1399
HistoryJan 18, 2022 - 12:00 a.m.

Advantech SQ Manager Server 1.0.6 privilege escalation vulnerability

2022-01-1800:00:00
Talos Intelligence
www.talosintelligence.com
32
advantech sq manager server
privilege escalation
directory permissions
nt authority\network service
dll files
postgresql service

CVSS2

7.2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS3

8.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.001

Percentile

17.8%

Summary

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. An attacker can provide a malicious file to trigger this vulnerability.

Tested Versions

Advantech SQ Manager Server 1.0.6

Product URLs

<https://www.advantech.com/support/details/utility?id=1-1YVUBC7&gt;

CVSSv3 Score

8.8 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

CWE

CWE-276 - Incorrect Default Permissions

Details

SQ Manager Server is a remote monitoring dashboard for manging SQRAM and SSD devices in IoT enviroments.

By default, Advantech SQ Manager Server is installed in the “c:\Program Files\Advantech" directory, which allows the “Everyone” group to have “Full” privilege over various service binary files in the directory, including library and executabes files loaded by the PostgreSQL service. The service execute these binaries with a “NT AUTHORITY\NETWORK SERVICE” privilege, leading to privilge escalation from ‘Everyone’ to ‘NETWORK SERVICE’ user when the file is replaced and service is restarted. As the services are assigned SeImpersonatePrivilege it is then possible to take advantage of that permission to achieve reliable execution with NT SYSTEM privilege due to impersonation of the token.

C:\Program Files\Advantech\SQ Manager Server\database\PostgreSQL\pgsql\bin\psql.exe Everyone:F
																					NT AUTHORITY\SYSTEM:F
																					
C:\Program Files\Advantech\SQ Manager Server\database\PostgreSQL\pgsql\bin\postgres.exe Everyone:F
																						NT AUTHORITY\SYSTEM:F
																						
C:\Program Files\Advantech\SQ Manager Server\database\PostgreSQL\pgsql\bin\pg_ctl.exe Everyone:F
																					  NT AUTHORITY\SYSTEM:F

In addition, various DLL files can be used to perform similar exploitation of the system from the same installation folder:

libpq.dll
libeay32.dll
libiconv-2.dll
libintl-8.dll
ssleay32.dll

Timeline

2021-10-25 - Vendor Disclosure
2022-01-16 - Vendor Patched
2022-01-18 - Public Release

CVSS2

7.2

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS3

8.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

EPSS

0.001

Percentile

17.8%

Related for TALOS-2021-1399