by onetwotree · 10y ago · 0 comments
Also what advice should I give to WordPress users to help them improve security, other than the rather useless and bratty "don't use wordpress lol" answer? I'm a security professional and I follow the constant stream of "lol WordPress exploit" articles, but proactive security measures for WordPress are a bit outside my usual enterprise infrastructure work.
I don't recommend doing ecommerce (directly) with it, or anything that could gather sensitive information, but for "just a website" with a bunch of cool stuff, WordPress is pretty much impossible to beat for the sheer amount of "cool stuff" you can do without ever writing code. The plugin ecosystem is tremendous.
The automated updates, so far, mostly stay ahead of the curve on exploits in the wild. We have a large pool of users to draw information from (thousands of servers running all manner of web apps), and we're far more likely to see exploits of systems that are harder to update; Drupal, Joomla, and especially a bunch of little apps that have tiny market share and small maintenance teams and cranky update processes. Having an easy and automated system for updates is just incredibly valuable for security.
What really needs to happen is everyone making web applications needs to start shipping a command line client for updates, that is safe/reliable enough to be run from cron. Best of both worlds: you don't need the app files to be write-able from the app itself (which is one of the big security concerns raised by this post) and you're always running the latest version even on systems that aren't being worked on daily. There's still the command line element to the problem, but it could be mostly automated away by control panels and installer tools (of which there are many).
There are a lot of forgotten CMS installations out there, and those are the biggest security problem, IMHO.
Yes, basically don't store anything like this in the WordPress database. There are tons of services you can use, like Hubspot for forms, that allow you to abstract all of these things away from your site and still use WordPress.
You can run `wp-cli core update` to update the core WP files. It can also update plugins.
The problem with this kind of thinking is that if I can get remote code execution, or even just content control over your no-ecommerce-or-sensitive-information blog, I can have a great time. Sure, it's not as valuable as CC info, but the potential for malware distribution, credential phishing (password reuse for the win!), various kinds of social engineering, or even just as an anonymizing host to hide illegal activity, is still huge.
2016 Joomla is as easy as WP to update, and easier than WP to install.
But, I'm glad to hear they've improved the update experience; though I can't imagine how it could be easier than WordPress, since WP will update automatically with no user intervention, if you let it. Easy and reliable updates are perhaps the single biggest security feature, if the team behind the project is pro-active about security bugs.
I think my own recommendation progression has been something like (starting from my early programming days till now):
- My own homebuilt CMS
- A standard CMS like WordPress etc
- A SaaS solution like SquareSpace or Shopify
I really feel like the managed solutions are just that more convenient in the long term, also for the clients own sake.
SquareSpace maybe fine if you're limiting what you're trying to do to _exactly_ what's in the template, but figuring out how to work their system otherwise is hours of maddening, (poorly or) undocumented hell. I threw up http://www.pateshop.nyc/ for some friends and it took a full day.
It would have been faster if I'd just wrote the site myself. It's not even that great -- to get the nav/ux requested I had to compromise a lot to what SquareSpace could deliver.
I don't think someone unfamiliar with HTML and CSS would have been successful.
Several actually, and didn't have much trouble with the WYSIWYG. Worth noting though that the websites more or less fit into the existing templates, but you can also do your own work there.
>It would have been faster if I'd just wrote the site myself. It's not even that great
Well, the parent was asking
>what can I recommend to non-technical people when they need a website quickly and inexpensively
and "make your own from scratch" isn't really an answer to that at all...
Get them to use a hosted WordPress solution. So many times I see people hire someone to set up a VPS with a customised version of WordPress and then think it'll just run itself and stay secure.
Most unmanaged "hosted wordpress" packages are shared hosting, which is junk for a serious business website.
Or if you would like to compare it with actually working on the site as a developer rather than just as a content editor, then it would be https://www.django-cms.org/en/blog/2016/02/16/build-a-websit....
What further improvements would take it right up to, or even past, WordPress levels of ease-of-use, in your opinion?
1. Blog -> Article List -> (Title) doesn't do it.
2. Blog -> Edit this article doesn't do it.
3. Double clicking on article text only lets me edit single paragraphs at a time. It doesn't seem to let me add or re-order paragraphs either.
4. Blog -> Article List -> Add Article doesn't let me create a post with body content.
5. Same with Blog -> Add New Article.
See step 6 (using the Content Wizard to create a new weblog article for example, including body content) or step 7 (which explains how to switch to structure mode, another way to add and/or rearrange body content).
Existing body content can be edited simply by double-clicking on it while in edit mode.
The question is whether this is just a case of understanding the basics of a different paradigm, or something that could be made more intuitive.
Thanks for the feedback, and thanks for taking the trouble to look at it.
Looking at the "A Shifting Reef" demo article, it's still somewhat surprising to me that a document containing a lead-in, a paragraph, a blockquote, three more paragraphs, and an image can't be edited as a whole document. Instead, it appears to be treated as an array of [pagemeta], [text], [blockquote], [text], and [image], all of which must be edited separately.
My understanding is that if I wanted to move the image up two paragraphs, I'd have to:
1. Open the Structure Editor
2. Create a new, empty text block below the image. Save it.
3. Open the text block before the image, cut the last two paragraphs. Save it.
4. Open the bottom text block, paste the two paragraphs. Save it.
If I lose my clipboard between steps 3 and 4, I lose content. Similarly, if someone visits my site between steps 3 and 4, they see broken content. Django CMS has a strong enough reputation that I'm completely willing to believe that I'm being dense and missing something fundamental here. I'd really appreciate your insight as to what I'm doing wrong, and what the expected workflow is. Because right now, that all seems unreasonably convoluted and unsafe for rearranging an image or blockquote amongst text.
I guess this would be less of a problem if I could somehow see a stack of all the structured content editors for a given articles, and change them all at once before saving, but I can't seem to find anything like that, either.
Are there text-based alternatives to your video?
I am writing this not to attack you, it is a real life experience I had with many clients - they just look at me when I ask them to try Django CMS, asking "really???".
I would like to have them to use anything that has django under the hood, but they always take the WP road when given demo setups and some time to experiment.
Wagtail changed that, people seem to understand the Wagtail interface much better, but it is seriously lacking basic features. You at least understood that people want categories - call it taxonomies and allow multiple ways to use and edit them. Ah, just use WP for a few ways to understand how powerful that concept is.
A SaaS website builder and host like Squarespace, Wix, or Weebly.
I can't speak to the quality of Weebly or Squarespace but I'd never use them, the cost is a few bucks more per month than a Wordpress site and I don't see how their services add any value for that extra cost.
It requires a bit of knowledge and a commitment to managing the deploy, but: disable write permissions for the web user to the WordPress directory (excluding the upload folder), whitelist endpoints in nginx/apache, set up IP whitelists for /wp-admin/, minimize plugin usage.
This is going to reduce the user-friendliness of the WordPress install, but it's going to immediately increase the security by leaps and bounds. If you can't exploit plugins, can't access the admin pages, can't modify PHP files, and can't hit exotic endpoints, it's much harder to compromise WordPress.
Have their access be just the content and limited/filtered by role. The built-in roles need virtually no tweaking.
We have our WordPress sites as git repositories and build via CircleCI, Ansible and Composer. For Multisite instances we use Composer and Satis and keep the themes in their own repositories and use tagged releases to manage our multisite build using CircleCI and Ansible again.
We use two-factor auth for Wordpress login (currently Duo on non-multisite installs). Nobody gets to install plugins. Nobody writes files into folders manually.
Minimal plugin usage is a solid recommendation.
Our hosts let us duplicate the db various ways between staging/prod and we just do a copy and search+replace for local development. We used to use WP DB Migrate Pro for that last part but it is buggy to the point of nonfunctional now.
So yes, you do have to do plugin setup/site configuration on dev, staging and prod. I don't see a good workaround for that, but the duplication of work leading up to production has allowed us to catch problems before hitting production.
I find it's a pretty good trade off if you don't need a heavily customized site.
I was already a bit sceptical of wordpress.com hosting due to the limitation on custom themes, and the hurdles needed to hop through to make a new theme that can be used with a wordpress.com hosted site...
All that said, plain wordpress along with a modern php-version and the wordpress-cli still looks like it's an option. The major caveat is that as soon as you get a "wordpress hacker" to "enhance" the site - security appears to go out the window (feels like a third of the traffic on the full-disclosure list is still wordpress plugins. Rarely wordpress core, though).
With that dismal news out of the way, ghost.org + ghost.io hosting does look quite reasonable for a blog (basically what you get with "plain wordpress" anyway). It looks rather unsuited for anything that's not just a blog, including a full image gallery (there are plugin/themes, but ghost is explicitly not a content management system, and doesn't really have any real media management to manage uploaded images in galleries etc. Perhaps ghost.io + something like 500px.com is a possible fix).
Other than that, I have a good impression of netlifly -- but being focused on static sites, it might be a though sell for someone that would really just want "a simple wordpress that works and looks beautiful". I'm not sure, I've only toyed a bit with it, and enjoyed their various excellent "using netlifly with X" blogpost (a really shining example of corporate marketing if you ask me - I don't think any other startup/kickstarter/company mailings manage to reach near the nice quality that netlifly seem to reach effortlessly (a typical indication that a lot of effort is put in, btw :-).
See eg:
https://www.netlify.com/blog/2016/02/24/a-step-by-step-guide...
https://www.netlify.com/blog/2015/11/02/a-step-by-step-guide...
https://www.netlify.com/blog/2015/10/06/a-step-by-step-guide...
https://www.netlify.com/blog/2015/10/15/a-step-by-step-guide...
(They're all mostly the same, and don't go into much depth, but probably gives a fair idea of what Netlifly is and is not).
[ed: Another option might be to get an account with Sandstorm, and host either Ghost or Wordpress along with (maybe) some kind of gallery - or just some form of wiki:
It's the cheapest, most capable, most user-friendly CMS available. It has the largest community, which means it has the best support and greatest plugin availability.
There's nothing wrong with running E-Commerce on Wordpress also, as long as your payment solution does not include storing sensitive data such as credit card numbers in the database.
"How do I improve security" is a question too in-depth for a forum comment. You need to spend some time researching that using your favorite web search, in my humble opinion. Just keep in mind there is not one cure-all solution.
This is just not true. Suppose I get write access to the content your Wordpress site is serving. Now I can replace, say, the Stripe (or any other managed payment solution) JS and HTML with my own, to save the CC info and forward the unmodified request to Stripe. Game over.