RE: Hiding MS SQL databases in Enterprise Manager

From: Henry Sieff (hsieff_at_orthodon.com)
Date: 11/18/03

  • Next message: Davor Perat: "RE: MS03-049 Scanner?"
    To: 'Chris Ess' <securityfocus@cae.tokimi.net>, focus-ms@securityfocus.com
    Date: Tue, 18 Nov 2003 11:48:09 -0600
    
    

    Actually, there is no way to do this. In query Analyzer, users are blocked
    from seeing databases that they have no access to (because of the was query
    analyzer enumerates the databases).

    You see, enumerating the databases is a function of reading the table
    sysdatabases in the Master database. All users have to be able to read this
    table in general. Query Analyzer goes further and checks permissions before
    enumerating, EM doesn't. But, even in QA, the user could run a query against
    master to find the database.

    Your best bet is to move users away from EM, since its actually a poor tool
    for working with the data (its intention is administration, not data
    access). However, if you are a hosting provider and your users ARE using EM
    to administer their specific db's, then the only way you are going to get
    around htis problem is to multiple virtual instances of SQL server for each
    client.

    We use Query Analyzer for raw data access, and Access/VB forms or web pages
    for users. EM is only for administration.

    Henry

    > -----Original Message-----
    > From: Chris Ess [mailto:securityfocus@cae.tokimi.net]
    > Sent: Monday, November 17, 2003 9:22 AM
    > To: focus-ms@securityfocus.com
    > Subject: Hiding MS SQL databases in Enterprise Manager
    >
    >
    > I figure there has to be a way to do this. Unfortunately, I've been
    > unable to turn up anything on google, so...
    >
    > When I create a database in the Microsoft SQL Server, it
    > shows up under
    > 'Databases' in Enterprise Manager for any user who logs in,
    > whether or not
    > they have permissions to access it. Since this could potentially be a
    > security issue, I would like to set it up so that users can only see
    > databases for which they've been assigned a role.
    >
    > The SQL server uses mixed-mode authentication and cannot be changed.
    >
    > The server in question is currently Microsoft SQL Server 7,
    > but any advice
    > or pointers for Microsoft SQL Server 2000 would be
    > appreciated as well.
    >
    > Sincerely,
    >
    >
    > Chris Ess
    > System Administrator / CDTT (Certified Duct Tape Technician)
    >
    > --------------------------------------------------------------
    > -------------
    > Network with over 10,000 of the brightest minds in
    > information security
    > at the largest, most highly-anticipated industry event of the year.
    > Don't miss RSA Conference 2004! Choose from over 200 class
    > sessions and
    > see demos from more than 250 industry vendors. If your job touches
    > security, you need to be here. Learn more or register at
    > http://www.securityfocus.com/sponsor/RSA_focus-ms_031027
    > and use priority code SF4.
    > --------------------------------------------------------------
    > -------------
    >

    ---------------------------------------------------------------------------
    Network with over 10,000 of the brightest minds in information security
    at the largest, most highly-anticipated industry event of the year.
    Don't miss RSA Conference 2004! Choose from over 200 class sessions and
    see demos from more than 250 industry vendors. If your job touches
    security, you need to be here. Learn more or register at
    http://www.securityfocus.com/sponsor/RSA_focus-ms_031027
    and use priority code SF4.
    ---------------------------------------------------------------------------


  • Next message: Davor Perat: "RE: MS03-049 Scanner?"

    Relevant Pages

    • Re: Configuring SQL 2000 for use with ESRI ArcSDE
      ... You can assign SQL Server users to database roles using sp_addrolemember: ... Permissions are entirely application specific. ... vendor for clarification of security requirements. ... I have Two databases 3 Roles ...
      (microsoft.public.sqlserver.server)
    • Re: SQL Server Theory - Multiple Identical Databases
      ... Have you considered using owner to keep objects separate. ... when you log in as an 'HSBC' user...you have security to only ... > may actually need separate databases. ... I am NOT a sql server expert. ...
      (microsoft.public.sqlserver.server)
    • Re: Recover db after disaster test
      ... No, in the query analyzer i can only see the instance, no databases. ... There if got an error message that he couldn't find sql server services. ...
      (microsoft.public.sqlserver.connect)
    • RE: Easier way?
      ... You can also create SQL Server CE 2.0 databases through our Query Analyzer utility. ... SQL Server CE 2.0 databases can only be created on the device or emulator. ... For more information on the 3.0 release of SQL Server CE, refer to ...
      (microsoft.public.sqlserver.ce)
    • Re: using sa with SQL 2005 problem??
      ... I strongly encourage you to take the oppurtunity to fix your security hole. ... attached my old databases. ... I can connect to SQL Server using the SQL Server Management ... books on ASP.NET seem to mention the proper setup of security settings for the ...
      (microsoft.public.dotnet.framework.aspnet)

  • Quantcast