Arbitrary File Write via Path Traversal in ZKTeco BioTime /base/sftpsetting/
CVE-2023-38951 is an authenticated arbitrary file creation and overwrite vulnerability in ZKTeco BioTime 8.5.5 through 9.x before 9.0.1 (build 20240617.19506). The flaw is exposed through the /base/sftpsetting/ endpoints, where attacker-controlled input in the Username field is subject to path traversal and the SSH Key field is not properly sanitized. By submitting crafted requests, an authenticated attacker can traverse directories and write attacker-controlled content to arbitrary server-side files. Because the vulnerable functionality permits overwriting existing files as well as creating new ones, an attacker may be able to replace security-relevant or executable files. In documented exploitation scenarios, overwriting specific files can result in arbitrary code execution under the NT AUTHORITY\SYSTEM security context.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an authenticated attacker to create or overwrite arbitrary files on the BioTime server. This can directly compromise application integrity and may enable full host compromise if the attacker overwrites files that are executed by the application or operating system. Where suitable target files are reachable, the vulnerability can be escalated to arbitrary code execution with NT AUTHORITY\SYSTEM privileges, giving the attacker high-privilege execution on the underlying Windows server.
If you can’t patch tonight, do this now.
Until patching is completed, restrict access to BioTime administrative and SFTP-related endpoints to only trusted administrators and management networks, and eliminate unnecessary external exposure. Minimize the number of accounts able to access the affected functionality, enforce strong authentication, and monitor for anomalous requests to /base/sftpsetting/ endpoints and unexpected file modifications on the server. File integrity monitoring and application allowlisting can reduce the likelihood that arbitrary file overwrite is converted into code execution.
Patch, then assume compromise.
Upgrade ZKTeco BioTime to version 9.0.1 build 20240617.19506 or later, as versions 8.5.5 through 9.x prior to that release are affected. Validate that all BioTime instances, including internet-exposed and internally accessible deployments, are updated. After patching, review the server for unauthorized file creation or modification associated with the /base/sftpsetting/ functionality and investigate for possible post-exploitation activity if the system was exposed to untrusted authenticated users.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.