You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
7.4.0
Electron version
v30.1.2
Operating system
Windows
Last known working Electron Forge version
No response
Expected behavior
The downloaded update should be validated (e.g., by checksum or signature verification) to prevent untrusted or corrupted files from being executed.
Actual behavior
using update.exe from Squirrel to download updates for my application. However, I’ve noticed that update.exe accepts any server URL, and my application will proceed with launching the downloaded update without any validation.
Steps to reproduce
Any guidance on how to set up this validation mechanism would be appreciated.
Additional information
No response
The text was updated successfully, but these errors were encountered:
maoryadin
changed the title
Validating Downloaded Updates with Update.exe (Squirrel Updater) #160
Validating Downloaded Updates with Update.exe (Squirrel Updater)
Oct 21, 2024
Hey @maoryadin, this is outside of the scope of Electron's security model. If someone has RCE access to your device, there's a lot of other ways to download arbitrary malicious code.
Hey @maoryadin, can you tell us more about the privilege escalation you're concerned about?
update.exe does indeed not perform any validation but the operating system should run its usual code signing checks. If an attacker has enough access to use update.exe to download and run a binary, they can also just download and run the binary without update.exe, right?
Pre-flight checklist
Electron Forge version
7.4.0
Electron version
v30.1.2
Operating system
Windows
Last known working Electron Forge version
No response
Expected behavior
The downloaded update should be validated (e.g., by checksum or signature verification) to prevent untrusted or corrupted files from being executed.
Actual behavior
using update.exe from Squirrel to download updates for my application. However, I’ve noticed that update.exe accepts any server URL, and my application will proceed with launching the downloaded update without any validation.
Steps to reproduce
Any guidance on how to set up this validation mechanism would be appreciated.
Additional information
No response
The text was updated successfully, but these errors were encountered: