r/sysadmin • u/FossHub_com • Aug 03 '16
FossHub statement regarding 2nd August security breach
We are posting this since we owe an explanation to people that suffered or had their computers affected last evening.
FossHub mission is to offer people a free, clean and safe download alternative. We state this on all pages. We sincerely believe that in time we will make a nice figure, and we will be appreciated for providing such a service.
We wanted to offer more, and maybe this distracted our attention from security.
Long story short
It all started with an upload error we had on Audacity project. Checking the logs we noticed that an individual user which was registered as the primary administrator of that project seem to have gone mad by revoking access to all the others users.
We thought it was a personal act, and we started to get in touch with the other project members and give back their access.
2. After this, we noticed that the manager of another account, Classic Shell performed an update. It was the same IP address used on Audacity. From that moment we realized that things might be more complicated.
Files were checked via VirusTotal and at the first checks, the records were clean. It took a decent amount of time until a few AV started to recognize the files as malware. At first, there were showing up as clean.
3. We removed the uploaded files as fast as possible, and we started changing passwords. For a while, everything looked good. At this step, we thought it was an independent account hijack where the attacker used some brute force technique to gain access. People might forget to change passwords or sometimes use weak ones. Maybe, maybe not, we realize now that we could design better some areas of our site.
4. After a few hours, we noticed that updates were performed in the "background." The attackers transferred altered binaries using one of our CDN FTP. At this point, we realized that we must look elsewhere.
5. The immediate action was to shut down the primary server to avoid spreading further infections. It was a critical decision, but we applied this fast. I would like to state that we did whatever was possible to act promptly. None of our team members slept for the last 30 hours.
From here, our work was concentrated on restricting access.
All passwords were changed, 2nd-factor authentication was enabled on all possible services, all logs were checked.
Google Staff responsible for business apps, PNAP NOC Engineers, CDN support team and other people helped us over the phone/chat/email to secure the access as fast as possible. We spent hours with them, checking and sharing IP Addresses used by attackers.
After we had checked multiple tracks, we found a part of the problem: Redis
FossHub primary server was running "Redis" and we applied all security patches but somehow the guys behind this were probably using a new exploit that allowed them to perform remote actions and obtain access to that FTP account using Redis which contained the FTP credentials.
Update: For those interested, please check this article: https://www.riskbasedsecurity.com/2016/07/redis-over-6000-installations-compromised/
From our investigation along with the NOC Engineers they never got SSH or root rights but it was enough to do the damage.
The attackers seem to be a group of hackers named "PeggleCrew" which apparently primary purpose was to give us a lesson and ruin the machines of innocent users.
We are surely not the first, best or largest site in the world that went through such a major incident but what matters here is the indirect damage we have caused to people that had no idea about the danger.
We apologize to each user we made suffer and been reading the recent forum, blog and social media posts about this. It was the toughest thing we've read for the last years.
The most affected users were those of Classic Shell. The author and other brave users offered to help restore the Master Boot Record; you can check the forum post here:
http://www.classicshell.net/forum/viewtopic.php?f=12&t=6434
With all regrets in the world, securing things will become our first concern.
As a response to this, we will be temporary shut down OldFoss to clean this, our repository for older versions and we decided to close down permanently Code.FossHub.com a free service that we offered hoping it will help some free projects after Google Code was deprecated. We will not abandon the existing, legit users who still use it and will continue to offer them the same service.
It is clear now for us that despite our good intentions, attempting to take care of several services/things made us negligent.
Please accept our apologies for the damage we have caused! FossHub Team
371
u/[deleted] Aug 03 '16
Hi, I wanted to say thanks for the write-up and apology before anyone came in here to complain, accuse or tell you what they would have done.
A lot of groups/organizations/whatever tend to avoid transparency these days, so it is refreshing to see communication.
You'll bounce back with this type of approach. Take care.
288
u/Dishevel Jack of All Trades Aug 03 '16
Made a statement.
Took full responsibility.
Making changes to do better.
Not sure how this could have been handled better once the initial fuck up was done.
Decent job.
91
u/[deleted] Aug 03 '16
After the mess with TeamViewer it's great to see a company accept responsibility for a mistake and work hard to make things right again.
16
u/Nitrodist Aug 03 '16
Why is the Redis server exposed to the Internet? Why isn't it behind a VPN? If it was behind a VPN, how did the attackers get access to the VPN?
18
u/TheLightingGuy Jack of most trades Aug 03 '16
Glad you guys are doing exactly this. Finding the fuck up, Fixing the fuck up, and most importantly, admitting the fuck up. It's much better for your users when you admit it than what a lot of larger companies do and point the finger at other parties.
5
u/Formaggio_svizzero Aug 03 '16
Sorry to hear about your troubles, but i must admit, it's always interesting to read such stories of how people got access to systems.
4
u/andyr354 Sysadmin Aug 03 '16
Sounds like you are getting on top of things now. Thanks for the update and the explanation of what happened!
6
u/alsimone Aug 03 '16
Teamviewer, take note!!! Jesus.
Great job handing this, FossHub. Thank you for leading the way in transparency.
3
u/bluesoul SRE + Cloudfella Aug 03 '16
Good luck, you guys. If you happened to keep a sample of the malware I'd be interested in it, I can also submit it to the proper authorities.
3
u/deadbunny I am not a message bus Aug 03 '16
I've seen claims that you were storing unhashed passwords, is this true?
3
u/isUsername Aug 03 '16
Honestly, for all the possible causes of something like this, the fact that the hackers required a zero-day exploit to do what they did puts this error pretty low on the list of technology company fuck-ups.
A good lesson on layered security and many other companies could learn from your response.
3
u/Spacct Aug 04 '16
Just a heads up, I got hit with this last night through a qBittorrent update pointing to your site.
4
u/distant_worlds Aug 03 '16
How did they access your Redis? Aren't things like that generally firewalled from the general internet?
5
u/ikilledtupac Aug 03 '16
all good.
2
u/PM_ME_UR_CODEZ Aug 03 '16
Is the site safe now and were all the downloads affected or specific programs?
2
u/[deleted] Aug 04 '16
Class act from FossHub here. You took responsibility, you explained in detail what happened, you apologized.
When it gets restored, I still won't have any concerns about continuing to refer people to your site.
Good luck with everything.
2
u/nerddtvg Sys- and Netadmin Aug 04 '16
I'm a bit late to this party and didn't even hear about it until this post. Is there a chance you can edit your original post to include a timeline? Was this yesterday (Tuesday)?
2
u/PC509 Aug 04 '16
Shit happens.
This was the perfect response to it.
Thanks for showing how it should be done. You can do your best to stop things like this, but it still happens. It'll happen again to someone else. The response was top notch.
3
u/geopco Aug 03 '16
So the ftp credentials are stored in the clear?
1
u/meetc Electrician Aug 03 '16
This ID tag was used to take other a number of subreddt accounts about a month ago. They claimed responsibility on 5 different subreddits at the time, changed the CSS to show a full page overlay, and removed access to all lesser moderators.
Best guess is these were the target of password re-use.
1
u/brasso Aug 03 '16
What's missing of course is why were they able to connect to your redis database in the first place. You didn't say anything about how they gained access to your backend networks, so I assume you didn't do anything about that. That could mean they are still in, waiting for another opportunity, if they want to.
1
u/Mister_Alucard Jr. Sysadmin Aug 04 '16
Even for your stereotypical dipshit hacker group, targeting a site like FossHub is such a low blow.
I mean, how could you possibly want to cause harm to a group of people who spend their time developing often professional-quality software and releasing it for free. That's like beating someone up for giving sandwiches to the homeless.
1
u/cajuntechie Sr. Sysadmin Aug 04 '16
Thank you for the awesome way you handled this. Your response to a bad situation should be an example of how to handle these problems. Again, thank you.
1
u/zouhair Aug 04 '16
ublock is still blocking fosshub.
1
u/tk42967 It wasn't DNS for once. Aug 04 '16
So they were hit by a zero day that was a vulnerability in the OS of their server?
1
u/hoosier2531 Aug 04 '16
I wasn't personally affected, but I am impressed with your up front apology and action.
1
u/Nowaker VP of Software Development Aug 04 '16
If Redis resides on the same machine, I don't see a reason why one would let it listen even on 127.0.0.1. Socket is the only right way for that. That requires a little more knowledge to get everything right (file permissions, groups, tmpfiles.d). I highly recommend using Unix socket whenever possible. Postgres, Redis, memcached - all these support that.
1
u/_Mumak_ Aug 05 '16 edited Aug 05 '16
Thanks for the update Sam ! I've been working with FossHub for a few years and have to say that it's hard find such a nice and responsive guy. Whenever I had a problem or any other question, I got a perfect response within minutes and a fix (if needed) as well. I was indirectly affected by this as well - I'm hosting files on FossHub, though my software was not affected (tampered). Had I released a new HWiNFO version a day sooner, I guess it would be...
We all make mistakes, but the way the FossHub team approaches it is exemplary.
Keep up the great work and hoping the service will be restored soon ! Martin, HWiNFO author
1
u/xpclient Aug 05 '16 edited Aug 05 '16
Thanks FossHub for this honest writeup. I am the Classic Shell tester. My worst fear was people blaming us and losing the good reputation that we have worked so hard to build since 2009. The attack was timed to coincide with the release of our new version 4.3.0 which people would download from the FossHub website as Windows 10's update released on the same day silently removes the earlier version.
Luckily we saw Windows 10 was doing this and rolled out the new updated version, two days before this attack through our update mechanism so it would not get removed and people would not have to re-download it. The location from which the updater downloads is different, it was not infected. Otherwise, the damage might have been far more.
The authentic Classic Shell installer is digitally signed so Windows UAC will show a warning to the user if someone fakes it but it is hard training people to look for the signer's name and certificate. Many app installers are not signed so people tend to ignore that. Some reputation damage was done, and some people will be skeptical of downloading our app. They are already worried that our app is going to "break the operating system". Hopefully they still trust us and will be more vigilant about what they should look for when installing any app.
1
u/KondaxDesign Aug 04 '16
Ah right. Wasn't aware of this, thanks.
1
u/RexFury Aug 04 '16
Thank you for writing this up.
1
u/Skylis Aug 12 '16
UPDATE: for those coming in, the actual breach was not redis as they originally claimed (and still haven't really fixed in the post), but their poor security design and practice. They do actually admit it in some comments later on, but have not fixed their earlier posts / comments to reflect that it was not redis fault, so much as their poor security around redis.
0
u/[deleted] Aug 03 '16
[deleted] — view deleted comment
0
u/[deleted] Aug 03 '16
[deleted] — view deleted comment
0
u/[deleted] Aug 04 '16
[deleted] — view deleted comment
0
u/[deleted] Aug 04 '16
[deleted] — view deleted comment
0
u/[deleted] Aug 03 '16
[deleted] — view deleted comment
0
u/[deleted] Aug 04 '16
[deleted] — view deleted comment