News for hackers. Stuff that matters.
Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:01AM (#25890769)
The NFS requirement for multiple Wordpress hosts are an instant deal breaker for me when discussing CMS on the cloud.

Wordpress made sense when the web was a collection of independent servers. However in today’s cloud-orientated hosting landscape there are a thousand better ways to provide said content. Both at the beginner level and at the enterprise.

Re:Whitehouse.gov Chooses WordPress, Again by jspash on Sunday January 24, 2021 @05:23AM (#25890868)
Those independent servers haven’t gone away just because there are new toys in the box. They are still fast, cheap and ubiquitous.

I’m no fan of PHP or Wordpress by any stretch. But I agree with the pragmatic choice in this case. It will probably only need one dev to maintain the site. But even that would be overkill. You just never want a bus factor of 1. Especially for such a high profile site. But I’m digressing...

But cloud vs VPS aside, I do wonder is they are self hosting due to security reasons. Imagine a bad actor hacking into the WP installation! It does have a bad security record.

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @07:46AM (#25891587)
Sorry, by “independent servers” I meant self hosting / on prem. And while that hasn’t gone away entirely it has diminished massively as companies deprecate on prem hardware as hardware ages and replaces those resources with cloud services.

Stuff like NFS made sense for on prem but it’s a terrible solution for building services on AWS (for example).

Security wise, any popular CMS will be a security nightmare. It’s not even a PHP thing. In an ideal world you’d stick your CMS behind a WAF and put some additional policies around your admin APIs (if at all possible). Wordpress, for all of its warts, actually made those parts easy to do.

Re:Whitehouse.gov Chooses WordPress, Again by snowwrestler on Sunday January 24, 2021 @10:23AM (#25892742)
> Security wise, any popular CMS will be a security nightmare.

I disagree, and I think it comes from a different understanding of what web security is.

Popular CMS software benefits from millions of people hammering on installations. If the community constructs a sane process for handling vulnerability reports (and WP has), then the average user of that software benefits from a robust continuous testing regime that they could never afford themselves. Testing and patching is an extremely important component of web application security in the long run, and also very expensive to do well. Most custom CMS projects do not bother to do it at all, and yet fool themselves into thinking they are secure because they wrote their own code.

No one can write secure software on the first try. The most well-funded and well-regarded software companies in the world spend tremendous effort on coding practices and testing, and still ship vulnerabilities.

Continuous testing and patching is always required. If your website is the only one running your CMS software, your first hint of a vulnerability may be when it gets exploited in production.

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:37PM (#25896918)
You’re overlooking a key thing there though. You’re assuming every hack is a targeted one. And that simply isn’t the case.

Whenever a new vulnerability is discovered for WP (or any popular suite, be it a shop like Magento or message board like phpBB) you then get hordes of bots that trawl the internet looking for sites that run out of date versions of said software just for the purpose of hacking it. Even search engines become tools for bots to hunt out these insecure platforms.

I’m not someone who advocates security through obscurity however the vast majority of WP et al hacks are not targeted and thus a home grown CMS technically wouldn’t fall foul in the same way.

HOWEVER please don’t twist my words into saying that home grown CMSs are “more” secure. I’m making no such claim what-so-ever (and nor did I in my previous post when you want off on a soliloquy about how I apparently suggested that — I did no such thing!). My statement is and was only that any popular CMS will be a security nightmare. That point is very much true.

This is why I also brought up the point about WAF and additional policies on your admin path. The former buys you a little more time with updates (assuming you’re with a reputable WAF that supports the CMS platform you’re hiding against) because they can identify suspicious requests (ie ones that look like they’re triggering a known vulnerability) and simply block those requests from your site (technically the WAF is a reverse proxy with some firewalling, request heuristics, etc).

As for the point about admin policies: if you can IP whitelist who gets access to /admin then that saves you a lot of pain early on. But that’s obviously not always practical. However there are plenty of other ways to harden access.

Disclaimer: in a former life I used to repair and harden hacked CMSs, shops like Magento, etc.

Re:Whitehouse.gov Chooses WordPress, Again by snowwrestler on Sunday January 24, 2021 @11:29PM (#25899140)
It’s extremely rare for automated attacks to scale against popular CMSs before the patch for that vulnerability is available. In the vast majority of cases the script kiddies find out about the vulnerability when the patch is released. Then some bad guy has to write the script to target it, and distribute that and/or scale it. All a site owner has to do to win, is patch faster than that.

We always aimed to evaluate security patches same-day. The shortest lag we saw was “Drupalgeddon”—about 12 hours. In some cases we would see a lag of up to a month between the release of a patch and the signatures of automated attempts to exploit the underlying vulnerability. We eventually got rid of our IDS because all it did was log failed attempts to exploit vulnerabilities we had already patched, and fruitless door-knocking like password brute force attempts.

I’m sure you saw a lot of CMS installations that got hacked. I’m also sure that most them were because of either poor patch discipline, or misconfiguration, or both.

I guess it’s true that if someone is going to be bad at running a website, a popular CMS might be a bad experience for them. But even then a popular CMS may have an advantage: it’s a lot easier to find professional help for a popular CMS than for a niche or custom one.

Honestly, running any software at all is going be a nightmare for a lot of people. Hence the success of products like Squarespace and Wix; now they don’t have to.

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Tuesday January 26, 2021 @06:41PM (#25922390)
> We eventually got rid of our IDS because all it did was log failed attempts to exploit vulnerabilities we had already patched, and fruitless door-knocking like password brute force attempts.

All that means is that you’ve misconfigured your IDS. You’re supposed to filter out stuff that’s not a threat, not remove the entire IDS instance entirely!

You shouldn’t throw the baby out with the bath water https://en.m.wikipedia.org/wiki/Don't_throw_the_baby_out_wit...

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Monday January 25, 2021 @05:55AM (#25901804)
> It’s extremely rare for automated attacks to scale against popular CMSs before the patch for that vulnerability is available. In the vast majority of cases the script kiddies find out about the vulnerability when the patch is released. Then some bad guy has to write the script to target it, and distribute that and/or scale it. All a site owner has to do to win, is patch faster than that.

Again you’re over estimating the average IT team’s ability to keep on top of WP patches. And again I have to reiterate my point about the advantages of a good WAF (web application firewall).

I’m not making a theoretical argument here. I’ve seen and have had to fix numerous sites from companies with competent developers and sys admins but who were simply unlucky enough not to notice that one RCE vulnerability in time.

> I’m sure you saw a lot of CMS installations that got hacked. I’m also sure that most them were because of either poor patch discipline, or misconfiguration, or both.

Neither actually. Just busy teams in medium sized business having a plethora of projects and too little time to manage everything with the same degree of love that your larger companies or start ups do when they have a dedicated team working in a single product.

Remember the appeal of WP for many is that it is “plug and play” so it often gets installed in organisations as a way of reducing the burden on existing developers and/or sysadmins. A strategy that makes complete sense on paper but can back fire spectacularly.

Let’s also remember that WP also appeals to the hobbyists too. You can’t accuse them of being incompetent sysadmins because they never set out to be technical. Instead they were sold on how easy WP is to install and manage.

Again this is why I keep discussing WAFs. Using them is non-obvious but it does reduce the burden on whatever individual or team manage WP.

> But even then a popular CMS may have an advantage: it’s a lot easier to find professional help for a popular CMS than for a niche or custom one.

Oh i agree. Choosing an established CMS isn’t a bad decision as there are plenty of benefits in doing so.

> Honestly, running any software at all is going be a nightmare for a lot of people. Hence the success of products like Squarespace and Wix; now they don’t have to.

This I agree with too.

Re:Whitehouse.gov Chooses WordPress, Again by prox on Sunday January 24, 2021 @09:47AM (#25892424)
What are a few of the better ways you would suggest at the moment? (Honest question from a WP dev?)
Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:19PM (#25896756)
That very much depends on a case by case scenario.

I’ve seen WP used for everything from personal blogs, international news sites, shopping sites, and even fantasy sports games. The diversity of WP is definitely a strength. But it does mean that there’s not going to be a 1 size fits all alternative.

Re:Whitehouse.gov Chooses WordPress, Again by coldtea on Sunday January 24, 2021 @10:33AM (#25892822)
>The NFS requirement for multiple Wordpress hosts are an instant deal breaker for me when discussing CMS on the cloud.

There's no "NFS requirement for multiple Wordpress hosts" tho.

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:14PM (#25896716)
In theory that’s true but in practice there needs to be a common file system for WP to function properly otherwise you end up with a lot of kludges that break the admin panel or that adds other caveats to WPs normal behaviour.
Re:Whitehouse.gov Chooses WordPress, Again by photomatt on Sunday January 24, 2021 @11:33PM (#25899176)
I wouldn't suggest it personally, and don't think it's common.
Re:Whitehouse.gov Chooses WordPress, Again by throw0101a on Sunday January 24, 2021 @11:53AM (#25893482)
> The NFS requirement for multiple Wordpress hosts are an instant deal breaker for me when discussing CMS on the cloud.

Unless you have a very dynamic site (posts hourly, multi-daily), would making it static-y be a solution?

* https://wp2static.com

Do a post via web GUI, it gets written out to disk, and then you rsync (or auto-git or whatever) to distribute it.

Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:43PM (#25896981)
Depends on a persons use case because but not all WP installs are blogs / news sites.

However if you can and are going down the static site route then I’d wager there are easier platforms to start with.

I built a static site generator that takes markdown files and “compiles” them to HTML using pandoc. The whole thing is just 1 shell script. But that use case also wouldn’t suite most other people.

So it really depends on what the team need and what the site does.

Re:Whitehouse.gov Chooses WordPress, Again by tombot on Sunday January 24, 2021 @08:51AM (#25892018)
NFS for sharing uploads folder? shift the media to a CDN when it’s uploaded and serve it from there. There are multiple plugins that do this.
Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:11PM (#25896692)
That’s only half the battle. The working directory is designed to be writable so you either end up with PHP files copied onto the host with some complex syncing that breaks the admin panel, or you accept that the hosts share a common file system.
Re:Whitehouse.gov Chooses WordPress, Again by apple4ever on Sunday January 24, 2021 @02:46PM (#25895141)
There are plenty of ways of doing it without NFS.
Re:Whitehouse.gov Chooses WordPress, Again by laumars on Sunday January 24, 2021 @05:08PM (#25896663)
CMS in general, yes. WP specifically, no.

Often the “loads of ways” on WP require changing its normal behaviour and thus breaks ones ability to use the admin console. Or use some other kludge that might suit some subset of people some of the time. But ultimately it keeps coming back to kludges or other workarounds that introduce as many caveats as they solve.