Trust No Program
This topic is locked: you cannot edit posts or make replies.
Firefox Temporary Hang
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I've noticed in FF that when navigating a Save File dialog (initiated by a download) if I try to use the breadcrumb feature it takes a long time for the dropdown folder list to appear (click the arrows on the breadcrumbs to get the menu). Similarly, if I try to rename a file or folder in the same save dialog FF hangs for a good 30 seconds, but the rename operation eventually succeeds. It doesn't matter if the file/folder is in an OpenFilePath or not.

Win7 RTM Pro 32-bit
SB 3.39.23
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
I'm not seeing this behavior. Did you try to enable the Resource Access Monitor just before renaming, to see if it is trying to reach any resources outside the sandbox during those 30 seconds?

_________________
tzuk
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I invoked the Resource Access Monitor with the Save Dialog already open, then tried to rename a file. Immediately upon opening the RAM I get a ton of

SBIE1242 Monitor buffer overflow

errors. After ~30 seconds and the file is renamed, here is the RAM output:
Code:
(Unk)      00000002 \Device\CdRom0\
Clsid     -------------------------------
Clsid     {3EEF301F-B596-4C0B-BD92-013BEAFCE793} Destkop Undo Manager
Ipc       -------------------------------
Ipc    O  \RPC Control\SbieSvcPort
Ipc    X  \KnownDlls\kernel32.dll
Pipe      -------------------------------
Pipe   O  \Device\NamedPipe\TSVNCache-000000000004860e
WinCls    -------------------------------
WinCls X  Progman


The TSVNCache Pipe is a resource of Tortoise SVN. I opened it up to see if it would make a difference, it had no effect. If I open the RAM before I click the download, I start getting the SBIE1242 errors immediately after opening the Save dialog.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I get basically identical RAM output, including SBIE1242 errors, with the sluggish breadcrumb menu as well.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Here's a IpcTrace=ad / Dbgview output for the file rename, started capturing after the save dialog is open, but before I initiated the rename.

snipped. --tzuk
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
Please try version 3.39.25.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
The hang is still there. Here's another RAM ouput, this time I started capturing before I pressed 'Save File' in the Firefox download dialog, then renamed a file, then saved the RAM output. I have an OpenPipePath=\Device\NamedPipe\TSVNCache* exclusion for TortoiseSVN. If I remove this exclusion, I get the 'SBIE1242 Monitor buffer overflow' errors again.

snipped. --tzuk
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
I see you're still getting X's on KnownDlls. I have no idea why you would still get that, unless your indicates to override system DLLs. Can you check if the registry in your sandbox contains this key:

HKLM\SYSTEM\CurrentControlSet\Control\SbieHideKnownDlls

?
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
From a sandboxed regedit, this key does not exist.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I tried adding that key and here's the RAM output, seems the same to me:

snipped. --tzuk

Also, after adding that key, I got an error message:

SBIE2205 Service not implemented: NtRenameKey

Results are the same with the hang still there.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Well, here's something. If I add these two resources:
Code:
OpenClsid={3EEF301F-B596-4C0B-BD92-013BEAFCE793}
OpenClsid={B77C4C36-0154-4C52-AB49-FAA03837E47F}


Then renaming only takes ~7 seconds or so. This is the same amount of time to rename a file in an unsandboxed Firefox. Here's the RAM output:

snipped. --tzuk

If I add the other 2 CLSID strings, then RAM shows an X next to them, so I didn't include them. The rename time was the same with/without them anyway. Any idea if those resources pose a security risk?
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Turns out the only resource I need to open is the 'Desktop Undo Manager'
Code:
OpenClsid={3EEF301F-B596-4C0B-BD92-013BEAFCE793}
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
Good to see you've been able to improve the situation. I guess there might still be some Windows 7-related quirks that would have to resolved over time.

Also, I hope you won't see any SBIE2327 messages now as a result of the OpenClsid.

I'm going to move this topic to the Open Issues forum, to revisit the issues you've raised at some later point.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
I'll let you know if I get any related error messages, but so far I haven't.

For reference, what does it mean when the CLSID's are shown with neither an X nor an O? Well, I guess what does that mean for any resource? And why would an OpenClsid setting to a COM object that previously showed up in a RAM log result without an X nor an O, then result in an X?
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
For CLSIDs, no indication means the OpenClsid mechanism was not involved, and the log doesn't say if the creation of the object was successful or if it failed.

Any other indication means the class was specified in an OpenClsid setting, and COM object creation becomes a more complicated process that involves the Sandboxie service. O means object creation was successful. X means it failed. There is no security risk.

You can additionally turn on ClsidTrace=ad to trace (in DebugView) requests on any "open" COM objects.
View user's profileSend private message
Firefox Temporary Hang
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,131,814 times since June 2004