Clan x86

Technical (Development, Security, etc.) => General Security Information => Topic started by: iago on January 07, 2006, 02:58:05 AM

Title: Find the Flaw
Post by: iago on January 07, 2006, 02:58:05 AM
There's more to this story, but here's a situation.  Can you tell what they did wrong?

I want to implement a ping-type application, but I'm going to write my own protocol.  It is going to go over UDP, obviously, because you can't really ping with TCP, and II want it to be really simple, so here's what I do:
Client -> Server: 0x01
Server -> Client: 0x01

When I send the server a single byte, "1", it responds with the same byte, "1". 

There is an attack that can cripple a system like this.  Can anybody see it? (if you've heard about this, shh)
Title: Re: Find the Flaw
Post by: Blaze on January 07, 2006, 03:00:50 AM
[rot13]
Cvatvat lbhefrys?
[/rot13]
http://www.rot13.com/index.php
Title: Re: Find the Flaw
Post by: iago on January 07, 2006, 03:07:05 AM
Quote from: Blaze on January 07, 2006, 03:00:50 AM
[rot13]
Cvatvat lbhefrys?
[/rot13]
http://www.rot13.com/index.php

True, but that's not the main problem. 
Title: Re: Find the Flaw
Post by: igimo1 on January 07, 2006, 05:28:35 AM
...Have it send it to itself?
Title: Re: Find the Flaw
Post by: iago on January 07, 2006, 12:51:45 PM
Quote from: Topaz on January 07, 2006, 05:28:35 AM
...Have it send it to itself?
Explain?
Title: Re: Find the Flaw
Post by: Newby on January 07, 2006, 12:54:23 PM
Quote from: iago on January 07, 2006, 12:51:45 PM
Quote from: Topaz on January 07, 2006, 05:28:35 AM
...Have it send it to itself?
Explain?

Spoof the source IP as the destination IP!
Title: Re: Find the Flaw
Post by: Sidoh on January 07, 2006, 01:03:03 PM
Quote from: Newby on January 07, 2006, 12:54:23 PM
Spoof the source IP as the destination IP!

Oh, I see.  Then it's caught in an infinite loop sending it to itself!  Ha!  That's funny.  Well, couldn't you just make sure the IP isn't yours and isn't localhost?
Title: Re: Find the Flaw
Post by: iago on January 07, 2006, 01:26:09 PM
Quote from: Sidoh on January 07, 2006, 01:03:03 PM
Quote from: Newby on January 07, 2006, 12:54:23 PM
Spoof the source IP as the destination IP!

Oh, I see.  Then it's caught in an infinite loop sending it to itself!  Ha!  That's funny.  Well, couldn't you just make sure the IP isn't yours and isn't localhost?

Then have it spoof the ip of another server running that software.  They DoS each other!

And by the way, Microsoft's SQL Server 2000 did exactly that.  It was discovered in 2001, I believe, and is a really, really nasty Denial of Service :)
Title: Re: Find the Flaw
Post by: Sidoh on January 07, 2006, 01:32:07 PM
Quote from: iago on January 07, 2006, 01:26:09 PM
Then have it spoof the ip of another server running that software.  They DoS each other!

And by the way, Microsoft's SQL Server 2000 did exactly that.  It was discovered in 2001, I believe, and is a really, really nasty Denial of Service :)

That is nasty.