[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::odbc_rdb_driver

Title:DEC ODBC Driver
Notice:DEC ODBC Driver V2.0 Now Available
Moderator:SQLSRV::MAVRIS
Created:Tue Dec 29 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1357
Total number of notes:4864

1304.0. "Datasource Read Only flag ignored" by ORAREP::MRSERV::PETERS () Wed Feb 19 1997 17:15

It appears an ODBC datasource Read Only flag can be ignored.

We have written a Visual Basic application which uses low level ODBC 
routines to access an RDB "reference" database. The application allows
the user to compose SQL statements that query this database and display
the query results in tabular format.

When the application starts up, it creates the appropriate datasource,
explicitly setting the Read Only flag. And, in fact, when the user
tries to alter the database, he gets the expected error.

HOWEVER, if the user enters an RDB SQL Attach statement to attach to that,
or another, database, then the user CAN make alterations to the table
data! This came as a complete surprise to us, as we assumed the Read Only
datasource flag meant ALL datasource access was on a Read Only basis.

Is this a serious security bug, or is there something we've overlooked?

Don
T.RTitleUserPersonal
Name
DateLines
1304.1UKVMS3::PJACKSONOracle UK Rdb SupportThu Feb 20 1997 07:2711
    If you want to secure your database do it on the server side. Set up
    the service so that it only has privilege to read the database.
    
    Setting the read only flag can help performance, but should not be
    regarded as a security measure. For one thing, it can be changed too
    easily. It does affect what the default transaction type is (as you
    saw), but can be overridden by applications that explicitly change the
    transaction types, or does things unsupported by ODBC, such as
    executing an attach statement.
    
    Peter
1304.2not a security feature...M5::JBALOGHFri Feb 21 1997 00:429
    as peter said in the previous reply, the read only flag only sets the
    default transaction. anyone who knows ODBC can write to a read only
    data source. 
    
    the read only flag was never intended as a security feature. again, use
    database protections in conjunction with database classes to maintain
    security on your Rdb db. 
    
    john