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
By default runcode santized document prefix but if html encode to document.write('<iframe src=file:///etc/passwd></iframe>')
then we can inserted html encoded func to html tag event like onerror <img src=x onerror="document.write('<iframe src=file:///etc/passwd></iframe>')">
Hi @rezaduty,
Thank you for reporting 🙏!
I just released a new version fixing this. I now block "banned keywords" like document even if the text is HTML encoded.
The real problem was that when a Babel compilation happened, I wasn't escaping the response properly. It is now fixed!
That being said, like all applications allowing you to execute code locally, if you try to launch malicious or malicious code, it is always possible... Rereading code imported from nowhere before executing it remains important, this is why the code blocks are NEVER executed when the note is opened.
By default runcode santized document prefix but if html encode to
document.write('<iframe src=file:///etc/passwd></iframe>')
then we can inserted html encoded func to html tag event like onerror
<img src=x onerror="document.write('<iframe src=file:///etc/passwd></iframe>')">
POC:
https://drive.google.com/file/d/1_Jh133kMAqMf8AUWrrjbOqRQpHSKlVyO/view?usp=sharing
https://drive.google.com/file/d/1ek5dg4PG3rADuUPPXUOlKE6qSVGmKdZB/view?usp=sharing
The text was updated successfully, but these errors were encountered: