Contact UsWDN News & more...

Simple bug could lead to RCE flaw on apps built with Electron Framework

some distance away code execution

A extreme some distance away code execution vulnerability has been present within the in vogue Electron web application framework that will presumably per chance additionally allow attackers to enact malicious code on victims’ laptop systems.

Electron is an birth offer app pattern framework that powers 1000’s of broadly-historical desktop functions including WhatsApp, Skype, Signal, WordPress, Slack, GitHub Desktop, Atom, Visible Studio Code, and Discord.

Besides its possess modules, Electron framework additionally permits developers to salvage hybrid desktop functions by integrating Chromium and Node.js framework by APIs.

Since Node.js is a sturdy framework for server-aspect functions, having salvage admission to to its APIs circuitously gives Electron-primarily based apps more adjust over the working machine build in on the server.

To terminate unauthorised or pointless salvage admission to to Node.js APIs, Electron framework by default objects the impress of “webviewTag” to unsuitable in its “webPreferences” configuration file, which then objects “nodeIngration” to unsuitable.

This configuration file with the hardcoded values of some parameters became launched within the framework to terminate precise-time adjustments by malicious functions, i.e., by exploiting a security vulnerability appreciate inferior-station scripting (XSS).

Furthermore, if an app developer skips or forgets to uncover “webviewTag: unsuitable” within the configuration file, even then the framework by default considers the impress of “nodeIntegration” as unsuitable, to rob a preventive measure.

Indispensable RCE Flaw Could Hit Apps Constructed With Electron Framework

On the opposite hand, Trustwave researcher Brendan Scarvell has released proof-of-plan (PoC) code that attackers can inject into targeted functions working without “webviewTag” declared, by exploiting a inferior-station scripting flaw, to enact some distance away code execution.

The exploit re-enables “nodeIntegration” in runtime, allowing attackers to originate unauthorised adjust over the applying server and enact arbitrary machine instructions.

It desires to be well-liked that the exploit wouldn’t work if the developer has additionally opted for one in all the next alternatives:

  • nativeWindowOption option enabled in its webPreferences.
  • Intercepting new-window events and overriding event.newGuest without the recount of the equipped alternatives sign.

The vulnerability, tracked as CVE-2018-1000136, became reported to the Electron group by Scarvell earlier this year and affected all versions of Electron on the time of discovery.

Electron developers patched the vulnerability in March 2018 with the liberate of versions 1.7.Thirteen, 1.8.four, and

So, app developers must originate clear their functions are patched, or no longer lower than no longer inclined to this subject.

For more technical minute print on the Electron vulnerability and PoC exploit code, you will have the selection to maneuver on to the Trustwave’s blog post.

It will probably presumably per chance additionally be well-liked that the Electron trojan horse has nothing to enact with the recently chanced on flaw in Signal app, which has additionally recently patched a extreme inferior-station scripting vulnerability that leads to some distance away code execution, whose elephantine technical minute print are scheduled to be printed completely on The Hacker News this evening. Stop Tuned!