Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Pen-Test
[Top] [All Lists]

RE: Hardcoded Database IP in ASP

Subject: RE: Hardcoded Database IP in ASP
Date: Mon, 18 Sep 2006 16:54:05 +1000
: -----Original Message-----
: From: listbounce@securityfocus.com
: [mailto:listbounce@securityfocus.com] On Behalf Of Darryl Stevens
: Subject: Hardcoded Database IP in ASP
: 
: Question: I have ASP script that points to a backend database residing
: on separate physical server. Is there any known way of getting around
: using a hard-coded IP address to point to the database? Would 
: utilizing the OS hosts file serve my purposes of and satisfy 
: secure code practices? Thanks guys.
: 
: Darryl

What threats, exactly, are you trying to secure against here?

You are changing from having the DB server's IP address directly in your code
to using a hostname in your code, and storing the corresponding IP address in
the hosts file. Are you afraid someone might get hold of the IP address? If
they did get this IP address, what would they do with it? And would storing
it in a hosts file help? A malicious attacker could simply connect using the
hostname, and Windows will resolve it to the IP address via a hosts file
lookup...

Cheers
Ken

------------------------------------------------------------------------
This List Sponsored by: Cenzic

Need to secure your web apps?
Cenzic Hailstorm finds vulnerabilities fast.
Click the link to buy it, try it or download Hailstorm for FREE.
http://www.cenzic.com/products_services/download_hailstorm.php
------------------------------------------------------------------------


<Prev in Thread] Current Thread [Next in Thread>