Skip to content

Electron has serious security vulnerability #1686

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

Closed
weinull opened this issue May 12, 2020 · 2 comments
Closed

Electron has serious security vulnerability #1686

weinull opened this issue May 12, 2020 · 2 comments
Labels
Milestone

Comments

@weinull
Copy link

weinull commented May 12, 2020

Electerm version:

All versions

Operating system(linux, macos, or windows7/8/10?):

All operating system(macos,windows7/8/10,linux)

Detailed Description

Electerm did not conduct permission checks, which led to remote command execution vulnerabilities.
After testing, it affected Electerm on all operating systems.

Steps to Reproduce

1.Open Electerm and keep it running.
2.Use a browser such as Chrome / Firefox / Safari to visit the malicious site I constructed: http://orz.weinull.com/orz-001.html
3.Malicious site executes command to open calculator.

Suggestions

Generate a random token for service invocation at startup, and at the same time, ensure that the token has enough complexity to be guessed

Electerm is a very good tool, hope to develop better

@zxdong262
Copy link
Member

@weinull Thank you for the feedback, fixed in new version.

@weinull
Copy link
Author

weinull commented May 13, 2020

@zxdong262 I downloaded the latest version (v1.3.25), and the test on macOS found that the token check did not take effect. I can still execute the command to open the calculator by visiting the malicious site provided.

I found the cause of the problem. After Electerm exits, there are still active processes (server.js). After I update the version, there are still old versions of the process, so I can still open the calculator. I need to restart the OS or kill the process to recover.
It is recommended to stop all active processes of Electerm after exiting to avoid resource occupation.

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

No branches or pull requests

2 participants