-
Defect (Security)
-
Resolution: Fixed
-
Trivial
-
5.0.3
-
Windows amd64 (tested on Windows Server 2019)
-
Sprint 68 (Sep 2020), Sprint 69 (Oct 2020), Sprint 70 (Nov 2020), Sprint 71 (Dec 2020), Sprint 72 (Jan 2021), Sprint 73 (Feb 2021)
-
0.5
Steps to reproduce:
- run zabbix_agent-5.0.3-windows-amd64-openssl.msi
- Next, accept license, next
- Check "Enable PSK", enter some string into the Zabbix Server field
- next
- enter some string into the field "Pre-shared key identity"
- enter "somekey&calc.exe" into the field "Pre-shared key value"
- next, next, install
Result:
Installation succeeds
C:\Programs\Zabbix Agent\psk.key is empty
Calculator is executed
Expected:
Installation succeeds
C:\Programs\Zabbix Agent\psk.key contains "somekey&calc.exe"
Further information:
The windows installer log ([Microsoft Docs - Enable Windows Installer Logging|https://docs.microsoft.com/en-us/troubleshoot/windows-client/application-management/enable-windows-installer-logging)] shows this:
MSI (s) (6C:CC) [12:50:34:687]: PROPERTY CHANGE: Adding PSKFileDefCreate property. Its value is '"C:\Windows\system32\cmd.exe" /C echo somekey&calc.exe>"C:\Program Files\Zabbix Agent\psk.key"'. Action ended 12:50:34: PSKFileDefCreate_cmd. Return value 1. MSI (s) (6C:CC) [12:50:34:687]: Doing action: PSKFileDefCreate Action 12:50:34: PSKFileDefCreate. Action start 12:50:34: PSKFileDefCreate. PSKFileDefCreate: Action ended 12:50:34: PSKFileDefCreate. Return value 1. MSI (s) (6C:CC) [12:50:34:703]: Doing action: PSKFileUserCreate_cmd Action 12:50:34: PSKFileUserCreate_cmd. Action start 12:50:34: PSKFileUserCreate_cmd. MSI (s) (6C:CC) [12:50:34:703]: PROPERTY CHANGE: Adding PSKFileUserCreate property. Its value is '"C:\Windows\system32\cmd.exe" /C echo somekey&calc.exe>""'. Action ended 12:50:34: PSKFileUserCreate_cmd. Return value 1. MSI (s) (6C:CC) [12:50:34:703]: Skipping action: PSKFileUserCreate (condition is false) MSI (s) (6C:CC) [12:50:34:703]: Doing action: AgentService_Run Action 12:50:34: AgentService_Run. Action start 12:50:34: AgentService_Run. AgentService_Run: Action ended 12:50:34: AgentService_Run. Return value 1.
- part of
-
ZBXNEXT-6016 MSI Installer for Zabbix Agent2
- Closed