Database security
-
This is one of those WordPress related questions, but if my conclusions are right, this question can be posed here.
Not that I have direct reason to start thinking about the subject, but the WP Security Scan did make me wonder about how to secure the database. I have searched around the internet, read some things on hackers sites and forums, but I don’t find/understand enough to know what action to undertake.
I have a cheap hosting provider with which I never had any problems. It is hard for a half-informed to find all the information that I want, in fact, I don’t even know for sure that I’m on a dedicated server and I don’t know what my provider does for security. Taking it that it will be something, I just want to make sure that I do everything that I can myself. “Hardening WordPress” itself is one thing, but there’s more to the subject.
The first thing that makes my mind spin is: how can a database be insecure? How would a hacker know to find my database and crack my login? Would they go through my control panel or is there a way to access a database directly? Should one get it, it is easy to guess the names of the tables, since they are the same for almost any WP installation, so I suppose that with some starting information, it would be relatively easy to write some malicious code to do something in the database. With that approach, it could be a good suggestion to change the prefixes of the tables.
Taking that I wouldn’t know a way to approach a database directly (but I’m no hacker) and I can’t find information on the possibility of that, there has to be another way to do that. This (of course) is where WP comes in the picture.
Apparently it is possible to put code into pieces of WP that use the database, such as login forms (standard secured if I’m right), searchforms or forms made by plugins. My guess is that a command passes (or uses) the wp_config file to access the database, so how would it help to change the prefix? I also ran into some simple javascript strings to display cookie information (I guess/hope from a computer, not from a server) and there’s of course that Google search list, but I couldn’t find anything serious there.
My temporary conclusion is that it is only through WP that a hacker can gain access to my database and that I don’t know many things to make that more difficult. I use Ask Apache, but that’s more for WP protection and perhaps it hides some usefull information for a hacker, but I wouldn’t know about that.So I guess my questions are:
1- How would a hacker try to access the database?;
2- What can I do myself to make that more difficult (other than descent usernames and passwords)?;
3- Do you think that changing table prefixes makes any difference?
- The topic ‘Database security’ is closed to new replies.