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

owner's email is leaked when we PROPFIND a Public Share #34342

Closed
davitol opened this issue Jan 31, 2019 · 3 comments · Fixed by #34348
Closed

owner's email is leaked when we PROPFIND a Public Share #34342

davitol opened this issue Jan 31, 2019 · 3 comments · Fixed by #34348
Assignees
Labels
feature:persistent-locking p2-high Escalation, on top of current planning, release blocker Type:Bug
Milestone

Comments

@davitol
Copy link
Contributor

davitol commented Jan 31, 2019

Steps to reproduce

  1. Create a file
  2. share the file via public link to an other user
  3. Lock the file
  4. PROPFIND the share.
    curl -u CZDxBNptzQTw9jV: -X PROPFIND http://10.40.40.222:9681/public.php/webdav/ -d "<?xml version='1.0' encoding='UTF-8'?> <d:propfind xmlns:d='DAV:'> <d:prop><d:lockdiscovery/></d:prop> </d:propfind>" | xmllint --format -

Expected behaviour

owners email should not be shown in the response

Actual behaviour

The email is leaked

screen shot 2019-01-31 at 11 26 09

Logs

ownCloud log (data/owncloud.log)

Note: We should hide it as an exception of the RFC, that says:

14.17.  owner XML Element
   Name:   owner
   Purpose:   Holds client-supplied information about the creator of a
      lock.
   Description:   Allows a client to provide information sufficient for
      either directly contacting a principal (such as a telephone number
      or Email URI), or for discovering the principal (such as the URL
      of a homepage) who created a lock.  The value provided MUST be
      treated as a dead property in terms of XML Information Item
      preservation.  The server MUST NOT alter the value unless the
      owner value provided by the client is empty. 
@davitol davitol added Type:Bug p2-high Escalation, on top of current planning, release blocker labels Jan 31, 2019
@davitol davitol added this to the QA milestone Jan 31, 2019
@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #21598 (Public share fails when master key is enabled), #11951 (Emit activity when sending a share email), #2846 (Slow PROPFIND on Shared folders), #5719 (sending share email link fails), and #18450 (PROPFIND on federated share takes long).

@phil-davis
Copy link
Contributor

Note: this will also leak display name (if set to something interesting) and/or username (which often reflects the real name of the user).
Probably just do not supply this owner field when the propfind is from "the public"

@PVince81
Copy link
Contributor

Fix is here #34348

@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature:persistent-locking p2-high Escalation, on top of current planning, release blocker Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants