Edge Settings Blocked in Sandbox (even when checked)

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by johnny_castle, Mar 24, 2023.

  1. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    So I was trouble shooting this recent issue with Edge not being able to sync profile data in Sandboxie, when I discovered this might be a wider spread issue.

    I noticed recently when I save favorites or password info inside the sandbox, it's not making it through either (even though I have all these boxes allowed). This has worked just fine over the last few months, so a recent update to either Edge or Sandboxie must have stopped this from working.

    I even tried going in and checking every single "allow" check box for Edge in Sandboxies settings menu (just to test) and restarted. But nothing from Edge is being allowed to save permanently.

    I'm running Edge 111.0.1661.51 and Sandboxie 1.7.2
     
  2. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    UPDATE:

    I can confirm that as long as the sandbox is closed but not deleted, these favorites and passwords persist (that were saved during that session). But when I invoke the delete box function, they disappear. Proving they are still being created inside the sandbox, instead of having direct access (like I have them checked in the settings menu). The older versions around 1.5.3 worked just fine in this regard.

    Can I get some feedback on this?
     
  3. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    If you share your config maybe we can help.
     
  4. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    Code:
    #
    # Sandboxie configuration file
    #
    
    [GlobalSettings]
    DefaultBox=DefaultBox
    FileRootPath=\??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
    KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
    IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
    Template=WindowsRasMan
    Template=WindowsLive
    Template=OfficeLicensing
    Template=OfficeClickToRun
    Template=ObjectDock
    Template=Edge_Fix
    Template=BitDefenderInternetSecurity
    
    [UserSettings_2DEE040E]
    SbieCtrl_AutoStartAgent=SandMan.exe
    SbieCtrl_EnableAutoStart=y
    
    [DefaultBox]
    Enabled=y
    BlockNetworkFiles=y
    BorderColor=#00ffff,off,6
    Template=Edge_Phishing_DirectAccess
    Template=Edge_Passwords_DirectAccess
    Template=Edge_Bookmarks_DirectAccess
    Template=Edge_Force
    Template=Chrome_Phishing_DirectAccess
    Template=Chrome_Force
    Template=Firefox_Phishing_DirectAccess
    Template=Firefox_Force
    Template=OpenBluetooth
    Template=SkipHook
    Template=FileCopy
    Template=qWave
    Template=BlockPorts
    Template=LingerPrograms
    Template=AutoRecoverIgnore
    ConfigLevel=9
    BoxNameTitle=-
    ShowForRunIn=n
    CopyLimitKb=1053000
    RecoverFolder=C:\Users\johnnyc\Desktop
    RecoverFolder=C:\Users\johnnyc\Downloads
    AutoRecover=y
    DropAdminRights=y
    FakeAdminRights=y
    ForceFolder=C:\Users\johnnyc\Downloads
    LingerProcess=chrome.exe
    LingerProcess=firefox.exe
    LingerProcess=msedge.exe
    ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
    AutoDelete=y
    
    ^from my "DefaultBox" Sandbox Options menu:
     
  5. Freki123

    Freki123 Registered Member

    Joined:
    Jan 20, 2015
    Posts:
    337
    Only tested it with bookmarks. For me it works. Edge 111.0.1661.62 (Official build) (64-bit) with Sandboxie 1.72
    Enabled=y
    BlockNetworkFiles=y
    RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
    RecoverFolder=%Personal%
    RecoverFolder=%Desktop%
    BorderColor=#02f6f6,ttl,6
    Template=Edge_Phishing_DirectAccess
    Template=Edge_Force
    Template=Edge_Bookmarks_DirectAccess
    Template=Edge_History_DirectAccess
    Template=OpenBluetooth
    Template=SkipHook
    Template=FileCopy
    Template=qWave
    Template=BlockPorts
    Template=LingerPrograms
    Template=AutoRecoverIgnore
    ConfigLevel=9
    UseFileDeleteV2=y
    UseRegDeleteV2=y
    AutoRecover=y
    BoxNameTitle=n
    CopyLimitKb=81920
    AutoDelete=y
    When I open Edge after the auto delete of the sandbox the bookmarks are still there. No clue what makes the difference sorry.
    Have you tried to create a fresh new default sandbox (for testing reasons)?
     
  6. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    @johnny_castle Are you using a custom profile? You can refer to the "Profile path:" section on the "edge://version/" page. If it doesn't show as "Default", you need to create additional rules.

    If you are not using the default profile, you can change the path defined in the template to the profile path you created yourself, or you can manually add rules according to the settings below.

    Right/Double click on the box > Sandbox Options > App Templates > Template Folders:

    Tmpl.Edge:
    Code:
    %LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere
    
    Edge_Bookmarks_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Bookmarks*
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Favicons*
    
    Edge_History_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Bookmarks*
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Favicons*
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\*History*
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Current *
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Last *
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Visited Links*
    
    Edge_Cookies_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Cookies*
    
    Edge_Passwords_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Login Data*
    
    Edge_Preferences_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Preferences*
    
    Edge_Sync_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Sync Data\*
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\Sync Extension Settings\*
    
    Edge_Profile_DirectAccess:
    Code:
    OpenFilePath=msedge.exe,%LocalAppData%\Microsoft\Edge\User Data\CustomProfileNameHere\*
    
     
    Last edited: Mar 31, 2023
  7. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    This looks like it was the issue. So thanks for helping narrow it down! I checked the directory, and due to several instances where I had to remove/re-added profiles, it looks like my current profile path in the Edge path is pointing to a folder named "Profile 7." I'm wondering, is there a way to edit the edge://version so I can edit the profile name I choose? When I make a final one, it will have a custom name (and I could also rename the folder in the appdata folder.

    Is that possible? If not, I'll do the change on the Sandboxie config side.
     
  8. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,172
    Location:
    UK
  9. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    Thanks for the response. That's not exactly what I mean. What I mean is, when I pull up the edge://version menu, this is what it points to in Edge:

    Profile path C:\Users\MYUSERNAME\AppData\Local\Microsoft\Edge\User Data\Profile 1


    Can I edit this? So Edge will point to whatever folder I have my folder renamed? So something like...

    Profile path C:\Users\MYUSERNAME\AppData\Local\Microsoft\Edge\User Data\JohnnyC
     
  10. stapp

    stapp Global Moderator

    Joined:
    Jan 12, 2006
    Posts:
    27,172
    Location:
    UK
    I guess you can give it a try :)

    I don't have any profile names etc in Edge.
     
  11. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    Lol, my bad. I may not being clear enough. The edge://version is ready only. It's just a info screen. My question is, if I can edit this, where?
     
  12. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,258
    Location:
    .
    No you can't. Chromium browsers afaik only handle names such as Default, Profile 1, Profile 2 and so on.
    When you install a browser for the first time, first user folder is named as "Default". Subsequent are name as Profile 1, Profile 2 and so on.
     
  13. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    Backup first!
    Make sure Edge is closed.

    Open the file: %LocalAppData%\Microsoft\Edge\User Data\Local State
    Replace (Ctrl H)
    : Profile X -> YourName

    Rename the folder: %LocalAppData%\Microsoft\Edge\User Data\Profile X
    Rename (Ctrl H)
    : Profile X -> YourName

    Go to registry key: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Edge\PreferenceMACs
    Rename
    (F2): Profile X -> YourName

    Go to registry key: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Edge\Profiles
    Rename (F2)
    : Profile X -> YourName

    Note: Edge will use Default profile unless you switch it to another profile after the startup.
    Note2: You can use command line to open Edge with specific profile.
    "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --profile-directory="YourName"
     
  14. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,258
    Location:
    .
    Awesome! Thanks a lot for the tweak @busy
    Chromium browsers should be able to do it transparently without user's tweaks.
    Or a shortcut like I do with Chrome browser.
     
  15. johnny_castle

    johnny_castle Registered Member

    Joined:
    May 5, 2021
    Posts:
    79
    Location:
    USA
    HUGE thanks to Busy on this, as this worked like a charm. I didn't have to touch my Sandboxie config, just get Edge back to pointing to the Default folder. This only happened because I tried to add an online MS account profile instead of an offline one (like normal). I hated it, so I removed it and and I'll never make that mistake again!

    Just as a suggestion, it might be wise to implement something in Sandboxie that tracks this on its own and adjusts, as I can imagine people add/remove Edge profiles all the time. And most won't know how to fix it like the above steps did. So it'll break some of the settings. Just a thought ;)
     
  16. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,258
    Location:
    .
    Could you help with something similar but for Chrome please?
    See, one RAM module is gone (weird) and I can't launch a vm for testing :cautious:
     
  17. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    507
    for Chrome:

    Backup first!
    Make sure Chrome is closed.

    Open the file: %LocalAppData%\Google\Chrome\User Data\Local State
    Replace (Ctrl H): Profile X -> YourName

    Rename the folder: %LocalAppData%\Google\Chrome\User Data\Profile X
    Rename (Ctrl H): Profile X -> YourName

    Go to the registry key: HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\PreferenceMACs
    Rename (F2): Profile X -> YourName

    Note: Chrome will use Default profile unless you switch it to another profile after the startup.
    Note2: You can use command line to open Chrome with specific profile.
    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="YourName"
     
  18. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    5,258
    Location:
    .
  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.