CHAPTER 8
File Security Principles

We’ll Cover

image Keeping your source code secret

image Security through obscurity

image Forceful browsing

image Directory traversal

Even as widely used as relational SQL databases are, applications still store an enormous amount of data in plain old files, and this information can be just as critical or more so. Application configuration settings are stored in files. If an attacker could find a way to read these files—or even worse, write to them—then the whole security of the application could be put in jeopardy. We spent a lot of time and attention in the previous chapter talking about how important it is to secure your databases, and showing how to do this properly. But if you dig just a little deeper, you’ll find that all the data in the database is stored in files. If you don’t protect the files, you can’t protect your database.

What other kinds of critical data are stored in files on your web servers? For one, the executable code for your web applications is, either in source code or in compiled binary form depending on the framework and language you’re using. You definitely won’t want attackers getting a hold of that. And for that matter, the actual executable files that make up your operating system are stored on the server. So without good file system security, all the other defenses that you’ll implement are basically moot.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset