-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-AcceptedProposal-FinalCommentPeriod
Milestone
Description
In os/exec.LookPath use Windows function NeedCurrentDirectoryForExePathW
to check if the environment is hardened to protect against resolution of command path in the current directory.
Note that this proposal is different from just looking at the existence of a NoDefaultCurrentDirectoryInExePath
environment variable because the function doesn't just look in the process environment variables but might also look in registry settings.
This is related to:
- os/exec: return error when PATH lookup would use current directory #43724: return error when PATH lookup would use current directory
- proposal: os/exec: use LookPathAbs by default #42950: use LookPathAbs by default
Credit goes to @KalleOlaviNiemitalo for his/her comment in #38736.
bcmills
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.ProposalProposal-AcceptedProposal-FinalCommentPeriod
Type
Projects
Status
Done