Descrizione
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, the native autofill popup could be positioned by a cross-origin iframe outside that iframe's bounds, over the embedding page's UI, enabling clickjacking or spoofing of trusted UI. Apps are only affected if they embed untrusted content in iframes within windows that also display trusted UI. Apps that do not embed untrusted third-party content are not affected. This issue is fixed in versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Tipo di vulnerabilità
CWE-1021
Clickjacking: restrizione impropria di livelli o frame dell’interfaccia
L’applicazione web non impedisce, o impedisce in modo errato, di essere incorniciata o sovrapposta da pagine di un altro dominio: l’utente può essere indotto a cliccare su elementi nascosti.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Ottenere privilegi o assumere un’altra identità, Aggirare i meccanismi di protezione, Leggere i dati dell’applicazione, Modificare i dati dell’applicazione |
Come si previene
Sviluppo
Use the frame-ancestors directive in the Content Security Policy, which is intended to define restrictions when it comes to allowing embedded content.
Sviluppo
The use of X-Frame-Options (now partially obsolete as of September 2026) allows developers of web content to restrict the usage of their application within the form of overlays, frames, or iFrames. The developer can indicate from which domains can frame the content. The concept of X-Frame-Options is well documented, but implementation of this protection mechanism is in development to cover gaps; often, there is a need for allowing frames from multiple domains.
Sviluppo
Use a frame-breaker script in each page that should not be framed. This is very helpful for legacy browsers that do not support the X-Frame-Options security feature previously mentioned (which is now partially obsolete).
Sviluppo
In addition to frames or iframes as previously mentioned, the web application is expected to place restrictions on whether it is allowed to be rendered within objects, embed, or applet elements.
Tutte le 428 CVE di tipo CWE-1021, con andamento e prevenzione