Re: dumb++ security
From: Ross Oliver (reo@roscoe.airaffair.com)Date: 02/21/02
- Next message: David Means: "Re: dumb++ security"
- Previous message: Amit Muthu: "Re: strange firewall log"
- In reply to: Buffy The Cache Coder: "dumb++ security"
- Next in thread: David Means: "Re: dumb++ security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: reo@roscoe.airaffair.com (Ross Oliver) Date: 20 Feb 2002 23:14:20 GMT
Buffy The Cache Coder <buffcoder@hotmail.com> wrote:
>These programs read username/password from a text file in a
>user's home directory. This information is used into Oracle
>or Sybase database. If the user doesn't have permission
>to connect to either database, the program doesn't run.
>
>The powers-that-be will be satisfied if I can have something
>slightly better than looking up a username and password from
>file. They want something in house for now and can
>be run on NT too. So what I need is a simple solution,
>but I'm lost for ideas. Anyhelp?
I assume your product is some sort of report generator, and you
want to allow your batch programs access to the database, but
assure that the user who runs the batch jobs can't use the
username and password to perform unauthorized database actions.
The need to grant batch jobs access to a database is a fairly common,
and is frequently "solved" in just the way you described: hide the
username and password in some file, and hope no one notices.
As you have surmized, this is a Bad Idea.
Here is a method I have used to address this problem:
1. Create a new database user "a" whose sole purpose is to
submit requests to run your batch programs.
2. Create a table "b" and grant the user "a" access to that table,
and nothing else.
3. Create a trigger and a stored procedure to invoke your batch
jobs whenever a record is inserted into the table "b".
4. Create a new batch job "c" that uses the user "a" username and
password to insert a record into table "b". A user can then
run your batch jobs by executing job "c".
You will still have to store the username and password for user
"a" in clear text somewhere for batch job "c" to use it , but the only
access this username and password will provide is the ability to
invoke your batch jobs. Denial-of-service protection is left as
an exercise for the reader ;-)
Ross Oliver
reo@tech-mavens.com
- Next message: David Means: "Re: dumb++ security"
- Previous message: Amit Muthu: "Re: strange firewall log"
- In reply to: Buffy The Cache Coder: "dumb++ security"
- Next in thread: David Means: "Re: dumb++ security"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|