News for hackers. Stuff that matters.
Re:OwnCloud Server 8.0 by zimbatm on Monday February 09, 2015 @09:34AM (#9021293)
Unfortunately OwnCloud is fundamentally broken because all "apps" share the same process and have to be written in PHP. The bigger the ecosystem gets, the harder it is going to be to deal with security issues. If OwnCloud wants to become a reference platform for other developers it really has to tackle sandboxing and permissions.
Re:OwnCloud Server 8.0 by amirmc on Monday February 09, 2015 @10:54AM (#9021765)
If we want to do this in a way where everyone can run their own infrastructure then we've got to tackle some of the distributed systems problems. Specifically, life-cycle management of software/apps, how things sync/backup, and issues of identity and connectivity. One method is to take a clean-slate approach and build up a new stack (with its own trade-offs) e.g. Using unikernels as a base http://amirchaudhry.com/brewing-miso-to-serve-nymote/
Re:OwnCloud Server 8.0 by drzaiusapelord on Monday February 09, 2015 @10:08AM (#9021471)
>and have to be written in PHP.

How is this different than other HN beloved products like Drupal or pretty much any CMS? I can't think of any single one that has proper sandboxing. OwnCloud is just a type of CMS really, but instead of managing HTML, it manages all sorts of filetypes.

Re:OwnCloud Server 8.0 by orblivion on Monday February 09, 2015 @01:17PM (#9022658)
I would argue that the security of what one would put in Owncloud is more important, as an individual, than what one would put into Drupal. But you can correct me on that, I haven't really used a CMS.
Re:OwnCloud Server 8.0 by UnoriginalGuy on Monday February 09, 2015 @09:59AM (#9021423)
Just playing devil's advocate, but isn't this true with many CMSs? Most implement "users" (and or groups) either in-house or using the underlying OS, and when it is the underlying OS the CMS needs access to all of the user's files anyway to make cooperation and interoperability work, essentially placing a big bullseye on the CMS system itself.
Re:OwnCloud Server 8.0 by zimbatm on Monday February 09, 2015 @11:05AM (#9021839)
The difference is that OwnCloud is marketed as an operating system and is aimed at holding all the user's personal information. Users who aren't necessarily knowledgeable enough to distinguish trusted and untrusted "applications".

A CMS is usually used by a company and has different threat scenarios. Usually only sysadmins configure and install extensions.

Re:OwnCloud Server 8.0 by mariocesar on Monday February 09, 2015 @10:10AM (#9021486)
It's true and is the reason why so many PHP powered CMS are so insecure, how many times do you hear about a new wordpress exploit?
Re:OwnCloud Server 8.0 by UnoriginalGuy on Monday February 09, 2015 @10:29AM (#9021612)
It really has nothing to do with PHP. Changing the language or framework wouldn't inherently change the design.

e.g. http://www.cvedetails.com/vulnerability-list/vendor_id-26/pr...

Re:OwnCloud Server 8.0 by tankenmate on Monday February 09, 2015 @03:13PM (#9023375)
Having said that PHP does make it very hard to run each interpreter process as the user it is doing work on behalf of. Some of the best systems out there run each user's process under it's own uid:gid (or equivalent), and each user has their own filespace and/or database. Obviously this pushes the separation issues down to the OS kernel rather than in the app, but most widely used OS kernels get at least an order of magnitude more, most of the time several orders more, testing for these user separation security features. NIH, re-inventing the wheel and all that.
Re:OwnCloud Server 8.0 by drzaiusapelord on Monday February 09, 2015 @10:32AM (#9021626)
how many times do you hear about a new linux kernel exploit?

Pretty much everything is insecure. Writing things in not-php isn't the magical fix you seem to think it is.

Re:OwnCloud Server 8.0 by moe on Monday February 09, 2015 @11:44AM (#9022081)
What an absurd comparison...

The linux kernel has 16 million lines of code, Wordpress has 300k.

Yet Wordpress[1] has had nearly as many security vulnerabilities as the kernel[2]; 194 vs 257 exploits.

Wordpress is one of the most exploited software packages ever created. It is the textbook example of bad programming.

Just mentioning the kernel when talking about Wordpress is pretty ridiculous.

[1] http://www.cvedetails.com/vulnerability-list/vendor_id-2337/...

[2] http://www.cvedetails.com/vulnerability-list/vendor_id-33/pr...

Re:OwnCloud Server 8.0 by jordanlev on Monday February 09, 2015 @12:23PM (#9022343)
I am no fan of wordpress, and I agree that it is a textbook example of bad programming... but it is also a textbook example of good community management and success at empowering non-programmers to have their own web presence. And I believe that the amount of exploits has as much to do (if not moreso) with its sheer popularity as it does with the code.
Re:OwnCloud Server 8.0 by maratd on Monday February 09, 2015 @12:43PM (#9022459)
> Wordpress is one of the most exploited software packages ever created.

Hyperbole much?

It's one of the most popular software packages installed on the web. It's not surprising it has a lot of eyes on it.

Re:OwnCloud Server 8.0 by moe on Monday February 09, 2015 @01:10PM (#9022619)
This has nothing to do with eyes.

Dozens of other packages have a much larger install base than Wordpress.

Wordpress has 32(!) CVE's tagged with "Exec Code" (remote code execution) alone. The last one a mere 6 months old.

If you know another project that comes even remotely close to that then I'd be genuinely curious which one that would be?

Re:OwnCloud Server 8.0 by maratd on Monday February 09, 2015 @02:15PM (#9023028)
> This has nothing to do with eyes.

Yeah, it does. You can write a crappy piece of software that nobody uses and because nobody has interest in it, it has no known security issues! Big deal.

I'm not saying that Wordpress has a great code-base or that there's no correlation, but that popularity is a substantial variable in that equation.

> Dozens of other packages have a much larger install base than Wordpress.

Name one web based software suite that's installed more often.

Re:OwnCloud Server 8.0 by moe on Monday February 09, 2015 @02:26PM (#9023101)
Name one web based software suite that's installed more often.

What does "web based" have to do with anything?

Do you think SSH, Postfix, nginx, Apache & Co don't get the same amount of scrutiny? Each of them has a significantly larger install base than Wordpress.

Re:OwnCloud Server 8.0 by maratd on Monday February 09, 2015 @02:38PM (#9023169)
> Do you think SSH, Postfix, nginx, Apache & Co don't get the same amount of scrutiny?

NO! Because they're behind a firewall AND each operates on a very restricted protocol! It has nothing to do with quality of codebase. If Wordpress was behind a firewall and only restricted to text-based input per spec, you wouldn't find many vulnerabilities either.

> What does "web based" have to do with anything?

Because "web based" is the client. It has to be flexible and with flexibility, comes complexity, and with complexity come exploits.

Try getting a CRM going on Postfix or all the myriad other things Wordpress is being used for.

Re:OwnCloud Server 8.0 by moe on Monday February 09, 2015 @03:03PM (#9023311)
NO! Because they're behind a firewall

Huh? SSH, Postfix and nginx are usually not firewalled.

Because "web based" is the client. It has to be flexible and with flexibility...

If "flexibility and complexity equal vulnerability" then why does the linux kernel, 53x the size of Wordpress and a tad more complex than a CMS, not have about 53x more exploits?

And why does no other CMS system or framework come even close to the number of critical vulnerabilities in Wordpress?

Re:OwnCloud Server 8.0 by maratd on Monday February 09, 2015 @03:26PM (#9023465)
> And why does no other CMS system or framework come even close to the number of critical vulnerabilities in Wordpress?

Because no other CMS or framework has as many deployments. Not even close.

> If "flexibility and complexity equal vulnerability" then why does the linux kernel, 53x the size of Wordpress and a tad more complex than a CMS, not have about 53x more exploits?

Because it's behind a firewall. Do I really need to keep repeating myself?

If I could send remote commands to your kernel, don't you think there would be a few more exploits kicking around?

> Huh? SSH, Postfix and nginx are usually not firewalled.

If you're not restricting access to SSH using a firewall, then you're a bigger idiot than I thought you were.

Re:OwnCloud Server 8.0 by cthalupa on Monday February 09, 2015 @04:12PM (#9023776)
>If you're not restricting access to SSH using a firewall, then you're a bigger idiot than I thought you were.

I'm not sure name calling is really appropriate here. Yes, firewalling stuff is certainly appropriate, particularly administrative things, but key based auth is pretty secure, firewall or no.

You're also nitpicking on a single point when he mentions other things that are definitely not usually firewalled. Your mail and web servers are generally open to the world, regardless of whether or not SSH is.

Re:OwnCloud Server 8.0 by xorcist on Monday February 09, 2015 @03:12PM (#9023369)
If you think that sshd gets restricted to "text-based input per spec", you should get out more. Or at least check your logs more.
Re:OwnCloud Server 8.0 by maratd on Monday February 09, 2015 @03:36PM (#9023527)
My logs are clean. Because sshd is restricted to specific ip ranges. Ever hear of a firewall? Apparently the other guy on this thread hasn't either.
Re:OwnCloud Server 8.0 by hbbio on Monday February 09, 2015 @11:56AM (#9022166)
It's still a bit ahead of launch, but we are preparing an open source alternative to OwnCloud (that also includes messaging platform) that acts as an OAuth server for apps/plugins and an API and does not impose all apps to be implemented in the same language. We are using a NodeJS runtime, but the code is generated using a strongly statically typed language, Opa.

Source code is not yet published, will be AGPL.

Docker containers: https://github.com/MLstate/PEPS

Re:OwnCloud Server 8.0 by atoponce on Monday February 09, 2015 @02:03PM (#9022948)
> It's still a bit ahead of launch, but we are preparing an open source alternative to OwnCloud

OwnCloud is licensed under the AGPLv3. Curious why you think it's not Open Source Software.

Re:OwnCloud Server 8.0 by bestham on Monday February 09, 2015 @03:55PM (#9023649)
FreeBSD is an open source alternative to Linux. Not saying that Linux is closed source.
Re:OwnCloud Server 8.0 by hbbio on Monday February 09, 2015 @02:09PM (#9022984)
Was not speaking about OwnCloud, but PEPS which is going to be AGPLv3 in a few days.
Re:OwnCloud Server 8.0 by pbhjpbhj on Monday February 09, 2015 @10:55AM (#9021771)
Is there a better alternative to OwnCloud that doesn't have similar flaws?

I'm not being sarcastic, it's fine to say it's broken but that doesn't really make a difference if there are still no better alternatives!?

Re:OwnCloud Server 8.0 by vertex-four on Monday February 09, 2015 @11:03AM (#9021825)
Sandstorm, a platform which allows users to run arbitrary applications on a server in a secure sandbox. Of course, OwnCloud is at version 8 and Sandstorm is still working out its permissions UI.
Re:OwnCloud Server 8.0 by jrochkind1 on Monday February 09, 2015 @11:44AM (#9022084)
I think they've got different goals.

My impression OwnCloud aims to be a replacement for "the google suite" (not search, but mail, docs, calendar, etc) -- it's really focused at the app layer. I think this is appropriate and there is a need for this.

There's also a need for "a platform which allows users to run arbitrary applications on a server in a secure sandbox", and certainly you can hypothetically build what OwnCloud is aiming at on such a platform. But it's going to take a lot more time and be harder to get right and be reliable and be easy to install and run.

I think OwnCloud is trying to be as easy to install and run as possible, to get a replacement for the google suite wwith apps that work as well as possible and are as easy to use as possible. I think this is a good goal, and they are making reasonable choices toward accomplishing that goal. I am not sure how well they've succeeded.

Re:OwnCloud Server 8.0 by ocdtrekkie on Monday February 09, 2015 @02:50PM (#9023231)
I've been moving my Drive sheets over to EtherCalc on Sandstorm and all of my new documents I write on Etherpad for Sandstorm. Draw.io also just released for Sandstorm, which is one of Google Drive's original third party apps.
Re:OwnCloud Server 8.0 by vertex-four on Monday February 09, 2015 @11:52AM (#9022138)
I believe the point of Sandstorm is to allow people to install mail/docs/calendar apps as simply as possible. It already has multiple document editors ported.

To install apps into Sandstorm, you literally just click on a link - Sandstorm will manage grabbing the app and installing it for you. Sandstorm itself is a self-contained daemon that can run on any Linux server (and, at some point, there'll be an ISO to install an auto-updating Linux with Sandstorm on it).

Re:OwnCloud Server 8.0 by orblivion on Monday February 09, 2015 @01:14PM (#9022646)
I think Sandstorm in principle is the sort of thing that would run and deploy Owncloud. It doesn't happen to have it in its list of apps at the moment. Similarly there's indieboxproject.org, which has a lot fewer apps, but it does support Owncloud.
Re:OwnCloud Server 8.0 by ocdtrekkie on Monday February 09, 2015 @02:51PM (#9023243)
The issue there is that ownCloud and Sandstorm share a lot of goals and functionality. Both are meant to be app platforms in a respect. And both are meant to organize your personal data. Since Sandstorm wants every file to be a granular document, putting the entirely of ownCloud in a file would be kinda odd. It'll likely happen sooner or later though.
Re:OwnCloud Server 8.0 by hbbio on Monday February 09, 2015 @02:08PM (#9022979)
Shameless plug, but we use strong static typing to implement PEPS:

https://github.com/MLstate/PEPS

(will be open source AGPLv3, release this month)

Re:OwnCloud Server 8.0 by davidb_ on Monday February 09, 2015 @01:50PM (#9022871)
The only feature it has is file sharing, but I quite like Seafile: http://seafile.com/en/home/
Re:OwnCloud Server 8.0 by orblivion on Monday February 09, 2015 @01:15PM (#9022651)
For file syncing, this came up on hacker news once upon a time: http://syncthing.net/
Re:OwnCloud Server 8.0 by biokoda on Monday February 09, 2015 @01:24PM (#9022712)
An easy to use and powerful alternative is: http://www.emitcloud.com
Re:OwnCloud Server 8.0 by finalight on Monday February 09, 2015 @10:17AM (#9021526)
wordpress is in php

wikipedia is in php

facebook is in php

flickr is in php

photobucket is in php

need i say more?

Re:OwnCloud Server 8.0 by Spooky23 on Monday February 09, 2015 @10:26AM (#9021590)
> wordpress is in php

That pretty much makes the point. 194 vulnerabilities in Wordpress with CVEs in 2014.

http://www.cvedetails.com/vulnerability-list/vendor_id-2337/...

Re:OwnCloud Server 8.0 by pbhjpbhj on Monday February 09, 2015 @10:54AM (#9021763)
That list appears to include CVE going back to 2006 at least. I count 17 in 2014, the highest rated of which is an arbitrary code exectution (CVE-2014-5203) rated 7.5.

Not sure number of disclosed flaws is a good metric to look at, whether it's high or low.

Re:OwnCloud Server 8.0 by IshKebab on Monday February 09, 2015 @02:15PM (#9023030)
Arbitrary code execution is pretty damn bad. Anyway he wasn't just counting vulnerabilities. Wordpress is renowned for its terrible security (or plugins with terrible security often).
Re:OwnCloud Server 8.0 by pbhjpbhj on Monday February 09, 2015 @07:55PM (#9024771)
I avoided making any value judgement on purpose - you can't really do that off-the-cuff. Looking at the reports (linked here, [0]) it concerns hash checks on serialised widgets. The apparent vulnerability was reported by the Wordpress security team and reported as being hard to actually make work - I can't find a PoC or any actual exploit reports. It seems based on [1] that a fix was submitted 2 months before the report and made available to automatic updaters a few days prior (? I'm not sure how the reporting dates and such work here really, on a superficial view that's right though the bug is 2014-08-13 and the fix 2014-06-08 with the report of the update [2] coming 2014-08-06). So, whilst yes an arbitrary code execution is severe one that is fixed before it's made public and without any clear way to exploit it is perhaps less of an issue than it first appears. But then of course the number of installs mean you can very likely find vulnerable installs in the wild even today.

TL;DR simple statistics don't really seem to work well in providing a proper view of comparative levels of security of web apps.

[0] http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-5203

[1] https://core.trac.wordpress.org/changeset/29389

[2] https://wordpress.org/news/2014/08/wordpress-3-9-2/

Re:OwnCloud Server 8.0 by iancarroll on Monday February 09, 2015 @10:52AM (#9021759)
I would argue it is the developer writing the code, not the language it's written in.
Re:OwnCloud Server 8.0 by frabcus on Monday February 09, 2015 @11:39AM (#9022055)
Tools can help developers write safer code.

Yes, a good developer can write safe code in bad environment. But an average developer writes safer code in a good environment.

Re:OwnCloud Server 8.0 by benbristow on Monday February 09, 2015 @01:06PM (#9022586)
I thought Facebook made their own PHP fork type of language.
Re:OwnCloud Server 8.0 by adrusi on Monday February 09, 2015 @03:43PM (#9023571)
yeah, to say Facebook is written in PHP is misleading. Facebook was originally written in PHP. Now it runs on the HHVM, which foregoes supporting the dangerous parts of the PHP stdlib, and offers better performance (fixing the two biggest problems with PHP). As I understand, much of their new code is written in Hack which interoperates with their legacy PHP code but supports gradual typing and other safety features (and some niceties).

Facebook is written in PHP, but they have invested a lot into making their PHP not be PHP.

Re:OwnCloud Server 8.0 by regularfry on Monday February 09, 2015 @10:26AM (#9021593)
Yes.