sandboxie-plus / Sandboxie

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

"Recycle bin for drive * is corrupted" #3665

Closed Arkadiumx closed 7 months ago

Arkadiumx commented 7 months ago

Describe what you noticed and did

I've only noticed this happening on my cyan box for stable diffusion. The only things installed to that box are SD Automatic1111, Git, and Python 3.10.10

Adding "NormalFilePath=[Drive]:\$Recycle.Bin" for both of my sandboxed drives works as a temp fix but I don't know what that does exactly and I'd like to fix the corrupted message if possible instead. Or atleast disable the message or recycle bin entirely.

The popup message is very disruptive since it always appears ontop and pops up alot when cicking on things in sandboxed explorer.

How often did you encounter it so far?

Every time I make a cyan box and install the mentioned programs.

Expected behavior

Recycle bin to work normally as it does in other boxes

Affected program

Sandboxie

Download link

Not Relevant

Where is the program located?

Not relevant to my request.

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.12.9

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression from previous versions?

No response

In which sandbox type you have this problem?

In an Application Compartment sandbox with data protection (cyan sandbox icon).

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

In which Windows account you have this problem?

A local account (Administrator).

Please mention any installed security software

Defender

Did you previously enable some security policy settings outside Sandboxie?

No response

Trace log

No response

Sandboxie.ini configuration

No response

DavidXanatos commented 7 months ago

this is not a good workaround as it allows sandboxed programs to read the content of the recycle bin which may contain personal data. I'm looking into a better fix right now.

DavidXanatos commented 7 months ago

With build 1.13.2, this was added to the PMod template:

https://github.com/sandboxie-plus/Sandboxie/blob/71adb2f8599855fde933cd2b7cd64427d714666a/Sandboxie/install/Templates.ini#L435-L437

This opens only access to the bin folder but not to any files stored within it outside the sandbox. For this to work, it required support for the new ** placeholder. With earlier builds, usage of the above directives will open access to deleted files outside of the sandbox.

Arkadiumx commented 7 months ago

Do I need to use 1.13.2 for this to work? How do I add it?

isaak654 commented 7 months ago

Do I need to use 1.13.2 for this to work? How do I add it?

You can check the fix with one of the following steps:

  1. Copy and paste the three lines above into the local Templates.ini file of your Sandboxie installation.
  2. Go to the Templates.ini source file link, download the file from the down arrow button and overwrite it in your local Sandboxie installation.
  3. Update Sandboxie Plus to version 1.13.2.
offhub commented 6 months ago

@DavidXanatos

I get this error when these settings are in the Templates.ini file. However, if these settings are in a different location (box, global or template), I do not get an error.

DavidXanatos commented 6 months ago

where in the Templates.ini ? the TemplatePModPaths is only included in privacy enchanced boxes

offhub commented 6 months ago

Under TemplatePModPaths. With privacy mode enabled.

https://github.com/sandboxie-plus/Sandboxie/assets/6871698/2012e1cb-970f-4e98-ac1b-55c42804b2de

DavidXanatos commented 6 months ago

indeed how odd... that it would be this way, i have found teh responsible code section and will fix it asap.