Answer

Preventing Web database access with a triple-homed firewall

From a network topology perspective, what's the most effective way to ensure our database isn't accessed from the Web, either via search engines or otherwise?

    Requires Free Membership to View

Ask a question

Got a vexing problem for Mike Chapple or any of our other experts? Ask your enterprise-specific questions today! (All questions are anonymous.)

The best way to prevent access to your database from the Web is to completely block all access to your database from the Web, and verify you've done so successfully.

Using firewalls to prevent all direct access from the Internet to a database server is foremost among generally accepted database security best practices on the infosec landscape. The most common way of achieving these best practices is with a triple-homed firewall, as illustrated below:

Your database server, accessible only to systems within your organization, should be located in the intranet zone. The firewall should be configured in a manner that prohibits any direct access from the Internet to the intranet. 

You may, of course, wish to have database-driven Web applications that are publicly accessible. In that scenario, you should place the Web server in the DMZ, where it is accessible to users on the Internet and can access the database server on the intranet. The Web server then serves as a buffer between end users and the database server, prohibiting direct Web database access.

Finally, be sure to document and verify your configurations and ensure the network and database are hardened against attacks. Even the most securely designed network-database architecture can be defeated if firewall rules are misconfigured or important updates aren't applied. If your organization has database-driven Web applications, you should take care to ensure they have been hardened against SQL injection and similar attacks that might allow an attacker to leverage the Web server to gain access to the underlying database.

This was first published in July 2012

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: