this post was submitted on 10 Jul 2023
246 points (100.0% liked)

Beehaw Support

2796 readers
1 users here now

Support and meta community for Beehaw. Ask your questions about the community, technical issues, and other such things here.

A brief FAQ for lurkers and new users can be found here.

Our September 2024 financial update is here.

For a refresher on our philosophy, see also What is Beehaw?, The spirit of the rules, and Beehaw is a Community


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.


if you can see this, it's up  

founded 2 years ago
MODERATORS
 

Hi Beeple!

Here's a vague version of events :

  • 11PM EST: Lemmy.world got hacked

  • 12:20AM EST: Blahaj.zone got hacked

  • 12:25AM EST: I shut down the server

  • 12:30AM EST: I make announcements to tell people about this

  • 12:45AM EST: I have an idea of what the problem is but there is no fix

  • 2:20AM EST: I go to sleep

  • 8:50AM EST: The server is booted back up, steps are applied to mitigate issues (Rotating JWTs, Clearing DB of the source of vulnerability, deleting custom emoji), UI is updated with the fix, CSP and other security options are applied

  • 11:40AM EST: We start testing things to make sure are working And well, now here we are.

If you have issues logging in or using an app:

  1. Log out if you somehow are still logged in

  2. Clear all cache, site data, etc.

  3. Hard refresh Beehaw using CTRL+F5

  4. Log back in.

If you still have issues, write to us at [email protected]

To be clear : We have not been hacked as far as we know, we were completely unaffected. This was done preemptively.

Oh yeah, in case, you haven't, this is a good opportunity and reminder to follow us on Mastodon as the communication line was still up despite Beehaw being down : https://hachyderm.io/@beehaw

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 44 points 1 year ago

Huge props for being one of the few major instances to preemptively shut down!

[–] [email protected] 29 points 1 year ago

shutting down the server early was best. the nature of open source software is what allows these incidents to be mitigated as quickly as they are. thanks a lot to you guys, and to all of the team at Lemmy who worked to resolve this.

heroes <3

[–] [email protected] 16 points 1 year ago

Glad it's back up. I went outside. It was hot af and boring.

[–] [email protected] 13 points 1 year ago

Thank you for shutting down rather than "wait and see"! It was the right choice.

[–] [email protected] 12 points 1 year ago* (last edited 1 year ago)

huge Ws, excellent work

also, thanks for the Mastodon link, i wasn't sure where to check on beehaw status during the outage

[–] [email protected] 12 points 1 year ago

This is why I am on Beehaw. The Admins really care about the Instance and the content on it.

That's why I want to bring attention to the fact, that U can support them. https://opencollective.com/beehaw

I am not a Admin, Mod or anything else. I just really like Beehaw and support them. And you should too.

[–] [email protected] 12 points 1 year ago (2 children)

The shutdown is a good call given the circumstances.

An idea of less-radical preventive action is placing the instance in read-only mode, either as a Lemmy feature, or through reverse proxy settings (eg reply 503 for any POST/PUT/DELETE request). But that'd require some development and/or preparation.

Doing that on the reserve proxy side would block any user-submitted content and more (logins, searches, ...). This would hopefully be efficient at blocking many attack vectors, while still keeping the instance partially online, even if that's a degraded mode.

[–] [email protected] 8 points 1 year ago

Note that if this were a Lemmy feature, if we had been infected, an admin could've gotten hacked and as a result, disabled that feature. I'm not really sure what can be done to make Beehaw foolproof. That said, the UI has since been hardened by CSP headers so this type of attack should no longer be possible.

[–] [email protected] 6 points 1 year ago

Would read-only mode help with XSS exploits though, like this particular one? Since the "damage was already done" by the time anybody noticed, wouldn't putting the site in read-only mode still have kept serving up the XSS payload? It'd stop "infected" people from making any state mutations on Lemmy, but eg. data exliftration would still happen

[–] [email protected] 8 points 1 year ago (1 children)

12:30AM EST: I make announcements to tell people about this

I think it'd be beneficial to have more backup lines of communication for announcements than just Mastodon.

[–] [email protected] 14 points 1 year ago (2 children)

