Skip to content
Access control Write-up Advanced

VirtualBox Process Hardening on Windows 2026 Edition: What’s a Single Bit Between Friends?

The .NET Framework's assembly loader could be tricked into mapping a file as a flat data image instead of an executable image section, bypassing VirtualBox's DLL loader hooks and Windows code integrity checks. An attacker could load an untrusted .NET assembly into a protected VirtualBox process or a PPL process and execute arbitrary code.

James Forshaw Follow

Published on projectzero.google

Back in 2017 I did some research into Oracle VirtualBox on Windows. Specifically I focussed on their mechanism to protect their VM processes from the user on the host.

James Forshaw, on projectzero.google

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

Impact

An attacker could load arbitrary code into a protected VirtualBox process or a PPL process without administrator privileges; the WLDP check blocked the WDAC variant only when Dynamic Code Security was enabled, and the PPL bypass remained possible after the fix.

What the attacker needed

Ability to write to current user COM registry; a .NET assembly compiled as AnyCPU; VirtualBox installed on Windows; for WDAC variant, a .NET utility like RegAsm

How it was found

  1. Compile a .NET assembly as AnyCPU so it is a 32-bit PE file with executable sections.
  2. Register a COM class in the current user hive that a hardened VirtualBox process will load.
  3. Start a VM so VirtualBox loads the COM object, which loads the .NET runtime and then the untrusted assembly.
  4. For the WDAC variant, clear the IMAGE_FILE_EXECUTABLE_IMAGE flag in the COFF header of a .NET assembly.
  5. Run a built-in .NET utility such as RegAsm with the /unregister option on the modified assembly to load and execute it.

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.

Windows normally checks that any code loaded into a protected process is signed and trusted. This research found that the .NET runtime could be made to load a file in a way that skipped those checks, so an attacker could run their own code inside a protected process. The trick relied on a small change to a .NET file and a quirk in how VirtualBox and Windows verify loaded files.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by James Forshaw

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.