A normal/open/read-only path inside a write-only path can cause incorrect directory listings #2403
Labels
Issue: Reproduced
Issue reproduced without uncertainties
Status: Fixed in Next Build
Fixed in the next Sandboxie version
Describe what you noticed and did
Also mentioned in #2379.
A write-only path hides the sub-items in its directory listing, so sandboxed programs will think that the folder is empty. If UseRuleSpecificity is on, and there's a normal/open/read-only path inside the write-only path, Sandboxie will add a directory listing item so the path can be visible.
For example,
will make all sub-items in
D:\Test
invisible, exceptD:\Test\TestA
.However, it seems that Sandboxie just makes up the directory listing items for the normal/open/read-only paths according to the paths written in the rules. The path is not checked.
In the example above, sandboxed programs will see that there is a folder called
TestA
insideD:\Test
, even whenD:\Test\TestA
does not exist, orD:\Test\TestA
does exist but is a file not a directory.Also, the made-up sub-items don't have correct attribute data. Its creation time is "empty" in Explorer, even when
D:\Test\TestA
does exist.If we write a longer path, such as
NormalFilePath=D:\Test\A\B\C
, Sandboxie will make up all intermediate directories, even whenD:\Test\A
does not exist. In this case, sandboxed programs can navigate through the non-existentD:\Test\A
andD:\Test\A\B
, but when they try to accessD:\Test\A\B\C
they will be told thatD:\Test\A\B\C
does not exist.If the path contains wildcards: (assuming only
D:\Test
,D:\Test\TestA
andD:\Test\TestA\TestB
exist)NormalFilePath=D:\Test\Test*
. Sandboxed programs will see only one folderTest
insideD:\Test
. AsD:\Test\Test
does not exist, Explorer will be unable to open it.D:\Test\TestA
is not visible, but you can type it in the address bar to open it, so it's still accessible.NormalFilePath=D:\Test\T*t*
. Sandboxed programs will see only one folderT
insideD:\Test
.NormalFilePath=D:\Test\Test*\Test*
. Sandboxed programs will see only one folderTest*
insideD:\Test
. AsD:\Test\Test*
is not a vaild path, Explorer will be unable to open it.D:\Test\TestA
is not visible, and you cannot type it in the address bar to open it, but you can accessD:\Test\TestA\TestB
this way.The access rules work as usual, only the directory listings are incorrect.
Registry paths have the same issue.
How often did you encounter it so far?
No response
Affected program
Not relevant
Download link
Not relevant
Where is the program located?
Not relevant to my request.
Expected behavior
For normal/open/read-only paths inside write-only paths:
What is your Windows edition and version?
Windows 10 Home 22H2 64-bit
In which Windows account you have this problem?
A local or Microsoft account without special changes.
Please mention any installed security software
Windows Defender, Huorong
What version of Sandboxie are you running?
Sandboxie Plus v1.5.1 64-bit
Is it a new installation of Sandboxie?
I just updated Sandboxie from a previous version (to be specified).
Is it a regression?
No response
In which sandbox type you have this problem?
In a standard isolation sandbox (yellow sandbox icon).
Can you reproduce this problem on an empty sandbox?
I can confirm it also on an 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
The text was updated successfully, but these errors were encountered: