Electron contextIsolation RCE via Electron internal code
Last updated
Last updated
Learn & practice AWS Hacking: Learn & practice GCP Hacking:
Example from
"exit" event listener is always set by the internal code when de page loading is started. This event is emitted just before navigation:
https://github.com/nodejs/node/blob/8a44289089a08b7b19fa3c4651b5f1f5d1edd71b/bin/events.js#L156-L231 -- No longer exists
Then it goes here:
Where "self" is Node's process object:
The process object has a references to "require" function:
As the handler.call is going to receive the process object we can overwrite it to execute arbitrary code:
Leak:
Exploit:
Get require object from prototype pollution. From
Learn & practice AWS Hacking: Learn & practice GCP Hacking:
Check the !
Join the 💬 or the or follow us on Twitter 🐦 .
Share hacking tricks by submitting PRs to the and github repos.