uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

UP-01-013 uProxy Extension UI allows Contact Spoofing

Open cure53 opened this issue 12 years ago • 12 comments

During the tests with the newly working UI it was discovered, that an attacker who is already a contact with the victim can easily spoof identity and make the victim believe to be proxying via a different person. This enables MitM attacks based on weak security and trust indicators: uProxy relies on trust and relations to work properly - thus this is considered a working and trivial to exploit attack. The test was carried out as follows:

  1. Victim (user A) and attacker (user C) are contacts
  2. Victim frequently proxies through a trusted friend (user B)
  3. Attacker is a contact of user B as well (optional)
  4. Attacker notices that user A is online but user B is not (optional)
  5. Attacker changes first- and last-name to match user B
  6. Attacker changes avatar / profile image to match user B
  7. Victim now sees user C looking like user B
  8. Attacker allows victim, the user A, to proxy and can monitor and change any unencrypted traffic

While the uProxy UI is still pretty young, it should be implementing secure design from the very beginning. Showing only a user’s first- and last-name is not a good option as anyone can arbitrarily change those details at any given time. The contact list in the uProxy UI should also show the email address of the user to give more precise info as to who the contact actually is.

Further it is recommended to register name-changes and for example show a field called “Formerly called” to make sure that name changes get noticed and thereby eliminate that spoofing vector. In addition, it is recommended to for instance allow to “star” well-known and trusted users to create yet another security indicator. technically more verse users should be presented with an option to verify fingerprints or similar tokens to be sure to be communicating with the right user and not a spoof.

cure53 avatar Oct 01 '14 11:10 cure53

+1 totally agree. Thanks for the great suggestions.

On Wed, Oct 1, 2014 at 7:58 AM, Cure53 [email protected] wrote:

During the tests with the newly working UI it was discovered, that an attacker who is already a contact with the victim can easily spoof identity and make the victim believe to be proxying via a different person. This enables MitM attacks based on weak security and trust indicators: uProxy relies on trust and relations to work properly - thus this is considered a working and trivial to exploit attack. The test was carried out as follows:

  1. Victim (user A) and attacker (user C) are contacts
  2. Victim frequently proxies through a trusted friend (user B)
  3. Attacker is a contact of user B as well (optional)
  4. Attacker notices that user A is online but user B is not (optional)
  5. Attacker changes first- and last-name to match user B
  6. Attacker changes avatar / profile image to match user B
  7. Victim now sees user C looking like user B
  8. Attacker allows victim, the user A, to proxy and can monitor and change any unencrypted traffic

While the uProxy UI is still pretty young, it should be implementing secure design from the very beginning. Showing only a user’s first- and last-name is not a good option as anyone can arbitrarily change those details at any given time. The contact list in the uProxy UI should also show the email address of the user to give more precise info as to who the contact actually is.

Further it is recommended to register name-changes and for example show a field called “Formerly called” to make sure that name changes get noticed and thereby eliminate that spoofing vector. In addition, it is recommended to for instance allow to “star” well-known and trusted users to create yet another security indicator. technically more verse users should be presented with an option to verify fingerprints or similar tokens to be sure to be communicating with the right user and not a spoof.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/412.

Lucas Dixon | Google Ideas

iislucas avatar Oct 01 '14 13:10 iislucas

Some more options for v0.6:

Facebook:

  • display face-book email address

Google (using existing XMPP-based provider):

  • Display the email address of the contact.

Option for additionally not for v0.6. But for the future. XMPP:

  • Display the user-id.

iislucas avatar Oct 13 '14 14:10 iislucas

@iislucas Can you edit that last comment to be more coherent?

In particular, do we get a user-recognizable "facebook email address"? My understanding was that both facebook and google gave you a pseudonymous JID based on an internal account ID, and not relevant to an email address the user would be able to recognize.

I think in particular the original suggestion for this one is that there should be an "Added as " line for contacts if the name / picture has been changed since the time when they were added, as the contact can also potentially arbitrarily change their appearance on the associated social network.

willscott avatar Oct 13 '14 14:10 willscott

Is there any plans for e.g. verifying contacts? It might make sense to add such verification process and have verified contacts be shown differently in the UI (Lock-Icon, "golden star" or any other icon expressing the extra quality of a verified contact).

Other than that, color-coded fingerprints as used in Cryptocat might make sense. Or any other way of expressing something "fingerprinty" that is universal enough for all users to understand and remember.

Also note that several social networks allow recycling of email addresses after a certain period of time if they were abandoned, so the email address only might not be sufficient. The, some providers do allow Unicode in the local part of email addresses, which might allow for homomorphic spoofing attacks.

cure53 avatar Oct 13 '14 15:10 cure53

Good point w.r.t. email addresses being reclaimed / similar one's resulting in spoofing.

Yes, there is a plan for verifying contacts using a ZRTP-style video authentication, and using some UX for it. Probably not for google and FB providers for initial release.

iislucas avatar Oct 15 '14 01:10 iislucas

uProxy currently has a unique userId per contact, that is given to us by the XMPP server. I'm going to be adding this userId below each uProxy contact (when expanded), so that users can see if it has changed.

For Google, this userId is often a @gmail.com address, but is sometimes a @public.talk.google.com address (I believe this is based on whether the users find each other initially through email, chat, or G+). For Facebook, we currently have a unique numeric userId, but will look for something more human-readable, like a @facebook.com email address or the unique URL of the contact.

In the long term video authentication will be the solution for contact spoofing, especially for social networks that we may not trust.

dborkan avatar Oct 22 '14 22:10 dborkan

For the short term, we are going to keep showing the userId in the buddylist if it is something that isn't <unique_id>@public.talk.google.com. For <unique_id>@public.talk.google.com addresses, we will take a hash of the <unique_id> and turn this into a human readable string, e.g. "whiskey tango". Then if someone else tries to spoof the contact they will get a different string.

dborkan avatar Nov 21 '14 20:11 dborkan

We are going to remove the current userId display in the buddylist. For a large number of users this is showing up as a meaningless @public.talk.google.com address, and also for Facebook users we will likewise only have a numeric id. We don't think displaying a "horse rocket" style string (hashed from the userId) is a good solution to this problem either because it is difficult to explain to users what this string means and makes us look silly.

Also there is some debate among the team as to whether this issue is really a P1 for web store launch. Arguments against this being P1 are:

  • The threat here is only that one of my contacts may impersonate another one of my contacts. Someone who is not already my contact can't do this type of attack. User's of trusted social networks (all our networks prior to video authentication) should be responsible for not adding malicious contacts.
  • All the solutions discussed so far for this only address cases where one of my contacts impersonates another contact AFTER I've first interacted with them in uProxy. For example, we could detect if my friend Bob impersonates my friend Alice after I've initially seen Bob on uProxy as "Bob", but if Bob impersonates Alice before ever signing up for uProxy none of our proposed solutions can detect this.
  • For our initial "trusted social networks" we should be delegating contact verification to those networks and not trying to solve this ourselves. Once we add support for untrusted networks, we will largely resolve impersonation issues by adding video authentication.

dborkan avatar Dec 09 '14 22:12 dborkan

Sad but reasonable.

Probably the best fix longer term is by the SAS-auth + verification appearing in UI, and then storing the name at the time of the SAS-auth and not allowing remote users to edit this after (but presumably allow local user to do so, e.g. like normal contact lists).

On Tue, Dec 9, 2014 at 2:15 PM, dborkan [email protected] wrote:

We are going to remove the current userId display in the buddylist. For a large number of users this is showing up as a meaningless @ public.talk.google.com address, and also for Facebook users we will likewise only have a numeric id. We don't think displaying a "horse rocket" style string (hashed from the userId) is a good solution to this problem either because it is difficult to explain to users what this string means and makes us look silly.

Also there is some debate among the team as to whether this issue is really a P1 for web store launch. Arguments against this being P1 are:

  • The threat here is only that one of my contacts may impersonate another one of my contacts. Someone who is not already my contact can't do this type of attack. User's of trusted social networks (all our networks prior to video authentication) should be responsible for not adding malicious contacts.
  • All the solutions discussed so far for this only address cases where one of my contacts impersonates another contact AFTER I've first interacted with them in uProxy. For example, we could detect if my friend Bob impersonates my friend Alice after I've initially seen Bob on uProxy as "Bob", but if Bob impersonates Alice before ever signing up for uProxy none of our proposed solutions can detect this.
  • For our initial "trusted social networks" we should be delegating contact verification to those networks and not trying to solve this ourselves. Once we add support for untrusted networks, we will largely resolve impersonation issues by adding video authentication.

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/412#issuecomment-66368572.

Lucas Dixon | Google Ideas

iislucas avatar Dec 09 '14 23:12 iislucas

We think we can help guard against contact spoofing by showing a link to the user's profile along with their name and image. This will help differentiate between 2 users with the same name and image, as each user will have a unique link which will lead to their profile page, which will have much more to help distinguish the user than just a numeric ID or a "horse rocket" type string.

@zahoriea - here is a screenshot of the new link included in the buddylist. Any thoughts on the styling? There will be a standard tooltip showing the link when the user hovers over (unfortunately Material Design tooltips don't work here as they don't properly truncate or word wrap and have been resulting in very bad scrollbars). screen shot 2015-04-03 at 3 48 53 pm

dborkan avatar Apr 03 '15 20:04 dborkan

Nice! Thanks for doing this. I would love to hide this in the UI a bit more viewing someone's profile isn't a primary action for users.

Proposal: show the link-out icon only when contacts are expanded. This places the action at the same disclosure of accepting/ignoring a request or offer for feedback, or offering or asking for access (activities where it's important to verify that your contact is someone you trust.)

image

image

I like your tooltip on hover, and think that it will make the action even more clear.

Thoughts?

zahoriea avatar Apr 07 '15 23:04 zahoriea

Looks good, thanks! I just created pull request https://github.com/uProxy/uproxy/pull/1229

On Tue, Apr 7, 2015 at 7:45 PM, Izzie Zahorian [email protected] wrote:

Nice! Thanks for doing this. I would love to hide this in the UI a bit more viewing someone's profile isn't a primary action for users.

Proposal: show the link-out icon only when contacts are expanded. This places the action at the same disclosure of accepting/ignoring a request or offer for feedback, or offering or asking for access (activities where it's important to verify that your contact is someone you trust.)

[image: image] https://cloud.githubusercontent.com/assets/945845/7035977/8d0e68ea-dd43-11e4-82cf-b5d83749d92b.png

[image: image] https://cloud.githubusercontent.com/assets/945845/7036029/e9467936-dd43-11e4-96b8-3da3507f3766.png

I like your tooltip on hover, and think that it will make the action even more clear.

Thoughts?

— Reply to this email directly or view it on GitHub https://github.com/uProxy/uproxy/issues/412#issuecomment-90762405.

dborkan avatar Apr 08 '15 16:04 dborkan