Electron contextIsolation RCE via Electron internal code
Example 1
"exit"イベントリスナーは、ページの読み込みが開始されるときに内部コードによって常に設定されます。このイベントは、ナビゲーションの直前に発生します:
https://github.com/nodejs/node/blob/8a44289089a08b7b19fa3c4651b5f1f5d1edd71b/bin/events.js#L156-L231 -- もはや存在しない
次はここに行きます:
ここで「self」はNodeのプロセスオブジェクトです:
プロセスオブジェクトには「require」関数への参照があります:
handler.callがprocessオブジェクトを受け取るため、任意のコードを実行するために上書きすることができます:
Example 2
プロトタイプ汚染からrequireオブジェクトを取得。 https://www.youtube.com/watch?v=Tzo8ucHA5xw&list=PLH15HpR5qRsVKcKwvIl-AzGfRqKyx--zq&index=81
漏洩:
エクスプロイト:
Last updated