Re:Our Director of Engineering on the new Wired.com
by csixty4 on Tuesday March 03, 2015 @12:32AM
(#9136273)
Yep. Welcome to administering systems for a web site. There's always a trade-off between convenience & security. If you make it hard for people to install plugins, they're not going to use your software (or your server).
If you add "define('DISALLOW_FILE_MODS', true);" to wp-config.php, it removes the ability to install themes & plugins through WordPress itself. Then it's more like a traditional web application.
Files and directories on a web server should never be owned by or writable by the web user. They typically don't need to be world readable either (if they are, and your web server is compromised, then you start to leak a lot of unrelated data out over the compromised service).
Here's a pretty minimalistic list of recommendations worth looking at on properly securing a web server:
http://resources.infosecinstitute.com/securing-linux-web-ser...