We have Discord and Matrix channels as well. Do you have anything to suggest?

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

Something like status-page is always nice. I haven't used it but it looks like https://cachethq.io/ could be a decent fit as well.

[–] [email protected] 3 points 1 year ago (7 children)

Just something Google-friendly.

[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago (1 children)

I'll be blunt and say that unless you were already in-the-know, Beehaw pretty much ceased to exist when the server was shut down. Not the best result amidst a hacking scare.

[–] [email protected] 9 points 1 year ago (11 children)

Much preferable to the announcement of Beehaw was hacked and lost your user credentials . Security trumps convenience.

load more comments (11 replies)
load more comments (6 replies)
[–] [email protected] 8 points 1 year ago

morning thought: I've definitely joined the right instance. (also the start from the assumption of good faith guidelines linked to in Gaywallet's recent post)

[–] [email protected] 7 points 1 year ago

Awesome response, and a great succinct postmortem. Thanks for doing what you do!

[–] [email protected] 6 points 1 year ago

Good work.

Have a non custom beer 🍻

[–] [email protected] 5 points 1 year ago (1 children)

Content-Security-Policy will really help save your ~~bacon~~ beans and protect against XSS. Hopefully the Lemmy devs can apply a super strict policy to help. IMHO it's a must for any site with user generated content.

[–] [email protected] 3 points 1 year ago

This is what this PR has done as I understand it : https://github.com/LemmyNet/lemmy-ui/pull/1907

[–] [email protected] 5 points 1 year ago

Amazing job! This is not easy to go, given that you're working with an immature product and a changing landscape.

[–] [email protected] 5 points 1 year ago

Awesome work sidestepping the hack.

[–] [email protected] 4 points 1 year ago

Thank you for all you do, from what I was hearing I was in no way expecting you to have the site back up within 12 hours. Many kudos.

[–] [email protected] 3 points 1 year ago (2 children)

Agree with everyone else. Thanks for shutting it down.

I'll most likely do it anyway, but do you think password changes are necessary at this point?

[–] [email protected] 4 points 1 year ago (2 children)

To add onto what @Lionir said, you'll never be wrong to change your password, even if much like in this case it isn't warranted. For future reference, my recommendation is "if you have to ask, rotate your password." Finding out later you didn't have to is so much better than finding out later you should have

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

I disagree - rotating passwords comes at a cost especially for people who don't use a good password manager (and that is basically everyone). It's security theatre and generally creates distrust between people offering security advice and the people who (hopefully) are listening.

There are times when it should be done, but don't do it without a reason.

load more comments (1 replies)
[–] [email protected] 3 points 1 year ago (2 children)

I don't think this is necessary.

We had no messages on our database that had the vulnerability though some were federated from blahaj in the aftermath. The JWT, which is your session token, was changed as well so it seems very unlikely to me that this needs to be changed. There's no reason to believe the attack could've given access to passwords.

[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

I don’t think this is necessary.

I'd add that it's basically useless. From what I've seen, resetting your password doesn't even invalidate previously issued JWT tokens, which would be the only reason to do it. But of course, you've already reset them all and so has lemmy.world.

[–] [email protected] 3 points 1 year ago

A password reset probably should invalidate all previous JWT tokens.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago) (8 children)

We had no messages on our database that had the vulnerability

This is interesting. I actually commented about the use of emojis/emotes a couple days ago on a post on [email protected] made by a federated user from lemmy.one, that has since been removed (😕), but I still have the bookmarked comment in which I copied the raw embed for the remote emote image in the federated comment I was responding to.

Do I understand it correctly, that the latest fixes to stop the code injection, will still allow remote image embedding, so something like an "emote picker extension to embed animated GIFs from a remote server and/or remote instance's emoji list" would still be doable and wouldn't pose any risk?

Or would such picker still have to include measures to prevent offering embeds with potential exploits?

load more comments (8 replies)
[–] [email protected] 3 points 1 year ago

Your work is greatly appreciated! Also happy to know that you got some sleep, very important for the process ☺

[–] [email protected] 3 points 1 year ago

Welcome Back 🤗

load more comments
view more: next ›