Skip to content

OC\Server->getAppFolder() #10767

Closed
Closed

Description

@tomneedham

Steps to reproduce

  1. Use OC\Server->getAppFolder();

Expected behaviour

Gets some folder the app can use for storing data, outside of a user namespace.

Actual behaviour

Returns a folder in the current user namespace.

See: https://github.com/owncloud/core/blob/master/lib/private/server.php#L299

This can result in username collisions. For example if a user is called 'news' and the news app uses getAppFolder(), then data would be stored in the users' folder. This will and does break things.

Somehow we need a folder that the app can use, outside of the user namespace.

@MorrisJobke @karlitschek @icewind1991

Activity

  1. modified the milestones: , , on Sep 3, 2014
  2. added a commit that references this issue on Sep 3, 2014
  3. modified the milestones: , on Sep 15, 2014
  4. 12 remaining items

  5. BernhardPosselt commented on Dec 10, 2014

    @BernhardPosselt
    Contributor

    PS: is actually a security issue because you can force CSRF in the news app. And I dont really have a good way to deal with that other than storing everything in the database

  6. BernhardPosselt commented on Dec 10, 2014

    @BernhardPosselt
    Contributor

    Apart from that you dont know what apps might store.

  7. LukasReschke commented on Dec 10, 2014

    @LukasReschke
    Contributor

    PS: is actually a security issue because you can force CSRF in the news app. And I dont really have a good way to deal with that other than storing everything in the database

    Well - users can only write into the /files/ subfolder of the view. So that should not be really exploitable at all.

  8. LukasReschke commented on Dec 10, 2014

    @LukasReschke
    Contributor

    (though it depends on the implementation of the app - admittedly, and the API is just wrong)

  9. modified the milestones: , backlog on Jan 31, 2015
  10. ghost closed this as completedon Sep 17, 2016
  11. lock commented on Aug 3, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  12. locked as resolved and limited conversation to collaborators on Aug 3, 2019
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions