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

Handling localhost Links #644

Closed
masood opened this issue Oct 25, 2023 · 2 comments
Closed

Handling localhost Links #644

masood opened this issue Oct 25, 2023 · 2 comments

Comments

@masood
Copy link

masood commented Oct 25, 2023

Summary:

While the ElectronMail Desktop Application does a great job of handling links that are clicked within the application, it does not completely filter these links to remove localhost.

Platform(s) Affected:

MacOS, Linux, Windows

Steps To Reproduce:

  1. Open the ElectronMail Desktop Application.
  2. Click on a link that includes a localhost server (say, http://localhost:8315/). The link is passed as is to the system since the application only checks the protocol [Link]
  3. If a user has another application that runs on that port, it can be triggered from ElectronMail.

Additionally, the application does not include a listener on the will-navigate. While it uses additional handlers, it will be a good idea to add a listener to ensure this event is handled the same way that clicks are handled.

Mir Masood Ali, PhD student, University of Illinois at Chicago
Mohammad Ghasemisharif, PhD Candidate, University of Illinois at Chicago
Chris Kanich, Associate Professor, University of Illinois at Chicago
Jason Polakis, Associate Professor, University of Illinois at Chicago

@vladimiry
Copy link
Owner

The http://localhost:8315/ is a normal http-based link address, so links with such address get processed the same way as other http-based links.

Additionally, the application does not include a listener on the will-navigate. While it uses additional handlers, it will be a good idea to add a listener to ensure this event is handled the same way that clicks are handled.

Web page link clicking is opening its address in an external handler/browser, not in the webview itself. But will-navigate affects navigation of the app/@electron web page. So this is a different thing.

There are measures preventing fishy webview page loading (webview is where https://github.com/ProtonMail/WebClients/ client apps get loaded):

@vladimiry
Copy link
Owner

Closing as responded.

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