Readit News logoReadit News
hmsimha commented on CryptPad: An Alternative to the Google Suite   cryptpad.org/... · Posted by u/ColinWright
ldubost · 9 months ago
I'm the CEO of the company developing CryptPad.

Our main promise to our users is that server operators cannot read the users data.

About code alteration attacks, we have mentioned them here in an article exposing ways to use CryptPad in secure ways https://blog.cryptpad.org/2024/03/14/Most-Secure-CryptPad-Us...

I won't respond in detail, at least today, to all your criticism of our work but I will say two things:

CryptPad might not be at the level of privacy or security you want (which one do you want BTW ?), but with such discourse you are sending users to stay handling their data on Google which seems to be the opposite of what you seem to want. We will of course consider on our end that CryptPad greatly enhances privacy and security compared to the situation where everybody's data is in clear at Google or Microsoft.

You mentioned " I did share all of the above with the CryptPad team, and was told they don't intend to address the above issues". If you can dig out our response it would be helpful ? At least my position as CEO is that we intend to solve the issues we can solve with the funding we have. As an example, we have always been interested in finding a solution to the "code attack". However the desktop app or code signing does not fully solve the issue as you still need to trust who builds the desktop app or signs the code, even when signed. Full trust requires audit of the code at every change. Can you name me one app that you can fully trust ? Have you audited it ?

I'm not saying improvements cannot be done and we'd love to do a desktop app but we have to choose our battles. We would still have to see if people install and use it ? Signal is a mobile app.. How many have it on their computer ? How many use slack instead ? (When a billionaire gives 100M$ to CrytpPad, we'll be happy to have our choices challenged compared to those of Signal). If one is listening our OpenCollective is here https://OpenCollective.com/cryptpad

We'd love to do more both for privacy and security and ease of use, but for that we need more funding.

Our belief is that privacy and security will be won again on the Internet step by step by getting users to any non BigTech tools including CryptPad and then improve them step by step. If we have the users, we have higher chances to have the funding to improve the tools.

Your vision seems to be more extreme and would likely fail to bring anybody to such a platform as it would lack ease of use (at least with the level of funding we have).

Until now, your criticism is not helping getting the users out of Google or Microsoft.

Ludovic, CEO of XWiki SAS

hmsimha · 9 months ago
Thanks for the response.

So to be clear, for very specific purposes I'm thinking of, I don't know that it's even better for users to use Cryptpad (without document passwords) than to use Google, etc, that's how bad it is.

This is conjecture on my part, but I'm assuming a user information request which asks for all of a user's cloud documents is considered broader than a request for a user's browser URL history scoped to one URL, and therefore the former is less likely to be granted, even though the latter can grant access to all of the cryptpad documents a user has accessed via share link.

And even if the above conjecture doesn't hold, the latter request would be much more likely to reveal sensitive information, which is why I think it's so dangerous that nation-state actors can access e.g. Chrome Users' cryptpad documents at least as easily as those same users' Google documents.

> CryptPad might not be at the level of privacy or security you want (which one do you want BTW ?), but with such discourse you are sending users

Ideally both, and to be clear, I'm recommending people who need secure document collaboration to use cryptpad only with document passwords. Even though I'd really like to be able to recommend Cryptpad without that caveat, I think we can all agree Cryptpad with a password is probably going to be more secure from third-party access than Google Docs.

> You mentioned " I did share all of the above with the CryptPad team, and was told they don't intend to address the above issues". If you can dig out our response it would be helpful ? At least my position as CEO is that we intend to solve the issues we can solve with the funding we have. As an example, we have always been interested in finding a solution to the "code attack". However the desktop app or code signing does not fully solve the issue as you still need to trust who builds the desktop app or signs the code, even when signed.

It was ticket 9SNPEQVkca if you're interested. I did offer some ideas on mitigating extension-based exfiltration attacks and server compromise, though your team may have already had some similar ideas in the past.

I completely understand the issues of funding. The nice thing about Cryptpad being an open source project is that community members such as myself can also make contributions towards improvements, though the roadmap still lives and dies with the company, because people generally aren't going to work on features/fixes that maintainers won't merge.

The signing issue is a fair one also. The fact is coordinating releases for extensions, desktop apps, mobile apps adds a lot of work that might be prohibitive with current resources. Mobile app stores can also be annoying gatekeepers. At least publishing apps as open source makes it so users can build their own version at any point if they'd like, and then actual version updates could be fewer and further between.

> Full trust requires audit of the code at every change. Can you name me one app that you can fully trust ? Have you audited it ?

I mean trust is really something we grant in degrees. But I do often look at software I use, and that's how I came to recognize the issues with Cryptpad I ended up reporting.

> Signal is a mobile app.. How many have it on their computer ?

I realize there are many mobile-only users, but among the people I know. it's very common to primarily use the Desktop app. Of course, their whole device syncing story opened up some issues, so...[1]. But I do tend to agree with them that delivery as a traditional server-hosted web app opens up additional avenues for exploit which the app distributor can't mitigate against. Perhaps these will be mitigated with updates to the CSP and resource integrity standards in the future, but right now there is more control over Desktop apps

> (When a billionaire gives 100M$ to CrytpPad, we'll be happy to have our choices challenged compared to those of Signal). If one is listening our OpenCollective is here https://OpenCollective.com/cryptpad

I would love to see more funding for Cryptpad, and Signal for that matter. Both could really use bug bounties also.. can those be crowd sourced?

> Our belief is that privacy and security will be won again on the Internet step by step by getting users to any non BigTech tools including CryptPad and then improve them step by step. If we have the users, we have higher chances to have the funding to improve the tools.

> Your vision seems to be more extreme and would likely fail to bring anybody to such a platform as it would lack ease of use (at least with the level of funding we have).

Signal has sacrificed ease of use in favour of security by refusing to release a web app for some time.. they're doing pretty OK in terms of number of users. I think it's also fine to choose a different balance and favour ease of use more, but concessions to security based on your team's priorities should at least be acknowledged.

> Until now, your criticism is not helping getting the users out of Google or Microsoft.

My criticism of Cryptpad is intended to raise awareness of the issues, so that users and prospective users can make more informed decisions about what technologies are appropriate for their concerns

And honestly if people are turned off of using cryptpad because of an issue I'm highlighting, that's also an indication of what needs to be improved to win those users back.

[1] https://www.bleepingcomputer.com/news/security/russian-phish...

hmsimha commented on CryptPad: An Alternative to the Google Suite   cryptpad.org/... · Posted by u/ColinWright
ldubost · 9 months ago
Your last paragraph is quite insulting to the work we do, suggesting intention to trap people ? Did I read this right ?

I'm not really sure i want to continue the conversation unless you retract this. Our team is working hard on many fronts and does not deserve to be treated like that.

If you believe it's critical that the "link situation" be resolved, where is the pull request, or even the specification of the necessary change ?

Ludovic

hmsimha · 9 months ago
I think the work you've done with cryptpad, while impressive on many levels and, I'm assuming, motivated by a desire to make secure document collaboration more accessible, is actually putting people at increased risk due to how bad this issue with the share URLs is.

I attempted to disclose the issue responsibly (in other words, not as a github issue), and urged you to make passwords mandatory for documents, or at least default with a prominent warning displayed for users foregoing the password. The response I received indicated that Cryptpad didn't consider this to be a vulnerability, but that you'd welcome changes to improve documentation.

You asked where my PR was: I gladly would submit one if I didn't expect it to be closed based on the response I had received prior, but I don't think documentation changes would cut it.

I wasn't intending to make this personal and I definitely wasn't saying that you (or your team's) motivations were unambiguously malicious or deceptive. My last paragraph was perhaps overly dramatic, but my impression is that Cryptpad positions itself as a general-purpose e2ee document collaboration suite, and one of the use cases I associate with that positioning, one of the less strict ones if I'm honest, would be something like:

> empower laypeople to collaborate on documents with reasonable confidence that nation-state actors won't be able to passively surveil those documents.

which is a much softer use case to satisfy than, say, providing halfway-decent protection from active, targeted surveillance (the space I believe Signal to be in, and also the space I'd love Cryptpad to be in)

So if those aren't among the kinds of things y'all think about when designing Cryptpad, then I'd appreciate if you made your overall project goals and use cases more explicit. Of course there are other valid reasons to desire document security, they're just not ones I tend to spend as much time thinking about.

hmsimha commented on CryptPad: An Alternative to the Google Suite   cryptpad.org/... · Posted by u/ColinWright
thecrash · 9 months ago
Your problem statement is effectively "I want to share access to my documents very informally with people who don't care to have any security practices, but still keep them secure"

There's another way of sharing in cryptpad though, which is for each user to create an identity/account. Once those you're collaborating with have accounts, documents and folders can be shared by granting access within cryptpad's UI. No secrets have to be circulated.

hmsimha · 9 months ago
I've worked with a few orgs which have used cryptpad, and I'm sorry, but Cryptpad doesn't make it possible to share documents securely unless again, everyone in the org is able to follow security protocol to an exceptionally rare degree.

Even you seem to think sharing via identity somehow bypasses the problem, when in fact this just sends them a "notification" with a share link containing the same secret URL (not to mention, as far as I can tell, there's no way for them to add the document to their own drive, so if they want to access it later they either need to save the share link or find it in their notification panel under "notification history" which is super unintuitive).

And again, those secrets are stored in your browser history. In a group I was involved with, the workflow was to create documents and share them with others, or put the share link in a Signal group. Even if one were to try to tell everyone in the group that the link should only be opened in a browser that doesn't share its history with its vendor, clicking the link in Signal will happily just open it in which ever browser is configured as your system default anyway.

Cryptpad effectively gives you the rope and then ties it into the noose around your neck for you, while you're not looking.

Security theater is at best mildly dangerous in a more typical scenario where it's constructed around an application that isn't billed as a secure communication platform. When a tool advertised as user-friendly and privacy-enhancing is the subject of such theatrics, it's even more actively harmful because it instills a false sense of confidence. It would be like a safety helmet that explodes when the user grazes their head.

So to recap, if you care about big tech companies gaining access to your secure documents, the only way to use cryptpad in a remotely secure manner, in a group, is either by password protecting all documents with a strong password, or ensuring no one in your org ever opens a document in a browser with history syncing. And honestly, expecting the latter from 99% of groups that might use cryptpad is unreasonable, which is why I'm saying it's irresponsible of Cryptpad to even allow password-less document creation (without so much as showing users a glaring red danger notice beforehand).

The users are not primarily to blame for incorrect use of a software that's billed as privacy-preserving, when that software drops them off at the happy path and neglects to tell them, "by the way, we've booby-trapped the door to fire a footgun when opened unless you also turn the smaller knob on the far side with your other hand as you open it."

I realize the data exfiltration issues I mentioned are non-trivial to address (though by no means an immense project either), but I can't interpret the link situation as anything other than willful negligence, or worse, a honeypot; consider that users whose adversaries might include nation-state actors (for example, undocumented immigrants sharing resources with one another on how to access services while staying under the radar) are perhaps more exposed, because data brokers are more likely to deny state requests for data that can be seen as overly broad, whereas one specific type of data (browser history) on one domain becomes a pretty tightly scoped request.

hmsimha commented on CryptPad: An Alternative to the Google Suite   cryptpad.org/... · Posted by u/ColinWright
rkagerer · 9 months ago
...and any document which is shared with more than handful of cypherpunks will certainly end up shared with the main browser vendors

Can you suggest some best practices those cypherpunks can take to mitigate the weaknesses and use it in a secure fashion?

Eg. I don't sync browser history and tend to turn off other cloud-supported features (including "logging into" my browser).

hmsimha · 9 months ago
Regarding the URLs containing the decryption key, of course a strong password is a big benefit here, but if you're not syncing history that could perhaps eliminate big tech from the loop (though you may also need to turn off all telemetry by your browser)

Using a browser without extensions installed would prevent against extension-based exfiltration.

The only way to prevent against a malicious server would probably be to build the frontend yourself and use it with the server (I haven't tried doing this)

hmsimha commented on CryptPad: An Alternative to the Google Suite   cryptpad.org/... · Posted by u/ColinWright
hmsimha · 9 months ago
I think there are some issues with cryptpad, most significantly that documents which are shared via their share link (default way of sharing) will effectively be shared with Google, Apple, Microsoft, and so on. I think this is dangerous because some users may be under the impression that Cryptpad secures their documents from the prying of big tech's eyes, but since it's guaranteed that at least some document collaborators will be using those companies' browsers, and browser history is synced, the URLs (which contain the key to decrypt the document after the fragment) to any document which is shared with more than handful of cypherpunks will certainly end up shared with the main browser vendors

Additionally, they've failed to make some architectural and delivery decisions which would protect users from various attacks like a server compromise (for example, a server seized by an adversary may send malicious client code that conducts a document exfiltration), as well as document exfiltration via a malicious browser extension. Both of these can be mitigated somewhat by delivering the frontend as a desktop app or signed browser extension, and setting reasonable CSPs in the decryption modules. This is exactly the reason Signal doesn't offer a web app.

Cryptpad does offer the ability to additionally encrypt documents with shared passwords, and this offers a fair modicum of greater protection against document interception. But this isn't the default document mode, so I doubt most documents are password-protected in practice.

I did share all of the above with the Cryptpad team, and was told they don't intend to address the above issues, so I'd recommend against putting to much faith in them for the time being.

hmsimha commented on Stream to Chromecast with resolved, vlc and bash   linderud.dev/blog/stream-... · Posted by u/Foxboron
chedoku · 2 years ago
I suggest you to host it somewhere? I assume github pages is not suitable because of CORS.
hmsimha · 2 years ago
I don't think it will work hosted with local video files.

It works locally reading the video file from the file:// url (though strangely needs http for the subtitle track)

hmsimha commented on Stream to Chromecast with resolved, vlc and bash   linderud.dev/blog/stream-... · Posted by u/Foxboron
geewee · 2 years ago
Yeah! No subtitle support though, unfortunately.
hmsimha · 2 years ago
I already commented on this, but I didn't like the "solution" of re-encoding the video with the subtitles baked in, so check out https://gist.github.com/HartS/9bb2721fa73b6798efcdbf5c463e87... if you want a way to play (and cast) local videos with subtitle support.

I threw this together as quickly as possible, so it won't be as feature-rich as VLC, but I believe it will still work for many use cases. If you need additional controls, I think video-js (the OSS video player library this uses) supports them, but you'll have to look into their API. You may also be able to get speed controls working with https://chromewebstore.google.com/detail/video-speed-control... , which is honestly one of the biggest QoL improvements I've had from a chrome extension

hmsimha commented on Stream to Chromecast with resolved, vlc and bash   linderud.dev/blog/stream-... · Posted by u/Foxboron
hmsimha · 2 years ago
For people who like to watch with subtitles, VLC currently doesn't support streaming to chromecast with SRT subtitles.. there are several issues for it and I believe support is slated for the next major version of VLC, but not sure when that will be.

The typical "workaround" is to reencode the video file to include the subtitles directly, but that sounded like too much work, so I hacked together a static page using https://videojs.com/ to embed a player and load the video and subtitles in a browser window.

Here it is in gist form if anyone has a similar issue: https://gist.github.com/HartS/9bb2721fa73b6798efcdbf5c463e87...

This was hacked together as quickly as possible for my own needs, so definitely not intended to be an example of clean code. You need to run the python server separately to serve the SRT because video-js can't load it from a file URL IIRC

hmsimha commented on Reddit subs with millions of followers plan to extend the blackout indefinitely   theverge.com/2023/6/13/23... · Posted by u/edsimpson
RivieraKid · 3 years ago
To make this work, the protest needs one additional ingredient: create a Reddit clone and move the subreddits there while the blackout lasts. This will increase the pressure 10x. By a Reddit clone I mean something pixel-perfect (except the branding) because users hate changes.
hmsimha · 3 years ago
I think it'd be better to create an open-source platform to power one "subreddit" that can be hosted and deployed by the mods.

Then the content can be exported from reddit into each of those platforms.

The instances could be federated. Reddit users could redeem their account across the federated network by proving they control the same account on reddit (either send a message to a bot on reddit, or by generating a one-time password then posting its hash to reddit)

hmsimha commented on A Long Digression into How Standards Are Made   diveintohtml5.info/past.h... · Posted by u/hmsimha
webmaven · 3 years ago
I believe this was last updated in 2011.
hmsimha · 3 years ago
Indeed, the book itself is not going to be a current source on web APIs. However, the section about the history of the <img> element is still interesting.

As the tweet which was shared here today mentions, it's now the 30th anniversary of this announcement by Andreessen, but I thought the content here had more depth than the previously-shared tweet, as a meditation on the formation of standards in the wild west web. I specifically liked this assertion by the author (after visiting all the proposed alternatives):

> But none of this answers the original question: why do we have an <img> element? Why not an <icon> element? Or an <include> element? Why not a hyperlink with an include attribute, or some combination of rel values? Why an <img> element? Quite simply, because Marc Andreessen shipped one, and shipping code wins

u/hmsimha

KarmaCake day659November 10, 2012
About
https://www.linkedin.com/in/hartsimha/

https://github.com/harts

https://github.com/hmsimha

View Original