in reply to Re^3: How to hide a password in a script?
in thread How to hide a password in a script?
As far as database access is concerned: use a login with minimal permissions in your script; or preferrably, don't go to the database directly at all. Set up a DBI proxy for the script instead; in there, you can filter or sanitize queries in any way you wish to. Make sure the database is not reachable in any way other than through the proxy.
If you do this right, it means that an attacker who obtains a login will not be able to do anything else with the database than he could have done with the web- or other interface for it which he started with.
This is the only true way to achieve security: not granting any more permissions than absolutely and inevitably necessary.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to hide a password in a script?
by BrowserUk (Patriarch) on Aug 07, 2004 at 06:27 UTC | |
by Aristotle (Chancellor) on Aug 07, 2004 at 06:43 UTC |