Skip to main content
Menu
Advisories

Cross-Sandbox Filesystem Access via Guest-Controlled Root Disk Journal

GHSA-3F94-VM6X-3JV3Published Updated GitHub

Description

Microsandbox 0.7.8 for Windows contains a cross-sandbox filesystem isolation vulnerability involving the runtime-owned root disk journal.

The runtime exposes a sandbox's runtime_dir to the guest as a writable /.msb filesystem. The host also stores the trusted root-disk.json journal in this directory. Because the journal's layer paths were not sufficiently validated during recovery, a guest workload could modify the journal and influence which writable root disk the host runtime attaches when a sandbox restarts.

A malicious workload could exploit this behavior to cause a sandbox to attach another sandbox's writable root disk, resulting in unauthorized access to its filesystem.

Impact

An attacker with code execution inside a sandbox could potentially read and modify another sandbox's filesystem, compromising application data, source code, configuration files, and credentials stored within the affected sandbox.

Exploitation requires knowledge of the target sandbox's name and that its disk is not in use when the modified sandbox attaches it.

This vulnerability affects the Windows runtime. It does not affect Linux or macOS runtimes.

Affected Versions

The affected release is microsandbox-runtime 0.7.8 on Windows. The vulnerability is in the runtime's recovery path for runtime-owned writable root disks; other Microsandbox package ecosystems are not affected by this advisory.

Patched Behavior

microsandbox-runtime 0.7.9 and later validate runtime-owned root-disk journal state before using it during recovery. Journal data cannot select a writable root disk outside the sandbox being restarted.

Workarounds

Before upgrading, do not run untrusted workloads in a Windows runtime using microsandbox-runtime 0.7.8. If an affected runtime may have processed untrusted workloads, upgrade before restarting those sandboxes and rotate credentials that may have been present in their filesystems.

Remediation

Upgrade to microsandbox-runtime 0.7.9 or later.

Technical References

PoC

A proof of concept was included in the original report by joaoviictorti but is not publicly available.

Affected versions

References

GitHub · superradcompany/microsandbox