Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Connection String in global.asa

Reply
Thread Tools

Connection String in global.asa

 
 
fruddy
Guest
Posts: n/a
 
      03-01-2004
Hi everybody,
I currently have my SQL Server connection string in an
Application variable in the global.asa.

Could that be a security risk?

I have heard that with Cold Fusion, when there is a page error.... the
actual Connection String is written to the screen as part of the error
page....

I'm quite sure that would not occur in ASP but just wanted to be sure,
and get a few expert opinions....

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      03-01-2004
> I have heard that with Cold Fusion, when there is a page error.... the
> actual Connection String is written to the screen as part of the error
> page....


That sounds kind of weird to me...

> I'm quite sure that would not occur in ASP but just wanted to be sure,
> and get a few expert opinions....


global.asa should be fine, as long as you're not running a very early and
unpatched version of IIS 4.0.

Keep in mind, though, that your ASP pages are only as secure as the server
they're hosted on. No matter how deep you bury your connection string, it
is accessible to anyone who can penetrate the file system. Even if you bury
your connection string in a DLL, if your ASP pages can access it, then an
intruder could write an ASP page that uses response.write to display it (or,
if the connection string isn't a property, they could retrieve information
from running commands directly against the database via the DLL).

It's all about trade-offs...

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the connection pool size in the Sybase connection string? Wei Lu ASP .Net 2 02-16-2009 09:51 AM
Web.config: connection string or connection key? rlueneberg@gmail.com ASP .Net 3 08-03-2007 09:37 PM
Connection String object Convert to String Variable Type =?Utf-8?B?TWlrZSBNb29yZQ==?= ASP .Net 2 10-26-2004 02:43 PM
Re: String.replaceAll(String regex, String replacement) question Mladen Adamovic Java 0 12-04-2003 04:40 PM
connection string exception : Format of the initialization string does not conform to specification starting at index 0 Gaurav ASP .Net 0 11-07-2003 10:24 AM



Advertisments