Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Security Problem

Re: Security Problem

From: John Hough <q6y_at_ornl.gov>
Date: 1997/04/14
Message-ID: <335247B5.5E08@ornl.gov>#1/1

Connor McDonald wrote:
>
> Insoo Kang wrote:
> >
> > We have an application that allows you to delete and update records in
> > a table. The problem is that a same user can login using sqlplus and
> > delete the entire records in a table. In order to prevent this, I
> > came up with the following scheme: revoke table access privilege if
> > a user is connecting via sqlplus or any other applications.
> >
> > I can write a trigger that sends a message to a pro*c application that
> > revokes table access privilege, but the problem is that v$session is a
> > view not a table so I can't write a trigger based on v$session view.
> > Does anybody have a suggestion how I can accomplish this whether it be
> > through a trigger or some other means?
> >
> > --Insoo
>
> Why not have two roles for the user, say, XXX_POWER_USER and
> XXX_SELECT_ONLY_USER. The user has both roles granted to them but only
> has the "SELECT_ONLY" enabled by default. So when they come in thru
> SQLPlus (or any other tool) they can only select.
>
> When they log on to the application, it just enables the role
> "POWER_USER" and off they go...Once they log out (ie disconnect) they
> will automatically resume just the "SELECT_ONLY" ability...
>
> The only real hole in this is if your users know how to issue their own
> "set role" commands .... which ours don't...

The solution to this is to have the role password enabled and store the password in the application. The user can try to set the role but without the password they cannot.

Hope this helps,

John Hough

>
> Cheers
> --
> Connor McDonald
> Systems Administrator-Unix/Oracle
> BHP Iron Ore
> "You're not drunk if you can lie on the floor without holding on"
> - Dean Martin
  Received on Mon Apr 14 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US