Skip to content

Privacy enhancements for contacts menu聽#5107

Description

@MariusBluem

Follow up of #4656:

  • possibility to disable contacts menu from config.php? 馃

  • If username-autocompletion is disabled, the contacts-menu should never ever show local users:

bildschirmfoto 2017-05-05 um 10 04 08

  • Groups, which are excluded from sharing should not see local users at all:

bildschirmfoto 2017-05-05 um 10 04 16

  • If sharing is restricted to users own groups, he should only see contacts from his groups:

bildschirmfoto 2017-05-05 um 10 04 38

We may also want to overthink the federation lookup-settings, since they could be also used for contacts-menu on user-side: 馃 @schiessle
bildschirmfoto 2017-05-05 um 10 08 29

@ChristophWurst

Activity

  1. added this to the Nextcloud 13 milestone on May 25, 2017
  2. LEDfan commented on Jul 2, 2017

    @LEDfan
    Member

    Hi. In the JSXC app there are also requests for such restrictions (e.g. jsxc/jsxc#306). For the best UX I think it's very important that the implementation is the same.

    How should this be implemented in the Chat app?

    • "Groups, which are excluded from sharing should not see local users at all" so this does also mean they can't Chat?
    • "If sharing is restricted to users own groups, he should only see contacts from his groups" so these users can only Chat with users in their own group.

    (Note that this still is important even if the contacts menu and roster will by merged (nextcloud/jsxc.nextcloud#21), because otherwise users could manually start a conversation)

  3. zeigerpuppy commented on Aug 3, 2017

    @zeigerpuppy

    This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY.
    At the moment, autocomplete really makes a big security hole revealing users (ands their email addresses!) to each other

  4. ebogaard commented on Aug 9, 2017

    @ebogaard

    As all group-/autocomplete-related issues are pointing to this issue, I'll add my findings when using 12.0.1 here in relation to the admin-option: "Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered."

    1. This option seems to have an effect on both searching in the contacts menu and when sharing files. When disabling this option:
      1. The contacts menu doesn't show anyone (this is unexpected)
      2. You can only share with another user if you type the full username (this is expected)
    2. As coined in other comments, when enabled, the autocomplete should be limited to users you're in a group (any group) with:
      1. when sharing for the contacts menu
      2. but also in the contacts menu

    Quick update: PR 5107 @ #5585 seems to fix part 2.ii, but not 2.i or either of the issues below 1..

  5. heinrichmartin commented on Aug 13, 2017

    @heinrichmartin

    @ebogaard, there is another aspect:
    1.iii. The user pop-up menu (e.g. in the Activity app) doesn't show the email-to action (this is unexpected)

    1.i and 1.iii should come in separate settings (separate from username autocompletion). Actually, my usecase is not about exposing usernames but email addresses only.

    I just learned that users can hide their email address from others, but this is not the default. I.e. when an admin creates a user with his email address (to send the welcome message), then this email address is exposed immediately until the user logs in and changes the privacy setting. Shall I open another ticket for this issue?

  6. LEDfan commented on Aug 16, 2017

    @LEDfan
    Member

    @ebogaard

    1. This option seems to have an effect on both searching in the contacts menu and when sharing files. When disabling this option:
      1. The contacts menu doesn't show anyone (this is unexpected)

    Why is this unexpected? As I see it the Contacts menu is meant as the start-point for Collaboration (Sharing, E-mailing, Chatting ... ) and we want the options to limit and control sharing to have the same effects on the other forms of collaboration. I agree the options should be renamed then a bit. See e.g. #4656 (comment)
    cc @MariusBluem @jancborchardt @ChristophWurst this POV is correct right?

  7. LEDfan commented on Aug 16, 2017

    @LEDfan
    Member

    Another issue I was facing: shouldn't the Groups, which are excluded from sharing should not see local users at all option also make sure the users which are excluded doesn't show up in the Contacts menu? Since these users can't Share/Collaborate it wouldn't be ideal to show them in the Contacts menu, since a not excluded user then can share/collaborate with them.

  8. ebogaard commented on Aug 16, 2017

    @ebogaard

    @LEDfan

    Why is this unexpected?

    This is unexpected for two reasons:

    1. When autocomplete is enabled, you get a list of contacts before you even start typing in the contacts menu. If you disable this option, no contacts are shown. If that's correct (which I think it is), the configuration option should then also read something like: "don't show/suggest any contacts in the contacts menu". But then a better description ;-)
    2. If you disable this option, no contact is shown, even when you type in the full name. This differs from the way it works when sharing files/folders: there you get to see the user if you type the full name.

    If I think of it: if you only look at the contacts menu, the disable autocomplete-option should actually read "Disable contacts menu".

  9. jancborchardt commented on Aug 21, 2017

    @jancborchardt
    Member

    This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY.

    @schiessle @blizzz @LukasReschke can you look at this? All the cases noted here should be integrated in the existing options.

  10. blizzz commented on Aug 29, 2017

    @blizzz
    Member

    This is really essential to address. Users should be able to look up and autocomplete users in their groups and their groups ONLY.

    @schiessle @blizzz @LukasReschke can you look at this? All the cases noted here should be integrated in the existing options.

    Depending on the sharing options. There you can limit it to groups only. I would not restrict it to this by default, since a group structure is not necessary and the default experience would appear broken ("I cannot interact with anyone!").

  11. jimbowarrior commented on Aug 30, 2017

    @jimbowarrior

    even if you limit share to a group, you can see all contacts

  12. 13 remaining items

  13. LEDfan commented on Oct 4, 2017

    @LEDfan
    Member

    Hi @ixmann99 I just tested stable12 and can confirm this is solved.

    But you have to disable this listing of Contacts outside of your groups, To do this:

    1. click the gear icon
    2. click admin
    3. go to sharing in the left bar
    4. click Restrict users to only share with users in their groups
    5. click Exclude groups from sharing and fill in any groups you don't want to show up in the Contacts menu
    6. done
      schermafbeelding 2017-10-04 om 08 26 00

    For reference is also OwnCloud suggesting years back (google it) that groups is suggested to be used to completely isolate business. It would be strange to do something completely different here.

    There are two main uses cases for groups: enable collaboration and to completely isolate business, there is no good default for this IMO.

    Another thing is that it doesn't do anything (if this is by intent and developer really wants users to search outside your goup). You can search in contact, but when you click them, nothing happens.

    That's because you don't have an app enabled which uses this feature (Email, chat etc).

  14. ixmann99 commented on Oct 10, 2017

    @ixmann99

    Hi @LEDfan

    Number 4. is already checked in my installs. This is so important to me that I have both tested v12 in Softaculous one-click-install and through full blown mysql-install/setup on two dedicated boxes (Centos). The contact menu (with no-clickable names and groups outside your group) still appear unless you ment to say you have re-packed v 12 stable the last days with the fix. If that is the case, I haven't tested it yet.

    Number 5. destroys crucial functionality so that no users can share anything - not even with their own group. Hardly a solution or even a workaround. See picture below, demonstrates that 4. still is showing and that 5. is destroying the share-function both for groups and people in same group.

    BTW: The users displayed in the Contact-menu belongs to other groups, not the current user I'm logged in as/belong to.

    screen2

  15. lamixer commented on Oct 23, 2017

    @lamixer

    Hello:

    I just realised today that any user on my server can see the name and email address of any other user! Wow, that is a major problem for me. I use my server to share files with clients and it is not appropriate for clients to see a list of my other clients --- AND THEIR EMAIL ADDRESSES!

    I'm not sure when this started, NC12 I guess. I'm on 12.0.3 (I think) and I have the Contacts app disabled. Is there a fix coming for this? Did I miss a setting somewhere that will stop it? Can I modify a file to fix it?

    At present it seems the only solution is to assign fake names to everyone and delete the email addresses!

  16. andrimont commented on Oct 25, 2017

    @andrimont

    You can manage in the settings (admin) to hide ALL the contacts.
    screenshot 2017-10-25 08 36 56

    But every time that you want to share a link, you have to type the exact user name.

    screenshot 2017-10-25 08 41 01
    screenshot 2017-10-25 08 41 47

    Also ThomasMarx suggested to hide the dangerous menu with CSS :
    https://help.nextcloud.com/t/why-any-user-can-view-all-the-contacts-belonging-to-other-groups/22642/4

  17. xshadow commented on Nov 16, 2017

    @xshadow

    The App Circles does not honour "Allow username autocomplementation in share dialog ..." setting! If Circles enabled and you add a new circle and you click on add a member it will propose usernames to you.

  18. blizzz commented on Nov 17, 2017

    @blizzz
    Member

    @xshadow please open a bug at the circles app https://github.com/nextcloud/circles

  19. xshadow commented on Nov 17, 2017

    @xshadow

    I already did: nextcloud/circles#152 :)

  20. BornToBeRoot commented on Dec 6, 2017

    @BornToBeRoot

    The sharing dialog still leaks data in 12.0.4 / daily

    When I type in a single letter, I get a list of people with whom I'm not in a group.

    image

    My settings...

    image

    Users with whom I am in a group are shown first, but the others are also displayed.

  21. jimbowarrior commented on Dec 6, 2017

    @jimbowarrior

    same issue !!!

  22. xshadow commented on Dec 6, 2017

    @xshadow

    Did you uncheck the option, in tab sharing?:

    "Allow username autocompletion in share dialog. If this is disabled the full username needs to be entered."

  23. BornToBeRoot commented on Dec 6, 2017

    @BornToBeRoot

    If I disable the option, I think it works correctly.

    But it should work even if the option is enabled...

  24. blizzz commented on Dec 7, 2017

    @blizzz
    Member

    Please open a new issue. I lock conversations here, because the original issue is dealt with. Any new issue needs a new report.

  25. locked and limited conversation to collaborators on Dec 7, 2017
  26. jospoortvliet commented on Dec 13, 2017

    @jospoortvliet
    Member

    Just mentioning #7428 as the follow-up from @BornToBeRoot

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions