From 7152325f4ab5e18cfc6873ce345f2e4ece7808ce Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sat, 2 Oct 2021 10:17:51 +0200 Subject: [PATCH] Build 0.9.7 --- CHANGELOG.md | 3 +++ Sandboxie/core/drv/session.c | 2 +- Sandboxie/install/Templates.ini | 11 ++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53ab857c..0c12062c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - when initializing an empty sandbox, MSI debug keys are set to generate the debug output of MSI installer service - added "DisableComProxy=y" allowing to disable COM proxying through the service - added "ProcessLimit=..." that allows to limit the max count of processes in a sandbox [#1230](https://github.com/sandboxie-plus/Sandboxie/issues/1230) +- added missing IPC loging ### Changed - reworked SbieSvc ini server to allow settings caching and greatly improve performance @@ -33,6 +34,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - fixed handle leaks in the lingering process monitor mechanism - fixed issue with opening device paths like "\\??\\FltMgr" - fixed build issue with an explicit FileDigestAlgorithm option for driver sign (by isaak654) [#1210](https://github.com/sandboxie-plus/Sandboxie/pull/1210) +- fixed issue with resource access log sometimes getting corrupted +- fixed issue with office C2R [#428](https://github.com/sandboxie-plus/Sandboxie/issues/428) ### removed - removed support for Microsoft EMET (Enhanced Mitigation Experience Toolkit), as it was EOL in 2018 diff --git a/Sandboxie/core/drv/session.c b/Sandboxie/core/drv/session.c index b8888835..de23046c 100644 --- a/Sandboxie/core/drv/session.c +++ b/Sandboxie/core/drv/session.c @@ -1110,7 +1110,7 @@ _FX NTSTATUS Session_Api_MonitorGetEx(PROCESS* proc, ULONG64* parms) log_data->Length = (USHORT)data_size; ProbeForWrite(log_buffer, data_size + 1, sizeof(WCHAR)); - memcpy(log_buffer, read_ptr, data_size); + log_buffer_get_bytes((CHAR*)log_buffer, data_size, &read_ptr, session->monitor_log); log_buffer[data_size / sizeof(wchar_t)] = L'\0'; diff --git a/Sandboxie/install/Templates.ini b/Sandboxie/install/Templates.ini index 03f75fd1..05d62e20 100644 --- a/Sandboxie/install/Templates.ini +++ b/Sandboxie/install/Templates.ini @@ -3067,6 +3067,7 @@ LingerProcess=opera_autoupdate.exe [Template_BlockPorts] Tmpl.Title=#4293 Tmpl.Class=Misc +#BlockPort=137,138,139,445 NetworkAccess=Block;Port=137,138,139,445 [Template_qWave] @@ -3147,8 +3148,16 @@ Tmpl.ScanService=RpcSs #RpcPortBinding=winspool.drv,'ncalrpc:[,Security=Impersonation Dynamic False]',Resolve=PrintSpooler #RpcPortBindingSvc=Spooler,PrintSpooler +# NSI +RpcPortBinding=WINNSI.DLL,'ncalrpc:[,Security=Impersonation Dynamic True]',Resolve=NSI,TimeOut=n +RpcPortBindingSvc=NSI,nsi + +# AppInfo +RpcPortBinding=kernel32.dll,'0497b57d-2e66-424f-a0c6-157cd5d41700@ncalrpc:',Resolve=AppInfo,TimeOut=y +RpcPortBindingIfId=AppInfo,{0497b57d-2e66-424f-a0c6-157cd5d41700} +#RpcPortBindingSvc=AppInfo,appinfo + # RpcMgmtSetComTimeout presets -RpcPortBinding=WINNSI.DLL,'ncalrpc:[,Security=Impersonation Dynamic True]',TimeOut=n RpcPortBinding=AppXDeploymentClient.dll,{00000000-0000-0000-0000-000000000000},TimeOut=y # windows proxy auto discovery