Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.75 KB

K-ZkTeco-2023-002.md

File metadata and controls

32 lines (26 loc) · 1.75 KB

Kaspersky Advisory

(K-ZkTeco-2023-002) Multiple command injection in ZkTeco-based OEM devices


Affected Hardware/Software

ZkTeco-based OEM devices (ZkTeco ProFace X, Smartec ST-FR043, Smartec ST-FR041ME and possibly others) with the ZAM170-NF-1.8.25-7354-Ver1.0.0 and possibly others

Severity level

Impact: Since all the found command implementations are executed from the superuser, their impact is the maximum possible

Access Vector: Remote

CVSS v3 Vector

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

CVSS v3 Score

10.0

CVE ID

CVE-2023-3939

Vulnerability description

Multiple command injection vulnerabilities exist in two components of a system: an executable handling TCP connections and a shared library processing cloud server messages. Both components allow execution of arbitrary OS commands with root privileges due to insecure handling of user input. Specific vulnerabilities include:

  1. Handler for User Photo Delete and Handler for Picture Delete Commands: User-supplied file names are not properly sanitized before being used in system commands, allowing execution of arbitrary commands.
  2. Cloud Service Command Handlers (PushCommandExecute): Several functions mishandle user input from the cloud, allowing execution of arbitrary commands via specially crafted server responses.

All vulnerabilities exploit improper input validation and the use of the system function, posing severe security risks.

Remediation

Apply patch from vendor when it will be available for your device.

Acknowledgements

Vulnerability was discovered by Georgy Kiguradze from Kaspersky.

Reference

https://github.com/klsecservices/Publications/blob/master/QR_code_SQL_injection_and_other_vulnerabilities_in_a_popular_biometric_terminal_EN.pdf