Skip to content

Commit

Permalink
[release/v1.3] Prepare for v1.3.2 (#1749)
Browse files Browse the repository at this point in the history
* Add qoutes to path. (#1694)

* fix pathing

* Update changelog

---------

Co-authored-by: mattdurham <mattdurham@ppog.org>
  • Loading branch information
ptodev and mattdurham authored Sep 25, 2024
1 parent f35cfce commit 8ce3a6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ This document contains a historical list of changes between releases. Only
changes that impact end-user behavior are listed; changes to documentation or
internal API changes are not present.

v1.3.2
-----------------

### Security fixes

- Add quotes to windows service path to prevent path interception attack. [CVE-2024-8975](https://grafana.com/security/security-advisories/cve-2024-8975/) (@mattdurham)

v1.3.1
-----------------

Expand Down
4 changes: 2 additions & 2 deletions packaging/windows/install_script.nsis
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Section "install"
Call InitializeRegistry

# Create the service.
nsExec::ExecToLog 'sc create "Alloy" start= delayed-auto binpath= "$INSTDIR\alloy-service-windows-amd64.exe"'
nsExec::ExecToLog 'sc create "Alloy" start= delayed-auto binpath= "\"$INSTDIR\alloy-service-windows-amd64.exe\""'
Pop $0

# Start the service.
Expand Down Expand Up @@ -156,7 +156,7 @@ Function InitializeRegistry
nsExec::ExecToLog 'Reg.exe query "${REGKEY}" /reg:64 /ve'
Pop $0
${If} $0 == 1
nsExec::ExecToLog 'Reg.exe add "${REGKEY}" /reg:64 /ve /d "$INSTDIR\alloy-windows-amd64.exe"'
nsExec::ExecToLog 'Reg.exe add "${REGKEY}" /reg:64 /ve /d "\"$INSTDIR\alloy-windows-amd64.exe\""'
Pop $0 # Ignore return result
${EndIf}

Expand Down

0 comments on commit 8ce3a6d

Please sign in to comment.