Skip to content

Make "Download from URL" configurable #13326

Closed

Description

@LukasReschke

The "Download from URL" feature should be configurable and allow at least the following configuration options:

  1. Completely disable this feature
  2. Disallow private IP addresses

Activity

  1. added this to the milestone on Jan 13, 2015
  2. LukasReschke commented on Jan 13, 2015

    @LukasReschke
    ContributorAuthor

    IMHO it would be sane when per default access to all private IP addresses are forbidden and admins would manually need to opt-in. Also loopback addresses should never get resolved.

  3. LukasReschke commented on Jan 13, 2015

    @LukasReschke
    ContributorAuthor

    @jancborchardt FYI – this will be a switch in the config.php most likely.

  4. DeepDiver1975 commented on Mar 2, 2015

    @DeepDiver1975
    Contributor

    I still vote for killing this feature - tooo broken with respect to some issues:

    • content disposition not respected
    • authentication not possible
  5. modified the milestones: , on Mar 2, 2015
  6. LukasReschke commented on Mar 2, 2015

    @LukasReschke
    ContributorAuthor

    That would from a security PoV really be the best option.

    👍 as well.

  7. karlitschek commented on Mar 2, 2015

    @karlitschek
    Contributor

    @jancborchardt @MTRichards What do you think about killing this feature?

  8. LukasReschke commented on Mar 2, 2015

    @LukasReschke
    ContributorAuthor

    Please notice that the current implementation is dangerous and there is not really a good way we can make it behave completely secure for all deployment scenarios. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html for an example, this is exactly the way how apps like Prezi got hacked 🙈

  9. MTRichards commented on Mar 2, 2015

    @MTRichards
    Contributor

    This is the download URL direct feature? I lean towards OK, but ...
    Trying to understand the use case that we can't support anymore.

  10. LukasReschke commented on Mar 2, 2015

    @LukasReschke
    ContributorAuthor

    This is the download URL direct feature?

    Yes. That one:
    screen shot 2015-03-02 at 14 33 50

    Trying to understand the use case that we can't support anymore.

    Downloading warez, a potential DoS vector less, … 🙈

  11. jancborchardt commented on Mar 2, 2015

    @jancborchardt
    Contributor

    I wonder if it’s used at all or understood. If anything it’s a very slim usecase. I’d be ok with removing it. What do you think @owncloud/designers?

  12. MorrisJobke commented on Mar 2, 2015

    @MorrisJobke
    Contributor

    I'm fine with the removal.

    @MTRichards Think of a ownCloud instance that is in an internal net. With this feature you can download stuff from within this internal net. Simple use case: ownCloud in an NAT-ed network. you can access files from behind that NAT router, by using this feature.

  13. MTRichards commented on Mar 2, 2015

    @MTRichards
    Contributor

    @MorrisJobke Thanks!
    @LukasReschke LOL, you made me chuckle. That was quite funny...:)

    I would remove it, I don't think it is a widely used use case.

  14. DeepDiver1975 commented on Mar 2, 2015

    @DeepDiver1975
    Contributor

    I would remove it, I don't think it is a widely used use case.

    furthermore there are more elaborate apps out there afaik - https://apps.owncloud.com/content/show.php/ocDownloader+v2.2?content=150227

    @nickvergessen please open a pr to kill this for oc8.1 - THX

  15. enoch85 commented on Mar 2, 2015

    @enoch85

    Make ocDownloader a recomended app in appstore?

  16. DeepDiver1975 commented on Mar 2, 2015

    @DeepDiver1975
    Contributor

    Make ocDownloader a recomended app in appstore?

    only if it was reviewed and we know it's properly working

  17. enoch85 commented on Mar 2, 2015

    @enoch85

    @DeepDiver1975 Who can make that review and what are the demands for getting an app approved for appstore?

  18. added a commit that references this issue on Mar 2, 2015
  19. LukasReschke commented on Mar 2, 2015

    @LukasReschke
    ContributorAuthor

    I was so free and did it myself quickly: #14652

  20. modified the milestones: , on Mar 2, 2015
  21. locked as resolved and limited conversation to collaborators on Aug 10, 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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions