Live data from Hacker News

MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

kurtaubuchon.blogspot.com

11–20 of 20 posts

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#11
post #6

Isn't the 440 figure disingenuous? Surely you must count UDP/TCP header size, which would bring the value closer to 21/461 ~= 22. Still an interesting discovery. DDoS amplification is a security risk few people consider when developing applications.

Won't somebody think of the routers?!

Header size is 8-20 (without options) and if you read the article closelyer you'll see the total packet size was 480ish.

I dont know how you are getting 21/461 = 22 ?

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#12
post #9
post #6

Isn't the 440 figure disingenuous? Surely you must count UDP/TCP header size, which would bring the value closer to 21/461 ~= 22. Still an interesting discovery. DDoS amplification is a security risk few people consider when developing applications.

Agreed. As I see it there are two main design methods for overcoming this issue. The first is better for 'anonymous' services; require the client to send a packet of the same size as the buffer they want to receive. It's network in-efficient but for small requests better than the delay in setting up an actual session. It eliminates the chance of amplification attacks. The second is to establish /some/ kind of session…

I guess we are throwing UDP out the windows all together now? ;)

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#13
post #3

I'm genuinely curious - What are the reasons for exposing an SQL server directly to the internet? Obviously there's a bunch of people who have mis-configured and have accidently exposed their systems, but are there real-world reasons to expose a SQL server directly to the net? I would think most people who are sharing datasets would do so with some sort of API - and there'd need to be room for rate limiting / blackli…

In a word "laziness." It is just easier to log in and manage an SQL server if it is available on the internet. I know I'm certainly guilty of doing so for short periods when I'm off-site with no VPN and need to manage a server. Some sysadmins just get lazy and leave it available on the internet with strong passwords 24/7, just so once in a blue moon they can log in and manage it. Or are doing some kind of site to sit…

i did this with an AWS system because we never configured security keys properly -- basically got tired of whitelisting 1 IP at a time for development tasks, especially since I had issues accessing from behind corp firewalls.

client told me they got a big IO bill from AWS & i was deathly afraid it was from bots just probing the SQL server ports. thankfully it wasn't (it was from s3, they are a media heavy site with many users) but it reminded me not to just leave things accessible via internet, cuz even though it seems irrational to think someone would just probe you over & over, the fact is you have to pay an AWS bill, & attackers are just operating from their laptop.... if the amplification is right they can cost you looooots of $$ with no cost to them.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#15
Isn't this service disabled by default? I've never needed to enable it and I install new SQL Server instances just about every week. It's my understanding that nobody really needs a live list of all SQL Server instances on a server to be made available on the network, nevermind the Internet at large.

This is one of those legacy services that Microsoft keeps around just in case somebody wants it but it's been a long time since it had any changes or updates. What they really need to do is have it not even included with the product. It should be a download-only utility, for those that really, really want this on their systems.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#16
post #7

Earlier quoted context omitted.

It really is simple to use ssh to tunnel a port; that is always how I access SQL Server remotely. Laziness indeed.

You use SSH port tunnelling on a Windows Server to access MS SQL? I'd be surprised if that was "simple." But go ahead and explain it.

We do here where I work. We're running Bitvise SSH server on Server R2/2012 and you can use bitvise tunnelier or putty as the client(maybe others, just have used those two myself) and then connect via management studio once the SSH tunnel is connected. We also require both key and password auth. We also do RDP over the SSH connection as you can't remote to those machines directly.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#17
post #11
post #6

Isn't the 440 figure disingenuous? Surely you must count UDP/TCP header size, which would bring the value closer to 21/461 ~= 22. Still an interesting discovery. DDoS amplification is a security risk few people consider when developing applications.

Won't somebody think of the routers?! Header size is 8-20 (without options) and if you read the article closelyer you'll see the total packet size was 480ish. I dont know how you are getting 21/461 = 22 ?

I was being handwavy with the values (adding a fixed 20 bytes for header), but let's try something more precise:

    the average packet size was 483 bytes (average data
    length = 441 bytes)
So header size is 42 bytes (483 - 441). Assuming the request uses the same headers, we have 483 / (1+42) = 11.23 amplification.

My point is: this is important, but not a 440x amplification attack.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#18
post #3

I'm genuinely curious - What are the reasons for exposing an SQL server directly to the internet? Obviously there's a bunch of people who have mis-configured and have accidently exposed their systems, but are there real-world reasons to expose a SQL server directly to the net? I would think most people who are sharing datasets would do so with some sort of API - and there'd need to be room for rate limiting / blackli…

Obviously there's a bunch of people...

I guess 700k is a bunch...

https://www.shodan.io/search?query=port%3A%221434%22

Since we can't expect those jokers to fix anything, it's probably best to drop traffic on that port.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#19
post #16

Earlier quoted context omitted.

You use SSH port tunnelling on a Windows Server to access MS SQL? I'd be surprised if that was "simple." But go ahead and explain it.

We do here where I work. We're running Bitvise SSH server on Server R2/2012 and you can use bitvise tunnelier or putty as the client(maybe others, just have used those two myself) and then connect via management studio once the SSH tunnel is connected. We also require both key and password auth. We also do RDP over the SSH connection as you can't remote to those machines directly.

I'm not sure if $200 in third party software counts as easy. In particular when you could be using RRAS instead, which is built in.

Re: MS SQL Server Resolution Service enables reflected DDoS with 440x amplification

#20
post #16

Earlier quoted context omitted.

We do here where I work. We're running Bitvise SSH server on Server R2/2012 and you can use bitvise tunnelier or putty as the client(maybe others, just have used those two myself) and then connect via management studio once the SSH tunnel is connected. We also require both key and password auth. We also do RDP over the SSH connection as you can't remote to those machines directly.

I'm not sure if $200 in third party software counts as easy. In particular when you could be using RRAS instead, which is built in.

Bitvise server is $100, but now you want both simple and free? It's well worth the $100 IMO as it's pretty easy to setup and manage accounts and keys. You only said "simple" before, and I consider it pretty simple to get up and running. I didn't pay for it, but $100 one time is pretty negligible for what we use it for.
Post reply on HN