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

Renaming a box with sandboxed run entries can break those entries. #2921

Closed
bastik-1001 opened this issue May 19, 2023 · 1 comment
Closed
Labels
fixed in next build Fixed in the next Sandboxie version Issue reproduced Issue reproduced without uncertainties User interface Related to Plus and/or Classic UIs

Comments

@bastik-1001
Copy link
Contributor

bastik-1001 commented May 19, 2023

Describe what you noticed and did

  1. Create a new box (like NewBox2) where the path contains %sandbox% (Users are separated as well)
  2. Add something to the sandbox, like placing example.exe at C:\example\ or something similar
  3. Add a run entry, via the options for that box or by selecting the running process and select "Pin to Run Menu", where adds RunCommand=example.exe|"C:\Sandbox\username\NewBox2\drive\C\example\example.exe" to its ini section.
  4. The entry in the run menu shows the icon and works just fine.
  5. Rename the box to something else, like "Example"
  6. (Obviously) the entry still points to the path with NewBox2 and therefore does not show the icon or function anymore

This might also be a problem when the box now named "Example" points to entries in NewBox2, and since the name NewBox2 is available, a newly created box can have that name, get filled with content that matches the run entry for Example and so Sandboxie executes example.exe from NewBox2, even though the user intended it to be from the Example box.

How often did you encounter it so far?

No response

Affected program

Sandman.exe

Download link

This repo.

Where is the program located?

The program is installed both inside and outside the sandbox.

Expected behavior

Trying to ensure that when a box is renamed, its run entries are not being broken.

I am not sure, if whenever it gets added via the box option or the right click menu, it can simply contain %sandbox% instead of the folder name.

What is your Windows edition and version?

Windows 7, should not matter

In which Windows account you have this problem?

A local account (Standard user)., Not relevant to my request.

Please mention any installed security software

Defender, but should not matter

What version of Sandboxie are you running?

1.9.3 64bit

Is it a new installation of Sandboxie?

I just updated Sandboxie from a previous version.

Is it a regression?

No response

In which sandbox type you have this problem?

Not relevant to my request.

Can you reproduce this problem on a new empty sandbox?

My sandbox contains existing programs or data.

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

@bastik-1001 bastik-1001 added the Confirmation pending Further confirmation is requested label May 19, 2023
@offhub offhub added Issue reproduced Issue reproduced without uncertainties User interface Related to Plus and/or Classic UIs and removed Confirmation pending Further confirmation is requested labels May 19, 2023
@DavidXanatos DavidXanatos added the fixed in next build Fixed in the next Sandboxie version label May 21, 2023
@DavidXanatos
Copy link
Member

Starting with 1.9.4 box root paths will be replaced by %BoxRoot%
please note that this fix will not be retroactively applied to already created RunCommand entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next build Fixed in the next Sandboxie version Issue reproduced Issue reproduced without uncertainties User interface Related to Plus and/or Classic UIs
Projects
None yet
Development

No branches or pull requests

3 participants