Etcher loads remote code after privileges are elevated
See original GitHub issue- Etcher version: 1.5.59
- Operating system and architecture: MacOS 10.13.6
- Image flashed: Raspbian
- Do you see any meaningful error information in the DevTools? n/a
When I flash the image, Etcher prompts me for my password, because needs elevated privileges to for some operations on the SDcard. Right after entering the password, Etcher opens a connection to jquery.org - probably do download jQuery. This is a major security risk, as it allows for potentially unsafe code to be executed on my system AFTER I elevated privileges.
Note: I have disabled error reporting and usage statistics, so no network connection should be open when I use the program, except for downloading images. I am pretty sure jQuery.org tracks downloads, which may or may not count as “usage statistics” depending on one’s font of view.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Balena Device Debugging Masterclass
Now provision a device by downloading and flashing a development image from the Dashboard (via Etcher), or by flashing via the command line....
Read more >Step-by-Step Troubleshooting Guide - Yodeck
“Running startup diagnostics.” “Internet Access Required”; “Registration Code”; “Device Deactivated”; “Could Not Get Video from YouTube”.
Read more >Etcher 1.10.6 - Chocolatey Software
Etcher is a powerful OS image flasher built with web technologies to ensure flashing an SDCard or USB drive is a pleasant and...
Read more >norns: help - monome
Use Etcher or the official Raspberry Pi Imager to flash your SD card, using these shield-specific instructions. Be sure to use a high...
Read more >OS - Phidget SBC
Communicate with sensors, controllers and relays with the PhidgetSBC! It uses Debian Linux and can run autonomous programs in C, Java, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Also just to be super clear - what was unintentional was loading GA regardless/in the success-banner, the EFP actually makes use of that (when it’s enabled, mind!)
ping @petrosagg - Has something slipped through the net? Does there need to be a process in place to prevent that happening? 🤷♂️
EDIT: It looks like https://github.com/balena-io/etcher/blob/master/lib/gui/app/components/featured-project/featured-project.jsx#L37 is where the featured-project URL is defined, and the source of https://assets.balena.io/etcher-featured/index.html says:
😕
EDIT2: Also, https://assets.balena.io/etcher-featured/index.js appears to explicitly load GoogleAnalytics, whereas https://github.com/balena-io/etcher/issues/2766#issuecomment-531437542 says that GA was unintentional?