In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade electron-updater
to version 4.2.2 or higher.
electron-updater is a module allowing applications to implement auto-update functionality.
Affected versions of this package are vulnerable to Signature Validation Bypass. The signature verification check is based on a string comparison between the installed binary’s publisherName
and the certificate’s Common Name
attribute of the update binary. During a software update, the application will request a file named latest.yml
from the update server, which contains the definition of the new release - including the binary filename and hashes.
Using a filename containing a single quote and a matching hash, an attacker could bypass the entire signature verification by triggering a parse error in the script.
This can be leveraged to force a malicious update on Windows clients, effectively gaining code execution and persistence capabilities.
Exploitation of this vulnerability requires the attacker to also have control over the update server, or alternatively a man-in-the-middle.