Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RCE/XSS vulnerability with Mozilla 'interactive-examples' iFrames. #11

Open
David-Stephenson opened this issue Aug 10, 2021 · 1 comment

Comments

@David-Stephenson
Copy link

Hello, I was able to execute code that would interact with the electron instance via the Mozilla interactive examples iFrames. You can watch an example of this vulnerability on YouTube. This is a common vulnerability involved with Electrons "nodeIntegration" property being set to true. You can read more about the vulnerability on Doyensec's Blog.

How to reproduce

The Mozilla interactive examples run inside an iFrame and allows you to modify and execute JavaScript. I was able to execute code inside the iFrame that would set the parent page of iFrame to a website of my choice. On the website of my choice I wrote JavaScript that would interact with the NodeJS process and execute programs require('child_process').exec().

Possible ways to fix the vulnerability.

  1. Try running iFrames with the sandbox attribute
@xadhrit
Copy link

xadhrit commented Aug 11, 2021

yes, It's a CVE bug. I have also successfully reproduced it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants