镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

don't reveal users mail adress by default #14959

Closed

Description

@yasuoiwakura

Steps to reproduce

  1. register as a new user
  2. after some months, explore the menu
  3. discover that your mail adress was public to ALL the other cloud users on the same server

Expected behaviour

Private data should not be revealed by default

Make public data available, protect private data.
Source:

  • hacker ethics
  • gdpr

Actual behaviour

Users mail adress is revealed to other users by default

Server configuration

LAMP, Ubuntu 18.04

Nextcloud version: 15.0.5
fresh installl since upgrade from OC failed

Where did you install Nextcloud from: Webclient

List of activated apps:
deactivated ALL Apps - same behavior

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:

```{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.REMOVED.de"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.5.3",
        "overwrite.cli.url": "https:\/\/cloud.REMOVED.de",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "pipe",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "CUSTOMSETTINGSMATTHIAS": "ab hier!!!",
        "default_language": "de",
        "default_locale": "de",
        "force_language": "de",
        "force_locale": "de",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}```

### Client configuration
**Browser:**
IE, FF, Chrome
**Operating system:**

Activity

  1. violoncelloCH commented on Apr 18, 2019

    @violoncelloCH
    Member

    what do you think @nextcloud/server-triage ?

  2. nickvergessen commented on Apr 18, 2019

    @nickvergessen
    Member
  3. violoncelloCH commented on Apr 23, 2019

    @violoncelloCH
    Member

    yes, but contacts means all other users on the same server plus trusted federation servers, doesn't it? I think that's the point of @yasuoiwakura...

  4. yasuoiwakura commented on Apr 23, 2019

    @yasuoiwakura
    Author

    Yes, i see no reason to assume my users would want their mail adress revealed to each other.
    I mean, I cannot see any of the github user's email (not even those who wrote in the same topic) and i guess there is a good reason it is private by default

  5. yasuoiwakura commented on May 1, 2019

    @yasuoiwakura
    Author

    Any idea how to temporary fix or disable this leak? it is a real privacy problem for my users...

  6. yasuoiwakura commented on May 1, 2019

    @yasuoiwakura
    Author

    Updated to NC16, still same problem.

    btw. this information is false, since it claims that only administrators have access to my data:

    https://cloud.domain.tld/index.php/settings/user/privacy

  7. nickvergessen commented on May 1, 2019

    @nickvergessen
    Member

    Datas in this term are your files. The email address is also checked for sharing, so this is more of a general issue with a bigger impact on how all the things are handled and needs some more planing then a quick change on a setting

  8. nickvergessen commented on May 2, 2019

    @nickvergessen
    Member

    Okay I just checked again and I was wrong.
    If the email is set to private, you can not find users by their email address.

    So I guess it boils down to the fact, that you registered (on a public instance) where "everyone on the cloud knows each other" is not a good sensitive default.
    Maybe we should add an option for that, so admins can configure this.

  9. nickvergessen commented on May 2, 2019

    @nickvergessen
    Member

    cc @rullzer @MorrisJobke what do you think about this?

  10. yasuoiwakura commented on May 2, 2019

    @yasuoiwakura
    Author

    hm my current workaround is to <!--hide--> the contact list in the upper right corner.

    imho, users should indeed be able to share files with other users/groups (should be defined by admin) without seeing their email.

  11. added
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on Jun 12, 2019
  12. 22 remaining items

  13. yasuoiwakura commented on Sep 30, 2021

    @yasuoiwakura
    Author

    I'd like this (or the duplicate bug report) to be reconsidered. (see #9638 (comment))

    I really don't mean to be toxic+offtopic, but this issue is a clear reason i stopped using nextcloud and use the former product and never considered using it again :-/

  14. jamasi commented on Oct 23, 2021

    @jamasi

    The issue is not fixed but made worse in Nextcloud 21.

  15. Moini commented on Oct 24, 2021

    @Moini

    @szaimen I see you're able to add and remove tags here. Could you please consider removing the auto-close / stale tag? I think people just missed reacting to it.

  16. demlak commented on Oct 25, 2021

    @demlak

    Ok.. this took me several hours..

    intro:
    besides the fact, that the mailadresses-scope should be default private (workaround here: #14959 (comment)) there is a leak also of those mailadresses, that are marked as private! this is a big fat NO GO!

    Here is my solution:

    1. to hide the addresses from the contacts upper-right-corner, just comment out the EMailProdider:Class, line 88 in https://github.com/nextcloud/server/blob/stable20/lib/private/Contacts/ContactsMenu/ActionProviderStore.php
      as described here: Option to disable showing system email in avatars' contacts menu #23172
    	private function getServerProviderClasses() {
    		return [
    		//	EMailProvider::class,
    		];
    }
    1. to hide EMail-Addresses from the Autocompletion in the share-dialog, assign an empty string to every
      'shareWithDisplayNameUnique' => "", in
      /lib/private/Collaboration/Collaborators/UserPlugin.php and /lib/private/Collaboration/Collaborators/MailPlugin.php

    Now, the only shown mail-adresses are those, that are also shown in your contacts-app.

    UserPlugin.php is responsible for Autocompletion Search-results, that starts with the Searchpattern
    MailPlugin.php is responsible for Autocompletion Search-results, that have the searchpattern anwhere else..

    For example:
    Search pattern: ja
    UserPlugin.php catches:
    Janet
    Janine
    Janice

    MailPlugin.php catches:
    Kolja
    Katja
    Benjamin

    1. Instead of hide every mailadresse, i would like to show those, of users who set their mailadresse to be not-private..

    since i don't know the syntax to get the scope-info of the email-property, i just have a "concept" of this idea.. could anyone help-out for the syntax?

    $mailscope = AccountManager::PROPERTY_EMAIL['scope'];
    shareWithDisplayNameUnique' => !empty($userEmail) && $mailscope !== PRIVAT ? $userEmail : $uid,

    @nickvergessen please reopen this issue, since it is very general and still unfixed.

  17. demlak commented on Nov 9, 2021

    @demlak

    i am a little bit confused about the no-reaction.. it would be nice to get any feedback of others with the same problem.. and/or feedback of devs about this.

    i think i found a good solution that makes the mail-thingy GDPR/DSGVO-complient, where it never was.

  18. Dacit commented on Nov 14, 2021

    @Dacit

    Please re-open, many people have asked this question or opened similar issues in the past.

    @nickvergessen

  19. tschombes commented on Mar 18, 2022

    @tschombes

    This is still an issue with the latest nextcloud version and this is a nightmare. Nextcloud is NOT useable in germany with this issue. Please add an option to disable the users email are visible by default.

  20. jamasi commented on Apr 5, 2023

    @jamasi

    Still an issue for 23.0.12 at least.

  21. sysvwfwsw commented on Sep 14, 2023

    @sysvwfwsw

    And still an issue on 25.0.10

  22. Keyinator commented on Sep 28, 2023

    @Keyinator

    Still an issue on 27.1.2

  23. easyriders commented on Nov 20, 2024

    @easyriders

    Is this fixed?

  24. Moini commented on Nov 20, 2024

    @Moini

    @easyriders For the top bar, yes. However, when I enter the character '@' into the search field for 'sharing', I get to see everyone's mail address.

  25. easyriders commented on Nov 21, 2024

    @easyriders

    Thanks for the answer. @Moini How did you fix it for the top bar and other places?

  26. Moini commented on Nov 22, 2024

    @Moini

    I'm not sure. Is it not the default?

  27. Gogowitsch commented on Nov 28, 2024

    @Gogowitsch

    I just set up a new Nextcloud instance, v29.0.9. I am shocked that leaking email addresses is still the default, both per installation and per user.

    I believe this should be a question in the setup assistant, while creating the admin account. Individual users have no way of disabling this. The "Private" setting is grayed out on the “Personal info” page. It states

    Not available as this property is required for core functionality including file sharing and calendar invitations

    Also, the account_manager.default_property_scope setting doesn’t prevent leaking email addresses.

    Fortunately, there is a kill switch to stop leaking email addresses: under Administration settings » Sharing » Allow username autocompletion in share dialog and allow access to the system address book. It affects more than sharing: It also disables the top bar contact list from being populated. I couldn’t find any leaks for ordinary users. I am happy. 🙂

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions