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
Hi, I find a RCE in hackmd-desktop when viewing a evil note.
In renderer.js
webview.addEventListener('dom-ready',function(){// set webview titledocument.querySelector('#navbar-container .title').innerHTML=webview.getTitle()document.querySelector('title').innerHTML=webview.getTitle()})
It will render the title of the webview in a privileged context.
If we use tag or a XSS(hackmdio/codimd#1233) to redirect to a evil page with a payload in title like this.
Hi, I find a RCE in hackmd-desktop when viewing a evil note.
In renderer.js
It will render the title of the webview in a privileged context.
If we use tag or a XSS(hackmdio/codimd#1233) to redirect to a evil page with a payload in title like this.
It will execute the command in the payload and a calculator will pop up.
The text was updated successfully, but these errors were encountered: