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

Move phishing warning to the extension #4773

Closed
bdresser opened this issue Jul 11, 2018 · 10 comments · Fixed by #4893
Closed

Move phishing warning to the extension #4773

bdresser opened this issue Jul 11, 2018 · 10 comments · Fixed by #4893

Comments

@bdresser
Copy link
Contributor

bdresser commented Jul 11, 2018

Bounty: rather than redirect users to our website to show the phishing warning, we should bundle the phishing page with the extension and show it full-page when the user hits a flagged site.

This prevents the small privacy leak for users hitting our site and also removes phishing.html as a target of attack.

@gitcoinbot
Copy link

gitcoinbot commented Jul 17, 2018

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 4 months, 1 week from now.
Please review their action plans below:

1) kelvintyb has started work.

Can complete within the week

Learn more on the Gitcoin Issue Details page.

@gitcoinbot
Copy link

@kelvintyb Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!

  • warning (3 days)
  • escalation to mods (6 days)

Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days

@kelvintyb
Copy link
Contributor

@bdresser can I clarify if the specification for showing the phishing.html full page refers to showing it within popup.html or as a separate window using either tabs.create() or windows.create()?

@bdresser
Copy link
Contributor Author

we want to redirect the blocked page to a full-screen version of the extension. no new tab.

basically exactly the same as current behavior, except instead of hitting metamask.io/phishing.html the user sees the same page loaded from the extension.

@alextsg anything to add?

@alextsg
Copy link
Contributor

alextsg commented Jul 23, 2018

This task will look something like adding a component for the phishing warning page and its route to ui/app/routes.js (something like PHISHING_WARNING_ROUTE = '/phishing-warning'), and then in app/scripts/contentscript.js, the function redirectToPhishingWarning can use extension.runtime.getURL(PHISHING_WARNING_ROUTE) to redirect to the phishing warning component.

@kelvintyb
Copy link
Contributor

Thanks for the input guys :)

Is this the intended behaviour? I'm doing it slightly differently from Alex's approach since it's redirecting the current window to a html page bundled in the extension itself (see the URL). Not exactly a full screen version of the popup.html, but I'm unsure if that really works for blocking interaction with the window.

screen recording 2018-07-25 at 11 38 pm

@bdresser
Copy link
Contributor Author

@kelvintyb this looks good to me. @alextsg?

@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.065 ETH (31.07 USD @ $477.97/ETH) has been submitted by:

  1. @kelvintyb

@bdresser please take a look at the submitted work:


@kelvintyb
Copy link
Contributor

@bdresser appreciate if you could accept this submission on gitcoin so the bounty can be completed. thanks!

@bdresser
Copy link
Contributor Author

bdresser commented Aug 4, 2018

@kelvintyb done. sorry for the delay and thanks for your work!

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

Successfully merging a pull request may close this issue.

4 participants