How to ensure sandboxed Firefox uses its own cookies file?

If it doesn't fit elsewhere, it goes here
Post Reply
Brett

How to ensure sandboxed Firefox uses its own cookies file?

Post by Brett » Fri Jan 31, 2014 1:43 pm

Does current Firefox use same cookies file while sandboxed and when not sandboxed (shared cookies) ??

I would like to ensure that the sandboxed FF browser does not share any data/cookies/history with the unsandboxed FF browser.

How can I guarantee that?

Thanks.

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Post by Guest10 » Fri Jan 31, 2014 7:31 pm

Brett wrote:Does current Firefox use same cookies file while sandboxed and when not sandboxed (shared cookies)
Yes.
The best way to insure that 2 instances of Firefox do not share anything, is to create a second Firefox profile.
They won't share any the same profile files.
They will have separate cookies, bookmarks, extensions, etc.
They can be run simultaneously without interfering with each other.
Both profiles must be maintained though, by updating their extensions separately.
Each of them needs to be run unsandboxed one time, whenever the Firefox program is updated - like the next program update scheduled for next Tuesday (Fx 27).

If firefox.exe is in a "ProgramFiles" folder (as opposed to "ProgramFiles(x86)" )
"C:\Program Files\Mozilla Firefox\firefox.exe" -profilemanager
Starts the profile manager, and you can then Create a new profile.
You could create the new profile on a TrueCrypt volume that's mounted as a drive letter, so all of the profile files are encrypted when the TrueCrypt volume is not mounted.
Profile Manager has the unfortunate tendency to set the new profile as the default profile that Firefox uses when it starts, so after the new profile is created you may want to run the Profile Manager again, select the "default" profile, and then Start Firefox - to set the "default" profile back as the one that Firefox uses if the profile name is not provided on the command line.

To use the new profile without going through Profile Manager each time, create new shortcuts that list the name of the new profile in the Properties > Target box of 2 new shortcuts, as follows.
--
Running Firefox with the new profile, unsandboxed, using a profile named NewProfile.
Substitute the name you give your new profile in place of NewProfile in the command line:
In the shortcut's Properties > Target box:
"C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "NewProfile"
(The profile name must be listed inside of quotes)
The above is used for purposes of adding/updating the extensions in the profile.
--

To start Firefox sandboxed (using DefaultBox and the Newprofile profile):
"C:\Program Files\Sandboxie\Start.exe" /box:DefaultBox "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "NewProfile"
----
As an alternative you could install a version of Portable Firefox, but the location of it's profile folder would need to be specified in your Sandbox Settings, if you want to use the Sandboxie "Firefox" templates that are provided.
Install the Portable program and create a sandbox, if it doesn't exist.
Then select at least one of the Firefox templates for that sandbox at:
Sandbox Settings > Applications > Web Browser > Firefox
and click OK.
Then:
Sandbox Settings > Applications > Folders
and navigate to and select the profile folder for Portable Firefox.
OK
----
Firefox could be installed inside of a sandbox, but the Firefox install that's outside of the sandbox should be hidden while installing it inside the sandbox. Otherwise, the sandbox install will see the extensions, bookmarks , etc that are in the unsandboxed install.
Installing inside the sandbox means that you can't use Delete Contents to get rid of junk/malware etc without also deleting the Firefox program in the sandbox.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

Mikey9991
Posts: 1
Joined: Mon Mar 10, 2014 5:52 pm

Re: How to ensure sandboxed Firefox uses its own cookies fil

Post by Mikey9991 » Mon Mar 10, 2014 5:56 pm

Sorry for the newbie question but where do I put this or type it in?
"C:\Program Files\Sandboxie\Start.exe" /box:DefaultBox "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "NewProfile"

Thanks,
Mike

bo.elam
Sandboxie Guru
Sandboxie Guru
Posts: 2809
Joined: Wed Apr 22, 2009 9:17 pm

Re: How to ensure sandboxed Firefox uses its own cookies fil

Post by bo.elam » Mon Mar 10, 2014 11:55 pm

Mikey9991 wrote:where do I put this or type it in?
Right click Desktop>New>Shortcut, Copy the path written by Guest10:

"C:\Program Files\Sandboxie\Start.exe" /box:DefaultBox "C:\Program Files\Mozilla Firefox\firefox.exe" -no-remote -P "NewProfile"

and paste it, Click Next, Finish.

Bo

Guest10
Posts: 5124
Joined: Sun Apr 27, 2008 5:24 pm
Location: Ohio, USA

Re: How to ensure sandboxed Firefox uses its own cookies fil

Post by Guest10 » Tue Mar 11, 2014 7:04 am

I hope you didn't miss the part where the new Firefox profile needs to have been created first, and that the name you give to the new profile is what gets typed into the line in place of "NewProfile", unless of course you did call the new profile "NewProfile".
The profile name must be inside of quotes ("") on the line, as shown.

And you don't have to use DefaultBox. You could create a new sandbox first, and use it for sandboxed Firefox by putting its name in the "/box:....." parameter in the line:
/box:Firefox
if you created a new sandbox called Firefox.
Paul
Win 10 Home 64-bit (w/admin rights) - Zone Alarm Pro Firewall, MalwareBytes Premium A/V, Cyberfox, Thunderbird
Sandboxie user since March 2007

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest