-
Notifications
You must be signed in to change notification settings - Fork 168
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
Windows - Disable option to add PATH during an AllUsers install #584
Conversation
…addtopath Completely remove option to AddToPath when user selects AllUsers inst…
wouldn't the CVE be already be fixed in the "all users" cases by making the folder only admin writable but still allowing to have it in PATH? |
Co-authored-by: Jaime Rodríguez-Guerra <jaimergp@users.noreply.github.com>
…AddToPath if InstMode is JustMe
@jaimergp, per your request: Help message with the new description Error message that appears if It pops up again when the GUI gets to the installation type screen: |
@jaimergp @hoechenberger - When I was testing the MessageBox ( I traced the problem to Could you please review this and validate my thinking? |
Hm, I am not sure... the logic in that part is really opaque. It looks like they are first parsing the CLI arguments, then overriding some defaults, then parsing again. Both calls were introduced in the same PR (particularly, this commit), but judging by the branch name that PR is part of a merge/reunification. After that, I can't find any history on why you need it twice. Since we can't prove it was added by accident, and all we can say it looks like deliberate, I'd be inclined to say we shouldn't remove it. Things we can do to prevent the double warning:
I think I prefer the 1st one. This is not a pretty part of the codebase so at the very least we should create an issue to investigate the double argument parsing call. |
LGTM to me. all review comments are covered now and it locally tests correctly. merging. |
Description
A critical privilege vulnerability was found in non-default installations of Anaconda installers for Windows users (CVE 2022-26526). This also impacts all Windows installers built using the latest release of
constructor
(v3.3.1
).To mitigate this vulnerability, this PR disables the option to add the installation to the PATH environment variable during an "All Users" installation. Users can still add the installation to their PATH environment variable during a "Just Me" installation. Additionally, when installing with Administrator privileges, non-admin system Users will no longer have "Write" permissions.
Currently, the user sees these Advanced Installation Options after selecting
Just Me
orAll Users
:With the changes in this PR, if the user selects
All Users
, the option to add to the PATH environment variable will show as disabled:Checklist - did you ...
news
directory (using the template) for the next release's release notes?