4.17 Beta Available (Latest Version 4.17.8)

Listing issues addressed in beta version 4.17
Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1638
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: 4.17 Beta Available (Latest Version 4.17.5)

Post by Curt@invincea » Thu May 14, 2015 4:30 pm

BUCKAROO wrote: Tests show that session in 4.17.5 seems to mean for only this process [pid] (not for others in the Sandbox). Therefor if an application creates a new slave process each time to print, then it will NEVER be able to print. I don't know how common that is, so I don't want to be critical about a work-in-progress. I think it's an improvement and removing the property sheet was a well-thought-out move.
It would be rather odd for an app to startup a child just to do the actual printing. That is why the print spooler was created in the first place. I'm not saying someone hasn't done it, but we haven't seen one.
BUCKAROO wrote: Glad to see it's catching and stopping printer driver install from 4.17.4 and hopefully onwards. I'm not going to dig any further... Except to say, bouncing spoolss completely and IPCing with an unsandboxed Sbie server would have been my choice - keeping it user-mode and with one more SYSTEM service closed off completely save for printing actions determined by user.

@Curt, can not Sbie block until user responds to prompt? StartDocPrinter is a blocking function anyway [Pity the UI if same thread - so I guess not advisable] - is not appropriate driver asynchronous and runs within the very thread it was entered from ? [Little to do with keeping Windows Messages pumping, I know] I have not much clue about these things (and not much desire to learn) so don't feel like you need to respond to this. What if the driver makes a copy of the print buffer whole somewhere, say, in a dummy process, effectively swallowing the calls ahead of user decision and then playing them back based on positive answer/setting ?
I first tried to block just StartDocPrinter -- actually the lower level RpcStartDocPrinter. During testing, I discovered 2 more RPC API's that will also allow you to print to file via the spooler. They are documented, but they are buried deep and it wasn't clear at all that they allowed print to file. So then I asked myself, "well who knows what other surprise API's lurk in the bowels of Windows?" That's the problem with sandboxing the spooler as well. We can't be sure that what we are letting through is not dangerous.

I decided to attack it from the other end and switched to having the Sbie minifilter driver block all print to file requests that come from a sandboxed app. That way, no matter what method a hacker can dig up, the print spooler is not allowed to write to the host. But the minifilter can't wait on a user to press ok.

BUCKAROO
Posts: 206
Joined: Sun Oct 24, 2010 3:13 am

Re: 4.17 Beta Available (Latest Version 4.17.5)

Post by BUCKAROO » Thu May 14, 2015 5:49 pm

Thanks for the replies, everybody! Curt's really on the ball. You're on the ball, Curt! 8)

I had sort of expected there'd be a gamut of ways to print but not necessarily to file.

Why'd I read this in the middle ofvthe night. Start the day right. Start the day right.

Buster
Posts: 2576
Joined: Mon Aug 06, 2007 2:38 pm
Contact:

Re: 4.17 Beta Available (Latest Version 4.17.5)

Post by Buster » Thu May 14, 2015 6:58 pm

BUCKAROO wrote:
BUCKAROO wrote:@Curt: Regarding Chrome setup SBIE error, fixing it shall solve a great many inexplicable error reports ...
It is not box_name but FileRootPath where occurs the sporadic problem.
box_name of course dictates FileRootPath where %SANDBOX% is specified.

e.g.
fail FileRootPath=C:\Sandbox\BUCKAROO\0
pass FileRootPath=C:\Sandbox\BUCKAROO\01
pass FileRootPath=C:\Sandbox\BUCKAROO\012
fail FileRootPath=C:\Sandbox\BUCKAROO\0123
fail FileRootPath=C:\Sandbox\BUCKAROO\01234
pass FileRootPath=C:\Sandbox\BUCKAROO\012345
pass FileRootPath=C:\Sandbox\BUCKAROO\0123456
Could you put a link to an application that could be used for testings, please? I would like to check and confirm the bug.

BUCKAROO
Posts: 206
Joined: Sun Oct 24, 2010 3:13 am

Re: 4.17 Beta Available (Latest Version 4.17.5)

Post by BUCKAROO » Thu May 14, 2015 7:31 pm

Buster wrote:Could you put a link to an application that could be used for testings, please? I would like to check and confirm the bug.
Well, Buster, this one... (others in the past!)
http://www.google.com/chrome/eula.html?standalone=1
The file/hash changes but the mystery persists.

Win 7 (x86/x64), no problem yet.

Win 8, same pattern, but no Sbie error message.
Sbie 3.74 and up!

Win 8.1, yeah, it will manifest different ways.

I've been unable to isolate it, it's maddening!

Try launch other way except ForceProcess=works.
ChromeStandaloneSetup.exe

Yet... (still in a sandboxed path obviously...)
Launching the Setup-extracted install=no error.

Code: Select all

REM iid= removed
C:\Users\BUCKAROO\AppData\Local\Temp\GUMA07B.tmp\GoogleUpdate.exe /installsource taggedmi /install "appguid={8A69D345-D564-463C-AFF1-A69D9E530F96}&lang=en&browser=2&usagestats=0&appname=Google%20Chrome&needsadmin=prefers&installdataindex=defaultbrowser"

Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1638
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Curt@invincea » Fri May 15, 2015 2:48 pm

Beta 4.17.6 is released. The only big change is that the spooler can now write temp files to its own work folder outside the sandbox. So this should eliminate the SBIE1319 when printing normally.

There is no way we can test all the various printer drivers and configurations from here, so I need your help in testing this as I want to finish it up and get it released into 4.18 asap. Also please test print to file and see if the behavior is acceptable. I did find a situation where the MS XPS printer driver got into a loop and kept repeating the SBIE1319 error. I am looking into that now.

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Mr.X » Fri May 15, 2015 2:55 pm

Very grateful for your efforts! :D
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Page42
Posts: 222
Joined: Fri Dec 10, 2010 11:18 pm
Location: Last Breath Farm

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Page42 » Fri May 15, 2015 6:05 pm

Some feed back on 4.17.5 & then 4.17.6.

As I posted to Bo Elam on Wilders, yesterday I installed .5 over top of .4 on two W7x64 machines.

On one machine, the "allow print spooler access for this session" improvement worked perfectly.

Not so on the other, as it was throwing up constant "SBIE1319 Blocked spooler print to file, process [1500]" messages. To the best of my knowledge, process [1500] is referencing svc.host (?). These messages were appearing even when I wasn't trying to print anything. I finally hid the process [1500] message. But printing from that machine was working as you had planned, on a per session basis when allowed by double-clicking. The constant process [1500] messages were the only problem.

As I noted, the other machine was printing (from Chrome and Foxit Reader) fine once I double-clicked the message line, and it was not showing the process [1500] message at all.

Today, after unhiding messages that I had hid the previous day, I installed .6 over top of .5 on the machine with all of the process [1500] messages, and something new took place...

When I tried printing from Chrome, I got the 1319 message that said click to allow, but the page printed without me allowing it (before I could double-click).

The print spooler access for the session feature was not working in 4.17.6. I rebooted to see if the same thing would happen, and it did.

The same condition exists. Printing from Chrome or from Foxit Reader results in a SBIE 1319 plus a SBIE 1320 message, but I don't have to double-click the message line in order to print... it prints anyway.

I have only installed .6 on the one machine (the one that now prints without me double-clicking the message line). Maybe it would be helpful if I installed .6 on the other machine as well, to see if the problem exists there too? Currently, it is running .5 and printing per session as allowed.

Thank you for your ongoing work with Sandboxie, Curt.
My security setup: Sandboxie, and some other stuff.

Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1638
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Curt@invincea » Fri May 15, 2015 6:49 pm

Page42 wrote: Today, after unhiding messages that I had hid the previous day, I installed .6 over top of .5 on the machine with all of the process [1500] messages, and something new took place...

When I tried printing from Chrome, I got the 1319 message that said click to allow, but the page printed without me allowing it (before I could double-click).

The print spooler access for the session feature was not working in 4.17.6. I rebooted to see if the same thing would happen, and it did.

The same condition exists. Printing from Chrome or from Foxit Reader results in a SBIE 1319 plus a SBIE 1320 message, but I don't have to double-click the message line in order to print... it prints anyway.

I have only installed .6 on the one machine (the one that now prints without me double-clicking the message line). Maybe it would be helpful if I installed .6 on the other machine as well, to see if the problem exists there too? Currently, it is running .5 and printing per session as allowed.

Thank you for your ongoing work with Sandboxie, Curt.
Yes, this is a problem with Win 7-64 (and I believe Win 8.1). I'm not sure all printers do this, but with our printer the spooler is trying to open a file with write access in the root called C:\tpwinprn-stat.txt. When not under Sbie, spoolsv.exe gets a file not found on this file and never does anything else with it -- the file is not actually created. So the spooler really doesn't care about this file, and the print goes through just fine (this must be an ancient artifact left in MS's code). But because it is asking for write access to the root, we block it with an SBIE1319. We don't know what it is planning to do, so we don't allow anything to get write access.

I will put in some kind of a check for this so we don't report the block in this case.

Thanks for the feedback!

RonR
Posts: 114
Joined: Sat Mar 14, 2009 11:39 pm

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by RonR » Fri May 15, 2015 10:34 pm

Curt@invincea wrote:Beta 4.17.6 is released. The only big change is that the spooler can now write temp files to its own work folder outside the sandbox. So this should eliminate the SBIE1319 when printing normally.

There is no way we can test all the various printer drivers and configurations from here, so I need your help in testing this as I want to finish it up and get it released into 4.18 asap. Also please test print to file and see if the behavior is acceptable.
Printing to priPrinter Professional now appears to work properly and as it did prior to your implementing the print spooler block. "AllowSpoolerPrintToFile=y" is no longer needed to successfully print.

rpljhun
Posts: 203
Joined: Sat Jan 12, 2013 9:29 am

Re: 4.17 Beta Available (Latest Version 4.17.5)

Post by rpljhun » Sat May 16, 2015 9:48 am

BUCKAROO wrote: It is not box_name but FileRootPath where occurs the sporadic problem.
box_name of course dictates FileRootPath where %SANDBOX% is specified.

e.g.
fail FileRootPath=C:\Sandbox\BUCKAROO\0
pass FileRootPath=C:\Sandbox\BUCKAROO\01
pass FileRootPath=C:\Sandbox\BUCKAROO\012
fail FileRootPath=C:\Sandbox\BUCKAROO\0123
fail FileRootPath=C:\Sandbox\BUCKAROO\01234
pass FileRootPath=C:\Sandbox\BUCKAROO\012345
pass FileRootPath=C:\Sandbox\BUCKAROO\0123456
I confirm this bug using this -> http://www.google.com/chrome/eula.html?standalone=1 installer and I can see the pattern in the FileRootPath.

Lets take the example of BUCKAROO, count the length of the path and compute (length modulo 4)

fail FileRootPath=C:\Sandbox\BUCKAROO\0 Length=21 (21 % 4) = 1
pass FileRootPath=C:\Sandbox\BUCKAROO\01 Length=22 (22 % 4) = 2
pass FileRootPath=C:\Sandbox\BUCKAROO\012 Length=23 (23 % 4) = 3
fail FileRootPath=C:\Sandbox\BUCKAROO\0123 Length=24 (24 % 4) = 0
fail FileRootPath=C:\Sandbox\BUCKAROO\01234 Length=25 (25 % 4) = 1
pass FileRootPath=C:\Sandbox\BUCKAROO\012345 Length=26 (26 % 4) = 2
pass FileRootPath=C:\Sandbox\BUCKAROO\0123456 Length=27 (27 % 4) = 3

As you can see the failing FileRootPath are those having a result of 0 or 1 though when Run As UAC Administrator is marked doesn't produce any problem in my end(Windows 8.1 x64)

Gator
Posts: 180
Joined: Thu Jan 19, 2012 5:20 pm

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Gator » Sat May 16, 2015 12:50 pm

SBIE 1308 cmd.exe wants to run, is it ok to allow?

Page42
Posts: 222
Joined: Fri Dec 10, 2010 11:18 pm
Location: Last Breath Farm

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Page42 » Sat May 16, 2015 2:33 pm

Question --- Can a Sandboxie user revert to a previous version, by installing that previous version over top of the more recent version?
Or, is the only way to go back to uninstall SBIE and install the version you want?
I simply want to go back to 4.17.5 from 4.17.6.
TY
My security setup: Sandboxie, and some other stuff.

Mr.X
Posts: 583
Joined: Sat Jul 13, 2013 9:34 am
Location: Mexico

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Mr.X » Sat May 16, 2015 2:50 pm

Page42 wrote:Question --- Can a Sandboxie user revert to a previous version, by installing that previous version over top of the more recent version?
Or, is the only way to go back to uninstall SBIE and install the version you want?
I simply want to go back to 4.17.5 from 4.17.6.
TY
Yes you can do it over top.
Windows 8.1 x64/x86 EN | Sandboxie latest beta or stable | All software latest versions unless stated otherwise

Page42
Posts: 222
Joined: Fri Dec 10, 2010 11:18 pm
Location: Last Breath Farm

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by Page42 » Sat May 16, 2015 3:36 pm

TY Mr.X and to Bo also on Wilders. Successfully downgraded to .5 for the time being.
My security setup: Sandboxie, and some other stuff.

BUCKAROO
Posts: 206
Joined: Sun Oct 24, 2010 3:13 am

Re: 4.17 Beta Available (Latest Version 4.17.6)

Post by BUCKAROO » Sun May 17, 2015 5:16 am

rpljhun wrote:… I can see the pattern in the FileRootPath.
I doctored the strings,
removing an underscore.
Pattern is presently...
fail,fail,pass,pass,etc
rpljhun wrote:… when Run As UAC Administrator is marked doesn't produce any problem in my end(Windows 8.1 x64)
Not always cohering to+
pattern isn't important
just that Process Exit=
C0000374 (-1073740940)
STATUS_HEAP_CORRUPTION
Not for us to debug it.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest