sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
12.79k stars 1.43k forks source link

Firefox-based applications have issues with CoverBoxedWindows and UseCreateToken enabled [1.14.2] #4011

Open offhub opened 1 week ago

offhub commented 1 week ago

Describe what you noticed and did

  1. Install Sandboxie-Plus 1.14.2
  2. Run Firefox in the sandbox
  3. The screen remains white (The green box issue existed in previous versions too, since 1.13.3)

    [!Note] I was not able to reproduce the issue in the virtual machine.

[GreenBox]
CoverBoxedWindows=y
UseCreateToken=n
SandboxieAllGroup=n
[YellowBox]
CoverBoxedWindows=y
UseCreateToken=y
SandboxieAllGroup=y
Box Type/Settings CoverBoxedWindows SandboxieAllGroup/UseCreateToken RESULT
Yellow/Red/Blue Y N SUCCESS
Green/Cyan Y N FAIL
--- --- --- ---
Yellow/Red/Blue Y Y FAIL
Green/Cyan Y Y FAIL
--- --- --- ---
Yellow/Red/Blue N Y SUCCESS
Green/Cyan N Y SUCCESS

SUCCESS = It opens normally. FAIL = The screen opens as white, but when the context menu is opened by right-clicking, the menus are displayed normally and you can also copy by selecting.

https://github.com/sandboxie-plus/Sandboxie/assets/6871698/31eec8d4-6772-4623-aba9-c2fbdc4dde4d

How often did you encounter it so far?

Every time

Expected behavior

It should always open normally with these settings enabled.

Affected program

Firefox based apps (Firefox, Thunderbird, Tor, etc.)

Download link

Not relevant

Where is the program located?

The program is installed only outside the sandbox.

Did the program or any related process close unexpectedly?

No, not at all.

Crash dump

No response

What version of Sandboxie are you running now?

Sandboxie-Plus 1.14.2 64-bit

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression from previous versions?

It was working properly in version 1.14.1.

In which sandbox type you have this problem?

All sandbox types (I tried them all).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

What is your Windows edition and version?

Windows 10 Pro 22H2 64-bit (19045.4529)

In which Windows account you have this problem?

A local account (Administrator)., A Microsoft account (Administrator)., An account with UAC protection set to Always notify.

Please mention any installed security software

Microsoft Windows Defender

Did you previously enable some security policy settings outside Sandboxie?

No response

Trace log

No response

Sandboxie.ini configuration

[YellowBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#02f6f6,ttl,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10
UseFileDeleteV2=y
UseRegDeleteV2=y
CoverBoxedWindows=y
UseCreateToken=y
SandboxieAllGroup=y

[GreenBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00fd00,ttl
Template=RpcPortBindingsExt
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10
NoSecurityIsolation=y
UseFileDeleteV2=y
UseRegDeleteV2=y
AutoDelete=y
CoverBoxedWindows=y
UseCreateToken=n
SandboxieAllGroup=n
bastik-1001 commented 1 week ago

Just as reference point, on Window 7 (64bit) Firefox 15.12.0esr (64bit) does not show this behavior.

love-code-yeyixiao commented 1 week ago

In Sandboxie-Plus v1.14.2, Windows10 20H2 19042.572,in a standrad box with the follow configure,not in a virtual machine,it works nice,and there is no white screen.I downloaded the firefox from mozilla.org.

Rngexile commented 1 week ago

In a physical machine with : Sbie-plus 1.14.2 64-bit Windows 10 Home 64-bit 22H2 19045.4529 Firefox 127.0.1 A local account (Administrator), An account with UAC protection set to Always notify. Microsoft Windows Defender

I can't reproduce the white screen, everything runs as expected.

Tests in some sandbox colors with default firefox profile then another main profile (that ends by crash as expected in 1.14.2 on my pc) using your configs :

yellow : Y + Y = success ! orange : Y + Y = success ! green : Y + Y = success ! green : Y + N = success ! yellow : Y + N = success yellow : N + Y = success

offhub commented 1 week ago

When I turn off hardware acceleration in Firefox, it opens normally.