Tell me more ×
IT Security Stack Exchange is a question and answer site for IT security professionals. It's 100% free, no registration required.

What are the security advantages of installing the database of a web application on a server other than the one containing the web server?

share|improve this question
1  
IMHO...there are security benefits to this approach (answered alreay by others), but they're not big benefits - if someone can compromise your webserver, then they have access to the credentials used for accessing the DB, without having to escalate privileges. OTOH for a given budget, with web/application servers you'll get more performance / availability from multiple basic machines - but for a DBMS, big iron is usually the most cost effective approach - which pretty much requires seperate machines. – symcbean May 30 '12 at 11:33

2 Answers

up vote 6 down vote accepted

Well the first obvious advantage is that if someone breaks the box that houses your application server, they are not guaranteed access to the same server that houses the database. Also, by separating this functionality you make it easier on the IT (software devs, admins, etc) to minimize code change impact / policy updates on different aspects of the environment. This does not in any way fix poor coding or weak security (SQL injection, default username/passwords). but it does facilitate a better security posture overall.

share|improve this answer

Well, by separating the web server from the database server, if a user can exploit the web application and elevate their own privileges they can mess with your data, but only as much as the security model on the database server will let them. For instance, while they can read and write customer data - if they can reverse engineer how the web app does it - they can't bulk download the entire database, or delete it completely, or corrupt/compromise/otherwise degrade it by rewriting its schema. Moreover, new generation application-specific firewalls and IDS systems designed to protect your database server can detect and block unusual access based on known attack signatures and heuristics, protecting your data from compromised client access.

This comes in reeeeeal handy if the database server feeds a number of web servers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.