dbTalk Databases Forums  

SQL Security

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SQL Security in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe Horton
 
Posts: n/a

Default SQL Security - 07-19-2004 , 02:50 PM






Our DBA has left some DTS Packages floating around with some connections using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open this package as we can add/change/modify the package to do things, using SA credentials.



Any great examples I can present him to show him how dangerous it is? The one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SQL Security - 07-19-2004 , 02:57 PM






Being able to do

SELECT * FROM master.dbo.sysxlogins

when logged in as the sa account is the least of you worries.

Remember sa is God and there is nothing they cannot do. He can drop all the
databases, remove others from the server etc.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Our DBA has left some DTS Packages floating around with some connections
using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open this
package as we can add/change/modify the package to do things, using SA
credentials.



Any great examples I can present him to show him how dangerous it is? The
one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"




Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: SQL Security - 07-20-2004 , 01:52 AM



In message <uMCQ2mcbEHA.3864 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Joe Horton
<horj235 (AT) at (DOT) lni.invalid> writes
Quote:
Our DBA has left some DTS Packages floating around with some
connections using “sa” and the password is saved.

*

I’m trying to demonstrate to him the danger in allowing anybody to open
this package as we can add/change/modify the package to do things,
using SA credentials.

*

Any great examples I can present him to show him how dangerous it is?*
The one thing I can do is:

*“SELECT * FROM******** master.dbo.sysxlogins”


Open the package
Add an Execute SQL Task with DROP DATABASE MyImportantDB in it and run
it, well don't but you could!

By default an user can open a DTS package. They cannot extract the
password, but they can add code and change it, although they may not be
able to save, the damage can be done there and then since you have the
connection details ready to be used if not visible.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #4  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: SQL Security - 07-20-2004 , 10:10 AM



Assuming the service account would allow it and you have the d drive:

exec master..xp_cmdshell 'format d:'

Having sa-ed package and a 'good' service account you can ruin the server or do more elaborate schemes such as hi-jacking network or stealing confidential information, etc.
"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Our DBA has left some DTS Packages floating around with some connections using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open this package as we can add/change/modify the package to do things, using SA credentials.



Any great examples I can present him to show him how dangerous it is? The one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"



Reply With Quote
  #5  
Old   
Joe Horton
 
Posts: n/a

Default Re: SQL Security - 07-20-2004 , 11:24 AM



Since it seems logical the DBA will have many such packages where he has 'sa-ed' the packages - is it just the norm to have passwords at the package level to preven users from using his connections?
"Ilya Margolin" <ilya (AT) unapen (DOT) com> wrote

Assuming the service account would allow it and you have the d drive:

exec master..xp_cmdshell 'format d:'

Having sa-ed package and a 'good' service account you can ruin the server or do more elaborate schemes such as hi-jacking network or stealing confidential information, etc.
"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Our DBA has left some DTS Packages floating around with some connections using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open this package as we can add/change/modify the package to do things, using SA credentials.



Any great examples I can present him to show him how dangerous it is? The one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"



Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SQL Security - 07-20-2004 , 12:30 PM



I do not think it normal that the DBA sa "sa-ed" anything. My opinion of
the sa account is you assign a strong password and put it in the fire safe.
You do not use it around the environment.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Since it seems logical the DBA will have many such packages where he has
'sa-ed' the packages - is it just the norm to have passwords at the package
level to preven users from using his connections?
"Ilya Margolin" <ilya (AT) unapen (DOT) com> wrote

Assuming the service account would allow it and you have the d drive:

exec master..xp_cmdshell 'format d:'

Having sa-ed package and a 'good' service account you can ruin the server
or do more elaborate schemes such as hi-jacking network or stealing
confidential information, etc.
"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Our DBA has left some DTS Packages floating around with some connections
using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open
this package as we can add/change/modify the package to do things, using SA
credentials.



Any great examples I can present him to show him how dangerous it is?
The one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"




Reply With Quote
  #7  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: SQL Security - 07-20-2004 , 12:36 PM



That is what passwords are for. I would say bigger the company more it should be a norm to password the packages. One should be watchful for other logins with sa rights as well. Especially with windows authentication. By default local admins and domain belong to BUILTIN\ADMINSTRATORS windows group and have sa rights on a server. So if the package is windows authenticated and the user if local admin...
"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Since it seems logical the DBA will have many such packages where he has 'sa-ed' the packages - is it just the norm to have passwords at the package level to preven users from using his connections?
"Ilya Margolin" <ilya (AT) unapen (DOT) com> wrote

Assuming the service account would allow it and you have the d drive:

exec master..xp_cmdshell 'format d:'

Having sa-ed package and a 'good' service account you can ruin the server or do more elaborate schemes such as hi-jacking network or stealing confidential information, etc.
"Joe Horton" <horj235 at lni dot wa dot gov> wrote

Our DBA has left some DTS Packages floating around with some connections using "sa" and the password is saved.



I'm trying to demonstrate to him the danger in allowing anybody to open this package as we can add/change/modify the package to do things, using SA credentials.



Any great examples I can present him to show him how dangerous it is? The one thing I can do is:

"SELECT * FROM master.dbo.sysxlogins"



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.