Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to x/sys/execabs for windows security fixes #57

Merged
merged 1 commit into from
Aug 19, 2021
Merged

Switch to x/sys/execabs for windows security fixes #57

merged 1 commit into from
Aug 19, 2021

Conversation

Jacalz
Copy link
Member

@Jacalz Jacalz commented Aug 3, 2021

The os/exec package on Windows will match the behaviour of cmd.exe by considering the local folder as a primary part of the path. This means that a malicious binary with the same name, in the current folder, would be run instead of the expected binary in the system path. Due to the backwards compat being an issue, this could not be fixed within ox/exec before Go v2. See https://blog.golang.org/path-security for more info.

Related to fyne-io/fyne#2344 but not part of the same effort.

The os/exec package on Windows will match the behaviour of cmd.exe by considering the local folder as a primary part of the path. This means that a malicious binary with the same name, in the current folder, would be run instead of the expected binary in the system path. Due to the backwards compat being an issue, this could not be fixed within ox/exec before Go v2. See https://blog.golang.org/path-security for more info.
@Jacalz Jacalz requested a review from lucor August 3, 2021 20:09
@lucor lucor merged commit 21ee353 into fyne-io:develop Aug 19, 2021
lucor added a commit to lucor/fyne-io-fyne-cross that referenced this pull request Sep 29, 2021
### Added

-  Support specifying target architectures for Android fyne-io#52

### Changed

- Switch to x/sys/execabs for windows security fixes fyne-io#57
- [base-image] update Go to v1.16.8 and Fyne CLI tool to v2.1.0 fyne-io#67
@lucor lucor mentioned this pull request Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants