Re: Is the SA login secure

From: Jasper Smith (jasper_smith9_at_hotmail.com)
Date: 12/30/04


Date: Thu, 30 Dec 2004 00:39:15 -0000

It is encrypted but its very weak . If someone captured a network trace of
you logging in they would indeed be able to determine the password fairly
easily. If you want to see how easy it is, below is an example

--this is an example of a captured password packet
--actual password used was thequickbrownfox
/*
e2 a5 23 a5 f3 a5 b2 a5 f2 a5 33 a5 s.a...#. ......3.
000000B4 93 a5 13 a5 83 a5 82 a5 53 a5 d2 a5 43 a5 c3 a5 ........ S...C...
000000C4 53 a5 22 a5
*/
-- need to strip out the non password bytes
/*
e2 a5 23 a5 f3 a5 b2 a5 f2 a5 33 a5 93 a5 13 a5 83 a5 82 a5 53 a5 d2 a5 43
a5 c3 a5 53 a5 22 a5
*/
--form varbinary
declare @packet varchar(500)
set @packet = 'e2 a5 23 a5 f3 a5 b2 a5 f2 a5 33 a5 93 a5 13 a5 83 a5 82 a5
53 a5 d2 a5 43 a5 c3 a5 53 a5 22 a5'
set @packet = '0x'+REPLACE(@packet,' ','')
select @packet
--decode
select
dbo.decoder(0xe2a523a5f3a5b2a5f2a533a593a513a583a582a553a5d2a543a5c3a553a522a5)
as password

You can see the code for the decoder function here
http://www.sqldbatips.com/presentations/REALLY_HACKING_SQL.zip

-- 
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Buck Taylor" <BuckTaylor@discussions.microsoft.com> wrote in message 
news:491768E5-428E-4232-A6C9-6517326E3FA7@microsoft.com...
> When I login with an sa account to a SQL server on our network how is the
> login and password transferred? Is it encrypted in someway or transferred 
> in
> plain text? If someone had a sniffer on my network could they see the
> password just come across and grab it? 


Relevant Pages

  • Re: Changing Query behavior based on local vs. remote context?
    ... We had a business network and a process control network that had to be splittable for political reasons. ... They negotiated large frame sizes since they were both on FDDI, not considering that the equipment in the middle couldn't pass that big a packet. ... Microsoft SQL Server MVP ... do not do packet splitting can cause this. ...
    (microsoft.public.sqlserver.security)
  • Re: Is the SA login secure
    ... administrative account the DBA uses. ... > Jasper Smith (SQL Server MVP) ... >> When I login with an sa account to a SQL server on our network how is ...
    (microsoft.public.sqlserver.security)
  • Re: DTS and the Internet
    ... It's good to know it is not a login problem, so I can concentrate on the ... network part of the problem. ... >>Server Administrator and has all the permissions. ... > password) for a SQL Server login, ...
    (microsoft.public.sqlserver.dts)
  • Re: backing up to network share issue.
    ... As Tibor stated, this is not an SQL Server issue, it is a network ... The SQL login that is accessing the MSDE instance is not ... a factor in whether the process doing the backup has the correct permissions ...
    (microsoft.public.sqlserver.msde)
  • Re: Occasional delay in processing incoming packets
    ... James wrote: ... and the time Profiler claims SQL Server started ... way you can see if the problem is related to the network library. ... the packet until T+25. ...
    (microsoft.public.sqlserver.server)