After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 256160 - Warn on faked, phishing link URI's
Warn on faked, phishing link URI's
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other All
: Normal enhancement
: Future
Assigned To: evolution-mail-maintainers
Evolution QA team
: 300424 312310 316796 422709 546495 (view as bug list)
Depends on:
Blocks: 341452
 
 
Reported: 2004-03-29 14:51 UTC by Owen Taylor
Modified: 2021-05-19 11:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2004-03-29 14:51:53 UTC
This is not an easy thing to do, but I think it would be extremely
valuable if GtkHTML when used in evolution loudly pointed
out links like:

<A>
href="http://www.securecitibank.us/scripts/email_verify.htm">https://web.da-us.citibank.com/signin/citifi/scripts/email_verify.jsp
</A>

(From a well-constructed steal-your-password mail that took me a few
seconds to be sure it was a fake). Note that the attacker might do things 
like: 

 - Insert zero-width Unicode characters into the link text
 - Put comments / <span> tags, etc. into the link text
 - Use Unicode characters that are similar appearance to '/'

But I think it should be possible to have something that makes
it quite hard; (and if evolution has different heuristics than
outlook, then...)

A bare minimum would be to have some sort of tooltip or status-bar
display of moused-over URI's, but I think assuming that the user
is savvy enough to realize the problem from a subtle display
is assuming too much.
Comment 1 Radek Doulik 2004-03-30 17:52:06 UTC
evo 1.5 already displays links in status bar
Comment 2 André Klapper 2005-07-16 12:58:00 UTC
we should forbid stupid users to use evo and computers and internet at all
instead. ;-p
Comment 3 André Klapper 2005-07-16 13:55:37 UTC
*** Bug 300424 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2005-07-16 13:55:42 UTC
...and that's exactly the problem that owen describes, there are many, many
possibilities that URI's can be faked. so if we would introduce such a feature,
the user itself gets more and more uncautious because he expects evolution to
warn him if it's a faked link. so evolution would be guilt/responsible if the
user has not been warned and offers private data. (you get the idea.)

anyway, copying the comments from duplicatre bug 300424 here:





An idea of a friend of mine:

If Evolution receives an HTML email that contains a link like this:

[a href="http://bad.guys.net/"]https://secure.paypal.com/[/a]

In the case that the shown link (ie: the part the user sees) starts with http:
or https: then it should check to ensure that the href URL is equal to the URL
that is shown to the user.  If it isn't, it should do something appropriate
(like give a warning, disable the link, show the correct link URL, etc).


------- Additional Comment #1 From Ryan Lortie (desrt) 2005-04-13 04:45 UTC -------

Few things to think about: (writing htp instead of http to prevent bugzilla
auto-linking)



[a href='htp://death/'] htp://life/[/a]
[a href='htp://death/'][span]htp://life/[/span][/a]
[a href='htp://death/']h[b][/b]tp://life/[/a]

etc

But since 99.99% of the time there are no tags inside of a link, these are
fairly marginal cases.


------- Additional Comment #2 From Luis Villa 2005-06-03 18:12 UTC -------

No comment why? This is a big feature that lots of other clients are picking up;
we need to think about doing the same.



snip.
Comment 5 André Klapper 2005-08-02 14:18:08 UTC
*** Bug 312310 has been marked as a duplicate of this bug. ***
Comment 6 André Klapper 2005-09-21 13:24:56 UTC
adding "phishing" to the summary to find this more easily.
Comment 7 André Klapper 2005-09-21 13:25:17 UTC
*** Bug 316796 has been marked as a duplicate of this bug. ***
Comment 8 Evan Prodromou 2005-09-24 23:25:04 UTC
I think there's not a complexity problem. If the toString contents of the link
is an HTTP URL, and if it's not URL-wise equal to the HREF of the link, show a
warning. Otherwise, not.

There are standard algorithms to determine if two URLs are not equal. Section
3.2.3 of the HTTP 1.1 standard says how to compare two HTTP URLs. It's pretty
easy. It's also algorithmically pretty easy to flatten HTML inside an <a> tag to
just get the text nodes inside.
Comment 9 Allison Karlitskaya (desrt) 2005-09-24 23:48:05 UTC
Imagine 


<a
href="http://paypwnedpal.com/">http://pay<size=basically-invisible>pwned</size>pal.com/</a>
Comment 10 Dave Malcolm 2005-09-29 17:40:03 UTC
Further idea on this subject... all of the major web sites have "fraud
reporting" email addresses (ebay, paypal, the various banks etc etc).

We could write a plugin that adds a "Report This Email as a Fraud" action to the
context menus when a likely phishing attack is discovered, and makes it easy to
submit it to the correct response address for the site being faked.  It would
compose an email for you to the correct address, with the bogus email as an
attachment.  The user can then review the report email, and choose to send it if
desired.
Comment 11 Kaushal Kumar 2005-10-05 06:12:22 UTC
The simplest solution, as already suggested, would be to pop up a warning dialog
showing the actual link about to be opened. The user can be asked to skip or
continue the action. Of course, the warning should be only trigerred when the
link is clicked. Mouse hover is already handled in a more non-intrusive manner
through the status bar message. 
There was a bounty for the mouse hover message which is already resolved [ref.
http://lists.ximian.com/archives/public/evolution-patches/2004-January/003949.html].


Now, we additionally need to hook a warning dialog in the link_clicked signal,
AFAIT. Since this part is handled by shell/mail, moving it there.
Comment 12 Jochen Eppler 2006-01-25 19:23:55 UTC
In 2.5.4 the status bar seems to be removed. This is a major problem,
as now there is't even a possibility for the user to check the urls
manually. 
Comment 13 André Klapper 2006-02-21 18:16:12 UTC
the status bar has not been removed, it's just not always displayed. you can enable it in the "view" main menu.

also see bug 248425.
Comment 14 André Klapper 2008-08-06 14:38:05 UTC
*** Bug 546495 has been marked as a duplicate of this bug. ***
Comment 15 Matthew Barnes 2008-11-19 14:25:41 UTC
Moving this to Mailer.
Comment 16 André Klapper 2012-02-06 12:12:43 UTC
*** Bug 422709 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2021-05-19 11:45:37 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. 
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org (resources are unfortunately quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/Community/GettingInTouch/BugReportingGuidelines
and create a new enhancement request ticket at
  https://gitlab.gnome.org/GNOME/evolution/-/issues/

Thank you for your understanding and your help.