CPanel's Black Week: 3 New Vulnerabilities Patched After Attack on 44k Servers (copahost.com)

131 points by ggallas 19 hours ago

65 comments:

by zuzululu 18 hours ago

Ages ago I used php-nuke to manage my forum and it got hacked and I thought it would get taken seriously

Seeing these CPanel hacks remind me how old these codebases are and how much more vulnerability remain

by bouncycastle 4 hours ago

Cpanel is Perl, not PHP. Probably the grayest of the gray beards. Perhaps not enough Perl Wizards left to maintain it nowadays.

by doublerabbit 12 hours ago

Php-nuke was the hacking testing ground. Nuke was atrocious for exploitation.

by jszymborski 11 hours ago

I was thinking about php-nuke I while back and it's terrible security rep. I figured it was just the regular PHP foot guns of the era, but I took a look at the code recently and boy howdy that was some truly atrocious code. I'm not security person (although perhaps security minded) and I found a million problems after a cursory glance.

by dainiusse 18 hours ago

I don't agree that "old" necessarily implies vulnerability.

by pixl97 17 hours ago

I mostly disagree on your disagreement unless the entire project was based on top security practices and good code in the first place. The vast majority of these web panels are a security nightmare.

by omnimus 17 hours ago

These PHP systems be it cPanel, wordpress or PHP itself are most likely the biggest target besides windows. It's incredibly uncool stack especially here but it is running most of the "independent" small web.

They cannot be that bad if they are managing to be ductape of the internet.

by Meekro 16 hours ago

I've done PHP development for over 20 years, including some pretty large projects. I've never had a situation where a security flaw in PHP itself forced me to scramble to patch something before it got hacked.

On the other hand, for my Linux servers, I had to do that twice in the last month with CopyFail and DirtyFrag.

by diek 13 hours ago

CVE-2021-21703 [0] is a similar class of bug in the PHP interpreter itself that was pretty recent

https://www.sentinelone.com/vulnerability-database/cve-2021-...

by ipaddr 12 hours ago

This is not a PHP language interpreter bug this is a PHP FPM bug.

by diek 10 hours ago

That's a fair point, using 'interpreter' specifically was imprecise language on my part. My main point was php-fpm is developed by the core PHP team and is often the default in how PHP projects deploy these days, and that CVE was very similar to the recent 'fail' LPE vulnerabilities in the kernel.

by dylan604 15 hours ago

Every time I venture in the the web server's error log, I see all of the skiddie's attempts at accessing the most common things with most of them being .php files. Lots of /wp/admin.php and /phpadmin/ type requests. Of course, none of those are available which is why the requests are in the error log. I've never paid attention, but I wonder how long (as in how little time) for a new server to come online before it starts to get probed by a skiddie. Whether they are just war dialing IPs or paying attention to new domain announcements but I'd put it on a few hours tops.

by hamburglar 15 hours ago

Dismissing these as script kiddie attempts is no longer correct. This is a real industry now. It’s not like the large scale actors are going to pass up a valid unpatched vector just because it’s old hat.

by nubinetwork 8 hours ago

They're skiddies if they're trying WordPress attacks on domains that have never hosted anything remotely close to a CMS before...

by dylan604 14 hours ago

yes, but how often otherwise would i get to use the word skiddie?

by rstupek 13 hours ago

If you get a letsencrypt certificate it will get probed within a minute

by jmb99 10 hours ago

I’ve tested this recently (this post week). Had a dns entry up and pointing to an nginx server for ~12 hours, zero requests. 17 seconds after the letsencrypt cert was issued, the floodgates opened. Over a dozen of requests per second.

by walrus01 9 hours ago

I don't think it's necessarily specific to LE but rather to public certificate transparency logs. LE being free and easy to automate means it's very widely used these days, but if you theoretically go to a "pay" root CA and get a cert that covers thing.com and www.thing.com , the same probing will happen on the same time scale.

by doublerabbit 12 hours ago

22 minutes. I got my new ISP with fibre. Placed my web server online. 22 minutes my honey pot got stung.

by hvb2 17 hours ago

> They cannot be that bad if they are managing to be ductape of the internet.

I think there are just a whole lot of tools written for them. So non devs can spin things up and click some things together.

Is that safe and secure? Maybe, if the devs did their work well. But I'm positive no one reads the docs on how to configure something securely.

I think the real reason is that it's very cheap to host, and always has been

by ChocolateGod 17 hours ago

cPanel is Perl.

by robocat 15 hours ago

Yes. Perl for core backend logic, automation, legacy systems, APIs. Some other languages used for bits and pieces.

https://api.docs.cpanel.net/guides/guide-to-perl

by anamexis 17 hours ago

How does that follow?

by cinntaile 17 hours ago

They have a big target on their back so the low hanging fruit is (mostly) gone.

by bsder 12 hours ago

> They cannot be that bad if they are managing to be ductape of the internet.

Oh, it very much can be that bad. Most "security" relies on the Hungry Tiger Theory of Security(tm).

My system doesn't need to be "secure". My system simply needs to be more secure than yours. As long as there is an easier and/or more valuable target somewhere, I'm "secure". I don't need to outrun the hungry tiger; I only need to outrun you outrunning the hungry tiger.

That theory, of course, doesn't hold anymore when there are enough tigers to simply eat everybody. And that's what AI did; it multiplied the tigers enough that they can just gorge on everything.

Now, people are going to have to put in "actual security" or lose real money over and over and over. And since everybody has outsourced everything, nobody knows how to fix it quickly. The lawyers are going to have a field day.

At the end, however, we'll have real security on our internet facing systems. But man, it's going to be painful for a while.

by tclancy 14 hours ago

As a coder who just hit 50, trust me, it does.

by anonzzzies 18 hours ago

CPanel and hosters who use them are in big trouble now; there are millions of servers running them, many of them for decades. Their clients can run code as an user without much sandboxing/guardrails at all.

by rurban 15 hours ago

But those are updated automatically. It's unlike Windows or Linux, where the user decides when to update. cPanel updates are decided by cPanel

by breakingcups 18 hours ago

Such a different era.

by omnimus 17 hours ago

If you look at the usage numbers, you could argue we are still in that era.

by addedGone 17 hours ago

I miss this era, we overcomplicated everything

by sourcecodeplz 3 hours ago

Not all webhosting companies are using cpanel. Cpanel increased their prices exponentially in the last few years.

by josu 14 hours ago

So CPanel's security is just as bad as their UI, who would have thought?

by lofaszvanitt 9 hours ago

Yeah, it always was a dumpster fire.

by eagerpace 16 hours ago

Wow, similar sentiments about this being a throw back. I’d rather roll my own almost everything these days, may not be as good, but certainly won’t be targeted exploited broadly.

by hackthemack 16 hours ago

Many years ago. Maybe 2005 to 2015? I had a friend who used cpanel to run a web hosting company. He made quite a bit of money doing that. He was not a programmer, but he could setup up wordpress and install plugins. I remember asking him once if he was worried he would get hacked and then lose control of his servers? Lose his customers?

He said he was worried but he had backups upon backups. I saw him restore a bunch of websites once, using cpanel, and I thought it is an amazing little bit of software with all of the click a button to setup many different things (like WAF). A real time saver and provides some guidance if you are not a unix-internet guru.

by 0xbadcafebee 11 hours ago

44,000 servers compromised? Sounds like somebody could've used a software building code

by rickdg 15 hours ago

Friendly reminder that there aren't that many ways for a normie to create their own (sub)domain with TLS and an email in under five minutes. That's cPanel for ya.

by walrus01 15 hours ago

The alternatives to cpanel would mostly be all-in-one hosting providers like 'squarespace' or similar, which have rolled their own web GUI to automate a basic normie workflow of domain registration, putting basic DNS records in a zone, hosting the DNS, getting TLS certs, putting basic content on a httpd. It's interesting to see the "set up your small business website now!" advertising to totally non technical people.

by sgammon 14 hours ago

Yes, there are many ways to do that now, in under 5 minutes. Cloudflare will set all of that up just fine. GSuite is much easier to set up than CPanel.

by burnt-resistor 4 hours ago

Most LAMP FOSS web apps have a long history of being hacked.

Is there any specific LAMP web app(s) that has a very good history of not being hacked?

I can't think of any readily but I imagine someone here knows one or two.

by iamacyborg 4 hours ago

Mediawiki seems pretty solid on that front in my 10+ years of running and using it

by operatingthetan 18 hours ago

People are still using cpanel?

by kiritanpo 18 hours ago

Most shared hosting plans use cpanel. It's still widely used yes for a lot of smaller websites.

by dawnerd 17 hours ago

And even if it doesn’t look like it chances are it still is with a fancier ui on top.

by ilia-a 17 hours ago

I wonder how much shared hosting is there really left, I imagine much of it move to VPS or cheap cloud boxes.

by omnimus 17 hours ago

I highly doubt that. It's giant market and with these custom small sites made by third parties you actually want to have client owned hosting and third parties who deploy to that hosting. Clients have learned to separate these otherwise the third party can have huge leverage (your business and all data is ours).

by walrus01 16 hours ago

There's still a very big market of people for whom being given a VPS with ssh access and a command line is beyond their technical capability or comfort level.

Ever seen the upsell offers in the check-out workflow for hosting packages that come when you buy a new .com domain from any major registrar? All those are shared hosting packages where everything is done through some sort of web gui.

by duskwuff 10 hours ago

I'm especially curious how much small-scale shared hosting is left. The big companies like EIG are certainly still around, but the little one-off hosting companies are much less common.

by smallerize 11 hours ago

But you have to keep a VPS updated yourself, right? A hosted site doesn't require any action from the customer to stay up to date.

by xp84 18 hours ago

There are a lot of things that have been up for decades. The ROI on moving a simple PHP or static website to new hosting situation hasn’t been that compelling… though that could change. Thing is, I suspect most users of shared hosting which is Cpanel’s bread and butter are not reading the latest cybersecurity news.

by TZubiri 17 hours ago

The ROI has just increased by like 10x or 100x this week.

by ramesh31 18 hours ago

CPanel on shared hosting running WordPress PHP is literally half of the entire internet still.

by whatsupdog 18 hours ago

Half of the entire internet is Meta properties.

by fmbb 18 hours ago

That’s the other half.

Coincidentally also PHP.

by Shish2k 17 hours ago

Facebook started out PHP; but they ship-of-theseus'ed it into Hack by replacing the standard library, the language, and the runtime engine, so now it's a totally different thing with only a few superficial similarities (FWIW IMO Hack is much better than PHP, I'm sad that it never gained traction...)

by ceejayoz 16 hours ago

Much of what was good in Hack just got rolled into PHP.

by walrus01 16 hours ago

And if it's not cpanel, it's Plesk

by throwawaytea 14 hours ago

I run an entire saas that 36 companies pay for, built in PHP, and I drag and drop the files to the server via cpanel.

by zb3 15 hours ago

"AI safeguards" are not working I guess.. or maybe they're only working against those who'd like to secure their software.. good job Anthropic + OpenAI!

by himata4113 7 hours ago

The AI safeguards are indeed a joke, you can get around their classifier by simply masking out all the unsafe words and it will happily work on your rootkit.

by echelon 7 hours ago

> CPanel

Now there's a name I haven't heard since the 2005 or so era.

How is that thing still around?

Next you're going to tell me people still run phpBB and vBulletin somewhere. And use FileZilla FTP. And manage their database with phpMyAdmin.

by whyoh 2 hours ago

Why, is there a better alternative to the PHP-based forums? (I tried Discourse and it sucks.)

by vachina 6 hours ago

Nothing wrong with those stacks. They’re akin to assembly language for the backend. Nitty gritty but super close to the metal.

by burnt-resistor 4 hours ago

PHP (apart from the Hack offshoot) isn't a compiled language, so it's nowhere "close" to anything.

LAMP apps are frequently mentioned in RCE CVEs.

Data from: Hacker News, provided by Hacker News (unofficial) API