News for hackers. Stuff that matters.
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by andreasley on Friday January 22, 2021 @05:43AM (#25870450)
We've been using Seafile for two years at my workplace. So far it's been very reliable and much faster than Nextcloud for file transfers. The current drive clients work well, but aren't as polished as Google File Drive Stream, for example. On macOS, I hope they will transition from macfuse.fs to the new FileProvider framework soon.

Seafile's file storage format has the advantage that it's easy to revert a file or folder to some earlier revision, for example after accidentally deleting files.

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by RL_Quine on Friday January 22, 2021 @05:44AM (#25870455)
How do you justify the risk model of the chinese developer?
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by pas on Friday January 22, 2021 @05:56AM (#25870533)
Store things encrypted. (For example I sync my KeePass DB via Seafile.)

Plus as far as I know neither ownCloud nor nextCloud went through a security audit and they are big piles of PHP with a lot more complexity than Seafile. So it's very likely that there are more bugs in phpCloud than in XiFile.

If you want some real security buy a DropBox/GoogleDrive/MSOneDrive subscription, hm?

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by LukasReschke on Friday January 22, 2021 @06:07AM (#25870592)
> Plus as far as I know neither ownCloud nor nextCloud went through a security audit

This is inaccurate. Nextcloud does receive security audits and is in fact also used by quite some security-conscious organizations (to name a few: German Government, Siemens, ...)

There's also a bug bounty program that pays pretty decently considering the company size: https://hackerone.com/nextcloud. (Remote Code Execution = 10k, Auth Bypass = 4k - compare that to rewards that the FAANG pays and you'll see it's not that bad)

> and they are big piles of PHP with a lot more complexity than Seafile

I did a small audit of Seafile years ago and I don't think that argument flies.

For example, they copied https://github.com/django/django/blob/23c612199a8aaef52c3c7e... to https://github.com/haiwen/seahub/blob/b6f8935c0f355cc70145f9... and removed some security-critical checks. They removed the check for the password hasht here. (https://github.com/django/django/blob/23c612199a8aaef52c3c7e...)

Furthermore, the Django secret key was generated as shown at https://github.com/haiwen/seahub/blob/b6f8935c0f355cc70145f9....

``` def random_string(): """ Generate a random string (currently a random number as a string) """ return str(random.randint(0,100000)) ```

That's not really secure and copy-pasting Django core code and then removing security checks ... is shady at best.

Disclaimer: I wrote a significant part of the ownCloud code (https://github.com/owncloud/core/graphs/contributors), then forked it into Nextcloud. After some years I moved to Facebook to do application security there :-)

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by veddox on Friday January 22, 2021 @07:51AM (#25871237)
That the German government (specifically, ITZBund) chose to use Nextcloud is one of the most reassuring things I ever heard about it :D

Thanks for this comment, and your work on {own/Next}Cloud!

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by pas on Friday January 22, 2021 @06:28AM (#25870703)
Oh wow, thanks for the quick reply. I searched for nextcloud audit but haven't found the reports, just docs about the "monitoring and audit" and the "security scan" feature. (I still can't, but maybe that's because these audits/reports are not public, I don't doubt your word.)

The bug bounty is very reassuring!

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by ktpsns on Friday January 22, 2021 @06:32AM (#25870718)
Thanks for these code deeplinks. That's scary condisering seahub. I'm a happy Nextcloud user, thanks for your work!
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by pestaa on Friday January 22, 2021 @07:15AM (#25871003)
Thanks Lukas! It's fun to see people whose code I rely on daily. Best of luck with Gatekeeper!
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by lilSebastian on Friday January 22, 2021 @05:48AM (#25870476)
Curious, since much hardware (including CPUs) is fab'd in China, how do you model this risk?
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by RL_Quine on Friday January 22, 2021 @05:52AM (#25870510)
In my experience I've not found software developed by engineers based in China to be developed with any particular care. It is very common to see trivial backdoors, massive amounts of data collection, and plaintext protocols. For situations where the developer is being security conscious, the language barrier often means that reports of concerns are either ignored or misinterpreted.

It is often the case that software developed outside of China, for devices produced in China is alright, but on the other hand many companies like Honeywell simply contract all of their software development there as well, and it painfully shows. I shouldn't be able to buy a product in 2020 that has a linux kernel from 2012 and multiple remote code execution vulnerabilities just from public CVEs, but the Honeywell Tuxido security system managed it with ease.

Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by lilSebastian on Friday January 22, 2021 @06:35AM (#25870734)
I have experience of the similar software quality issues, however none of this is unique to China, north America, Europe, India, China. My question was specifically related to the hardware most people run, which is often fabd China, given most people take it for granted that this is "safe".
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by RL_Quine on Friday January 22, 2021 @07:43AM (#25871200)
The hardware is obviously suspect as well, but I can only speak for the number of actual backdoors I've been able to find in my own devices. Root shells on random sockets, "accidental" eval() in web UI elements, hardcoded passwords, actual processes just called `backdoor`. I especially liked being able to remove the IPMI password from a SuperMicro board I bought from eBay by making a HTTP request to a "buggy" endpoint that printed the root password back in plaintext.
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by kingosticks on Friday January 22, 2021 @08:35AM (#25871499)
Wouldn't the relevant part of most user's hardware far more likely be manufactured in Taiwan, USA, Singapore or South Korea?
Re:ownCloud Infinite Scale: Go instead of PHP, microservices... by andreasley on Sunday January 24, 2021 @08:58PM (#25898226)
It's always about trade-offs. For our use-case, I trust it well enough to prefer it over something cloud-hosted in another country. But I don't doubt that Seafile contains security holes and I wouldn't be surprised if there were backdoors. But I assume that for quite a lot of the gear I manage, so... :)