Electron contextIsolation RCE via Electron internal code
Last updated
Last updated
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)
Mfano kutoka https://speakerdeck.com/masatokinugawa/electron-abusing-the-lack-of-context-isolation-curecon-en?slide=41
"exit" msikilizaji wa tukio daima huwekwa na msimbo wa ndani wakati upakiaji wa ukurasa umeanza. Tukio hili linatolewa kabla ya urambazaji:
https://github.com/nodejs/node/blob/8a44289089a08b7b19fa3c4651b5f1f5d1edd71b/bin/events.js#L156-L231 -- Haipo tena
Kisha inaenda hapa:
Ambapo "self" ni kituo cha Node:
Kituo hicho kina rejeleo kwa kazi ya "require":
Kama handler.call itapokea mchakato wa kitu, tunaweza kuandika upya ili kutekeleza msimbo wa kiholela:
Pata kipengele cha require kutoka kwa uchafuzi wa prototype. Kutoka https://www.youtube.com/watch?v=Tzo8ucHA5xw&list=PLH15HpR5qRsVKcKwvIl-AzGfRqKyx--zq&index=81
Kuvuja:
Kuvunja:
Jifunze & fanya mazoezi ya AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE) Jifunze & fanya mazoezi ya GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)