ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SQL security over the LAN

    IT Discussion
    9
    73
    7.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DonahueD
      Donahue @tonyshowoff
      last edited by

      @tonyshowoff said in SQL security over the LAN:

      @Dashrender said in SQL security over the LAN:

      @tonyshowoff said in SQL security over the LAN:

      @Donahue said in SQL security over the LAN:

      I don't know this this is to be expected, but a lot of the traffic is also smb2

      Since SQL Server 2008 you can use SQL over SMB2 rather than just TCP/IP or named pipes or shared memory. So I imagine that's how they're doing it, seems like needless overhead but based on everything else that's to be expected.

      Curious - why would you want to do it over SMB?

      It's sort of pseudo-configureless, you need not worry about ports or IPs and just go by name. The other side of that is you have to deal with SMB locking and other problems and it slows things down sometimes significantly.

      plus, it probably ties the customer in tighter into the MS ecosystem.

      tonyshowoffT 1 Reply Last reply Reply Quote 1
      • tonyshowoffT
        tonyshowoff @Donahue
        last edited by

        @Donahue said in SQL security over the LAN:

        @tonyshowoff said in SQL security over the LAN:

        @Dashrender said in SQL security over the LAN:

        @tonyshowoff said in SQL security over the LAN:

        @Donahue said in SQL security over the LAN:

        I don't know this this is to be expected, but a lot of the traffic is also smb2

        Since SQL Server 2008 you can use SQL over SMB2 rather than just TCP/IP or named pipes or shared memory. So I imagine that's how they're doing it, seems like needless overhead but based on everything else that's to be expected.

        Curious - why would you want to do it over SMB?

        It's sort of pseudo-configureless, you need not worry about ports or IPs and just go by name. The other side of that is you have to deal with SMB locking and other problems and it slows things down sometimes significantly.

        plus, it probably ties the customer in tighter into the MS ecosystem.

        Exactly, same reason they have all that COM+ garbage and other things that just add layers and layers of complexity to things. Ever wonder why Exchange Server and AD are such a bitch to get working and their clones aren't? Part of the justification for all these extra products is Microsoft tries to put them to use in their own, making them more and more bloated and difficult to get working. They've started to fix this in recent years by abandoning their own product lines and just doing things a more proper way. But if you installed Exchange 2003 or 2007 and had issues with it or with AD around that time, and all the tons of countless tools, scripts, etc you had to use, you'd get why these things happen to Windows but not as often on the same protocols hosted elsewhere.

        1 Reply Last reply Reply Quote 1
        • DonahueD
          Donahue
          last edited by

          Ok, so I have this vulnerability. Short of stopping use of this application, what can be done to mitigate the risk this presents?

          tonyshowoffT 1 Reply Last reply Reply Quote 0
          • tonyshowoffT
            tonyshowoff @Donahue
            last edited by

            @Donahue said in SQL security over the LAN:

            Ok, so I have this vulnerability. Short of stopping use of this application, what can be done to mitigate the risk this presents?

            Not if the application does not have it built in, such as TLS/SSL connections. There are way to mitigate it over the network such as a tunnel between the client and server, but on the client there's no defence at all, and that's really your vulnerable part.

            1 Reply Last reply Reply Quote 0
            • DashrenderD
              Dashrender
              last edited by

              Setup a TS and run the app from there. RDP into TS.

              tonyshowoffT DonahueD 2 Replies Last reply Reply Quote 1
              • tonyshowoffT
                tonyshowoff @Dashrender
                last edited by

                @Dashrender said in SQL security over the LAN:

                Setup a TS and run the app from there. RDP into TS.

                That doesn't fix the problem because the weak point is the client, it would just be moving the problem to another place, in fact it may be worse because then they could see the traffic of all the clients in a single place.

                DashrenderD 1 Reply Last reply Reply Quote 0
                • DonahueD
                  Donahue
                  last edited by Donahue

                  @tonyshowoff said in SQL security over the LAN:

                  @Donahue said in SQL security over the LAN:

                  Ok, so I have this vulnerability. Short of stopping use of this application, what can be done to mitigate the risk this presents?

                  Not if the application does not have it built in, such as TLS/SSL connections. There are way to mitigate it over the network such as a tunnel between the client and server, but on the client there's no defence at all, and that's really your vulnerable part.

                  that's what I thought.

                  I'm trying SQL injections now

                  1 Reply Last reply Reply Quote 0
                  • DonahueD
                    Donahue @Dashrender
                    last edited by

                    @Dashrender said in SQL security over the LAN:

                    Setup a TS and run the app from there. RDP into TS.

                    we already do that for half the users.

                    1 Reply Last reply Reply Quote 0
                    • DashrenderD
                      Dashrender @tonyshowoff
                      last edited by

                      @tonyshowoff said in SQL security over the LAN:

                      @Dashrender said in SQL security over the LAN:

                      Setup a TS and run the app from there. RDP into TS.

                      That doesn't fix the problem because the weak point is the client, it would just be moving the problem to another place, in fact it may be worse because then they could see the traffic of all the clients in a single place.

                      Right so keep that on its own network and only allow rdp traffic through to that network.

                      tonyshowoffT 1 Reply Last reply Reply Quote 0
                      • F
                        flaxking
                        last edited by

                        SQL Server Configuration Manager – SQL Server Network Configuration – right click “Protocols for ...” - Properties – Under the Flags tab, set Force Encryption to Yes

                        MS SQL Server will then use a self-signed certificate for encrypting communications. SQL clients have supported encryption for ages, so whatever they're using for the client will probably just work with it.

                        If you want to use your own trusted certificate, you have to set the SQL clients on each machine to force encryption and to only trust trusted certificates

                        tonyshowoffT 1 Reply Last reply Reply Quote 1
                        • F
                          flaxking
                          last edited by

                          And I doubt that the account being used actually has to be SA, but it would still have to use an account with full permissions on the database

                          1 Reply Last reply Reply Quote 2
                          • F
                            flaxking
                            last edited by

                            Also using an encrypted password in the ini file is at least better than using Windows Authentication and each user actually having full permission on the database and could alter data with with a connection to SQL outside of the application

                            1 Reply Last reply Reply Quote 0
                            • tonyshowoffT
                              tonyshowoff @Dashrender
                              last edited by tonyshowoff

                              @Dashrender said in SQL security over the LAN:

                              @tonyshowoff said in SQL security over the LAN:

                              @Dashrender said in SQL security over the LAN:

                              Setup a TS and run the app from there. RDP into TS.

                              That doesn't fix the problem because the weak point is the client, it would just be moving the problem to another place, in fact it may be worse because then they could see the traffic of all the clients in a single place.

                              Right so keep that on its own network and only allow rdp traffic through to that network.

                              That's still the same attack vector. If the client is on RDP and you watch within the RDP session, it doesn't matter if it's separate or not. In fact, as I said, it widens the amount of traffic you can listen to because you'll be able to spy on all clients on that RDP server.

                              1 Reply Last reply Reply Quote 0
                              • tonyshowoffT
                                tonyshowoff @flaxking
                                last edited by tonyshowoff

                                @flaxking That may work and is worth a try, but it's likely not to work because the client is passing along to SQL Server and it's not known whether or not they implemented, or allow, encrypted traffic within their SQL Server connection library. Even if implemented in the library, it doesn't mean the client allows it, and even may be intentionally disabled for God only knows what reason. It isn't an SQL client, it's an application which just connects to SQL Server or passes raw SQL along to an application server to avoid client connection licensing limits.

                                F 1 Reply Last reply Reply Quote 0
                                • ObsolesceO
                                  Obsolesce
                                  last edited by Obsolesce

                                  The AD authentication process is secure... Kerberos and all that which MS SQL server can use. After that point I don't know if there is a maintained secure channel from the authenticated app to the SQL server.

                                  tonyshowoffT 1 Reply Last reply Reply Quote 0
                                  • tonyshowoffT
                                    tonyshowoff @Obsolesce
                                    last edited by

                                    @Obsolesce said in SQL security over the LAN:

                                    The AD authentication process is secure... Kerberos and all that which MS SQL server can use. After that point I don't know if there is a maintained secure channel from the authenticated app to the SQL server.

                                    Not if you don't use one.

                                    ObsolesceO 1 Reply Last reply Reply Quote 0
                                    • ObsolesceO
                                      Obsolesce @tonyshowoff
                                      last edited by

                                      @tonyshowoff said in SQL security over the LAN:

                                      @Obsolesce said in SQL security over the LAN:

                                      The AD authentication process is secure... Kerberos and all that which MS SQL server can use. After that point I don't know if there is a maintained secure channel from the authenticated app to the SQL server.

                                      Not if you don't use one.

                                      One of what? AD? MS SQL? Authenticated app?

                                      I didn't read all 50 replies yet.

                                      tonyshowoffT 1 Reply Last reply Reply Quote 0
                                      • tonyshowoffT
                                        tonyshowoff @Obsolesce
                                        last edited by

                                        @Obsolesce

                                        After that point I don't know if there is a maintained secure channel from the authenticated app to the SQL server.

                                        Not if you don't use one of those. Having the option doesn't mean it's setup automatically, which I imagine you know, but I'm saying it rhetorically to point out the unfortunate situation.

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          flaxking @tonyshowoff
                                          last edited by

                                          @tonyshowoff said in SQL security over the LAN:

                                          @flaxking That may work and is worth a try, but it's likely not to work because the client is passing along to SQL Server and it's not known whether or not they implemented, or allow, encrypted traffic within their SQL Server connection library. Even if implemented in the library, it doesn't mean the client allows it, and even may be intentionally disabled for God only knows what reason. It isn't an SQL client, it's an application which just connects to SQL Server or passes raw SQL along to an application server to avoid client connection licensing limits.

                                          How would that avoid licencing? The MS SQL licencing doesn't care how a user connects, you have to get CALs for the actual users using it no matter the method used. (Unless using SQL Express)

                                          tonyshowoffT 1 Reply Last reply Reply Quote 0
                                          • DonahueD
                                            Donahue
                                            last edited by

                                            I think a lot of the aspects of this application are catering to customers that may only use SQL express. i've been looking, but I have not found yet, if express allows for encrypted connections. I have read that some of the encryption methods such as TDE are not in express though, and I wonder if they (the application developers) do what they do because they want to also let the application be used by express. I get the feeling that probably about half of their customers use SQL express and not the full meal deal.

                                            I got a reply from their support this morning basically telling me that "security was solely my responsibility" and I am just SOL. It's about what I expected.

                                            scottalanmillerS 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post