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

fix(electron/windows): 🩹 prevent command LPE in the installer #1703

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

jyyi1
Copy link
Contributor

@jyyi1 jyyi1 commented Aug 25, 2023

This PR tries to prevent the local privilege escalation issue in Outline Client Windows installer by specifying the full path of system commands. Note that in a .bat file we can use %SystemRoot% variable (typically expands to "C:\Windows"), but it is not available in the .nsh NSIS script, therefore we need to use the NSIS defined constant $SYSDIR (typically expands to "C:\Windows\System32").

I also removed the Cygwin related information from the document because it is not required any more.

Fixes: b/266050099

@jyyi1 jyyi1 requested a review from a team as a code owner August 25, 2023 21:49
@jyyi1 jyyi1 requested a review from fortuna August 25, 2023 21:49
@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Patch coverage has no change and project coverage change: +8% 🎉

Comparison is base (a1a9c30) 36% compared to head (0b09ed6) 45%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #1703    +/-   ##
=======================================
+ Coverage      36%     45%    +8%     
=======================================
  Files          45      39     -6     
  Lines        2749    1943   -806     
  Branches      312     312            
=======================================
- Hits         1006     885   -121     
+ Misses       1743    1058   -685     
Flag Coverage Δ
apple ?
ios ?
macos ?
unittests 45% <ø> (+8%) ⬆️
www 45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jyyi1 jyyi1 merged commit ac4768e into master Aug 28, 2023
16 checks passed
@jyyi1 jyyi1 deleted the junyi/fix-perm-escalate-win-install branch August 28, 2023 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants