Re: major security concern - any sql user with minimal permission can see code for all stored procs and triggers

From: Richard Waymire [MS] (rwaymi_ms@microsoft.com)
Date: 05/23/02


From: "Richard Waymire [MS]" <rwaymi_ms@microsoft.com>
Date: Wed, 22 May 2002 17:15:11 -0700


Yup - but while true the question is: Are you still in a supported
configuration? If something really went wrong with your server are you
going to be able to fix it if you lock it down like this?

I don't know the answers but I can say that if you start doing stuff like
this you may well enter the realm of an unsupported configuration and that's
why we don't say/recommend stuff like this.

--
Richard Waymire, MCSE, MCDBA
This posting is provided "AS IS" with no warranties, and confers no rights.
"Trayce Jordan" <trayce@jordanhome.net> wrote in message
news:e7UxkxeACHA.1048@tkmsftngp02...
> I don't believe this is entirely true.  by default - yes i agree because
> public is granted to most if not all of these objects.  if however you
> remove select access (and execute access on selected stored procs in the
> master and msdb databases) from certain systables (syscomments is where
the
> source code for procs, etc. is stored) - then a user won't have "full
> access" to the meta data.
>
> I'm currently working on what I can and can't remove to make all this
work,
> but I'm already restricting access for a user to only 3 user tables and
the
> sysusers table and that's it.  it seems to work. ---  Now that user CAN
NOT
> use enterprise manager anylonger because all of the necessary objects it
> needs to run have been removed from public access.
>
> If your  goal is to give "customized" access for the user to "create"
> things - and hence has enterprise manager - then this approach won't work.
> If you just want to lock down a database, then I'd try my approace - lock
> down everything and add back as necessary - it can be a real pain and I'm
> not through with my experiments - but so far so good.
>
> Definitely experiment in a test or development environment - and do it all
> through scripts so that you have a reproducible environment to move into
> production.
>
> Trayce Jordan MCDBA, MCSD
>
> "Richard Waymire [MS]" <rwaymi_ms@microsoft.com> wrote in message
> news:OUMpMSd$BHA.1828@tkmsftngp05...
> > no, you're not missing anything. Current design is that if you are a
user
> > (with any permissions at all) in a database then you can see all the
> > metadata in the database.  No supported way to change this.
> >
> > --
> > Richard Waymire, MCSE, MCDBA
> >
> > This posting is provided "AS IS" with no warranties, and confers no
> rights.
> > "Pankul Verma" <pankul@urbanwireless.com> wrote in message
> > news:OQsnJ#D$BHA.2200@tkmsftngp02...
> > > I created a SQL authenticated login to my sqlserver for a business
> partner
> > > who needed to execute an SP on my server at his location. gave him
> > > permission only on 1 SP (no tables etc)
> > >
> > > before rolling out, I did my homework,
> > > connected from a remote location to my SQL server at port 1433, and
the
> > > application worked
> > >
> > > now I used Enterprise Manager to add the SQL Server from my remote
> > location,
> > > which gave me the access to view each and every Stored Proc, trigger,
> > table
> > > DRI etc ...
> > > infact i was able to Script my entire database using this.
> > >
> > > same results from query analyser ...
> > >
> > > obviously I cud'nt select data from tables or execute SPs that i did
not
> > > have access to, however ... this raises a big concern of security for
> me,
> > if
> > > a guy can see all the source code, its not nice!
> > >
> > > Am I missing somehting?
> > >
> > > Pankul
> > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Config for OLTP system
    ... extrenal disks fo the 60GByte database server. ... IBM Informix Dynamic Server Configuration Parameters ... # BUFFSIZE - OnLine no longer supports this configuration parameter. ...
    (comp.databases.informix)
  • RE: sps Recovery ERROR:database schema is too old to perform
    ... Basically I was trying to use both the content and the configuration ... database files of WSS on a virtual server "MyWSS" that used to ... "MyServer2" with the same virtual server name... ... database server needed to be changed as well. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: restore master and not working the enterprise manager**
    ... Enterprise Manager is different from what's stored in the backup. ... I suggest you go to command prompt, and login to SQL Server using the same ... specify the default database as master). ... restored now) was taken, then you will have to restore or attach those ...
    (microsoft.public.sqlserver.server)
  • Re: Issues with Share Point Services after removing and restoring companyweb
    ... 1.Please check the server configuration at ... click set configuration database server,in the database server textbox,it ... message when you access your Windows SharePoint Services Web site ...
    (microsoft.public.windows.server.sbs)
  • RE: WSS install locked into MSDE DB - Can not install for SQL Serv
    ... For the MASTER database ... Althought we change the Configuration Application pool several times ... interface BUT they appear to be MSDE databases and not SQL Server databases. ...
    (microsoft.public.sharepoint.windowsservices)