STACKFIELD DESKTOP APP: RCE VIA PATH TRAVERSAL AND ARBITRARY FILE WRITE (CVE-2026-28373)
The Stackfield desktop app's decryption of organizational data exports did not filter path traversal sequences in the filePath and fileGuid fields, allowing an attacker to write arbitrary files to any writable location. By crafting a malicious export, an attacker could place a script in the Windows Startup folder, leading to remote code execution when the victim imports the export.
rcesecurity.com
Published on rcesecurity.com
Stackfield is an end-to-end encrypted collaboration platform. The corresponding Electron-based desktop app for Windows and macOS contain a path traversal vulnerability in the decryption process of organizational data exports, that could be used to write arbitrary files to any (writable) path on the victim’s…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The app used attacker-controlled filePath and fileGuid values from the export's JSON without sanitising path traversal sequences, and then joined them with the export base directory, allowing writes outside the intended folder.
Impact
An attacker could write arbitrary files to any writable path on the victim's filesystem, potentially achieving remote code execution when the victim imports a malicious export.
What the attacker needed
Victim imports a malicious export; attacker has a low-privileged account; desktop app version before 1.10.2
The fix
The path traversal vulnerability was fixed in version 1.10.2 of the desktop applications.
How it was found
- Obtain the workspace password, room ID, and encrypted attachment field ID from an authenticated session.
- Craft an export directory containing export.json and a room JSON file with a malicious filePath and fileGuid pair that includes traversal sequences.
- Encrypt the cryptFields and chunk data using the workspace password and file key.
- Deliver the crafted export to the victim, who imports it using the Stackfield desktop app.
- The app writes the attacker-controlled file to the specified path, such as the Startup folder, leading to code execution on next login.
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 write-up has not been written yet. The Original tab links to the source.
The Stackfield desktop app lets you import an encrypted backup of your team's data. The app trusted the file paths inside that backup, so a malicious backup could write files anywhere on your computer, like your Startup folder, which runs programs automatically when you log in. This means opening a crafted backup could let an attacker run their own code on your machine.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.