Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a program is run on RAM and Encrypted boxes when the sandbox root folder is not present, the programs will not run #3349

Closed
1 of 2 tasks
offhub opened this issue Sep 30, 2023 · 5 comments
Labels
Partially fixed Issues with partial fixes

Comments

@offhub
Copy link
Collaborator

offhub commented Sep 30, 2023

Describe what you noticed and did

If a program is run on RAM and Encrypted boxes when the sandbox root is not present, the programs will not run.

  • Ram Box:
  1. Create a Ram Box
  2. Rename BoxRootFolder or set FileRootPath to different folder (e.g. C:\Sandbox to C:\Sandbox_)
  3. Run a program in the sandbox
SBIE2230 Failed to mount root for New_Box [xx / yy]
SBIE2335 Initialization failed for process Start.exe [xx / yy]

Result: Sandboxie creates an empty file with the box name instead of the junction folder. (e.g. C:\Sandbox\user\New_Box)

  • Encrypted Box:
  1. Create an Encrypted Box
  2. Rename BoxRootFolder or set FileRootPath to different folder (e.g. C:\Sandbox to C:\Sandbox_)
  3. Run a program in the sandbox
SBIE2241 Box image file C:\Sandbox\user\New_Box.box could not be opened   

Result: Sandboxie does not create any folders.

How often did you encounter it so far?

Every time

Affected program

Not relevant

Download link

Not relevant

Where is the program located?

Not relevant to my request.

Expected behavior

If the box root folder does not exist when the program is run on boxes with these settings enabled, folder linking must be performed after these folders are created.

What is your Windows edition and version?

Windows 10 Pro 22H2 64-bit (19045.3448)

In which Windows account you have this problem?

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

Please mention any installed security software

Microsoft Windows Defender

What version of Sandboxie are you running?

Sandboxie-Plus 1.11.3 64-bit

Is it a new installation of Sandboxie?

I have been using the same version for some time.

Is it a regression?

No response

In which sandbox type you have this problem?

In an encrypted sandbox (black sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No response

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

No response

@offhub offhub added the Confirmation pending Further confirmation is requested label Sep 30, 2023
@DavidXanatos DavidXanatos added Can't reproduce The issue cannot be reproduced internally and removed Confirmation pending Further confirmation is requested labels Oct 1, 2023
@DavidXanatos
Copy link
Member

I ant reproduce this one, also the Encrypted Box deletes the folder when it unmounts to not sure how you renamed it? mounting manually renaming and then trying to run something?

@offhub
Copy link
Collaborator Author

offhub commented Oct 1, 2023

Let's assume that the C:\Sandbox folder is set as the root, and that this folder has not yet been created. In this situation, when we try to run the Ram/Encrypted boxes that we have previously configured, we get the above errors.

@DavidXanatos DavidXanatos removed the Can't reproduce The issue cannot be reproduced internally label Oct 1, 2023
@DavidXanatos
Copy link
Member

aaa i see you mean the folder which contains the sandbox root folder,ok wil check this out asap

@DavidXanatos DavidXanatos added the fixed in next build Fixed in the next Sandboxie version label Oct 2, 2023
@DavidXanatos
Copy link
Member

Rambox fixed,
encrypted box, well that works as expected, when you move the box image out of the way if can not mount it, and we don't have a way to find it.

@offhub
Copy link
Collaborator Author

offhub commented Oct 2, 2023

Encrypted Box:

  1. If there is no matching .box file when we want to mount the box image, a password window opens to create a new .box file.
    • After this stage, a new .box file cannot be created because the root folder does not exist.
    • If the root folder does not exist, it should be created first.
  2. However, the window to mount the box image opens as if the .box file had been created successfully, and when the password is entered it gives the error: SBIE2241 Box image file C:\Sandbox\user\New_Box.box could not be opened

@isaak654 isaak654 added Partially fixed Issues with partial fixes and removed fixed in next build Fixed in the next Sandboxie version labels Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Partially fixed Issues with partial fixes
Projects
None yet
Development

No branches or pull requests

4 participants
@DavidXanatos @offhub @isaak654 and others