Hardened Sandbox with Data Protection - App can't run the default browser to open an URL

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by Mr.X, Nov 6, 2022.

  1. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,544
    Location:
    Viena
    hmm... now that i think about it it amkes sense in old windows builds most file associations were set globally for all users, but since many many years mroe and moe stuf is configured in the users registry so more often then not the file/url associations will need access to some part of the users registry.
    I'll look into adding this then
     
  2. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,378
    Location:
    .
    On a portable app, portable CCleaner for instance, when I click on the Help button it launches my portable Firefox in its red box with the following msg:
    Code:
    FirefoxPortable.exe (3604): SBIE2321 Cannot manage device map:  [C0000034 / 11]
    Browser launches normally and opens the requested page, no issues at all, it's just that error msg.
     
  3. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,378
    Location:
    .
    Disable Force Rules / Sandboxie-Plus 1.9.2

    Portable Firefox ESR (red box)

    When clicking on
    Sandbox > Sandbox Presets > Disable Force Rules

    then run Firefox ESR

    Splash screen shows up one second then disappears with the following sbie error
    Code:
    firefox.exe (13264): SBIE1231 Initialization failed for process  [C0000001 / A4]
    PID 2964: SBIE2314 Cancelling process firefox.exe
    

    Using global 'Pause Forcing Programs' works as expected and as usual.
     
  4. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,544
    Location:
    Viena
    > then run Firefox ESR

    please elaborate run how? using a start.exe link, using run in the sandboxed UI, using run sandboxed in explorer?
     
  5. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,378
    Location:
    .
    • Download Firefox ESR Portable
    • Unzip into a folder in a different partition other than C: (system partition)
    • ForceProcess=FirefoxPortable.exe
    • ForceProcess=firefox.exe
    • Sandbox container is in a RAMdisk
    • Double click on FirefoxPortable.exe
     
  6. Brummelchen

    Brummelchen Registered Member

    Joined:
    Jan 3, 2009
    Posts:
    6,316
    problem is not Firefox, its the starter. the starter is a complex code built on nsis, in fact too long and complicated. user can check it with a test:
    \portable folder\firefox.exe -profile <folder_to_profile>

    if it happens again, its sandboxie, if not, its the starter.
    (which is crap from my point of knowledge)
     
  7. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,378
    Location:
    .
    @DavidXanatos you know what? Ditch what I wrote above. I found the cause.

    I completely forgot my other Tor Browser sandbox in existence :D

    Firefox ESR ini
    Code:
    ForceProcess=FirefoxPortable.exe
    ForceProcess=firefox.exe
    
    Tor Browser ini
    Code:
    ForceProcess=firefox.exe
    
    When both boxes are enabled all works just fine. Oh god, worked fine I've just found out. Dunno what happened. :mad:


    Disable Force Rules=y for Firefox ESR box throws the error described above. Disabling Tor Browser box fix it.
    Obviously there's a conflict caused

    OK, I'm gonna try to fix this mess both boxes conflicting each other.
     
    Last edited: Apr 27, 2023
  8. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,544
    Location:
    Viena

    could you define a list of rules that have the same effect but avoid wildcards from the begining only at the back is fine
     
  9. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    509
    Code:
    HKEY_CURRENT_USER\SOFTWARE\Classes
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ApplicationAssociationToasts
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\FileAssociations
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations
    
     
  10. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,378
    Location:
    .
    Do those lines cover the functions of the following ones?
    TIA @busy
     
  11. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    509
    No. Those three keys have already been added to the Templates.ini file.
     
  12. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    587
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.