[zeromq-dev] Even more fun with accept
Erich Heine
sophacles at gmail.com
Fri May 1 16:18:00 CEST 2009
Id go a step further, and say that this is actually less exploitable than
the original method. Here is my reasoning:
A. Both methods are susceptible to boring resource (fd) exhuastion attacks.
However all tcp software suffers from some form of this (heck most
networking does). Hence the label boring.
B. The original method also suffers from CPU exhuastion during A. This can
degrade the performance of existing connetions.
C. The new method does not (theoretically...) suffer from the CPU problem
during A.
As an attacker I would much prefer to attack the original method,
(susceptible to A and B) because I do not necessarily need to fill the pipe
to DoS existing communications. Under the new method (A and C) I must first
succed with A, and/or fill the pipe do DoS comms for B.
Another thought on this, due to the low latency requirements for many of hte
systems 0mq is designed to work with, the A,B combo could do worse than
vanilla DoS, such as provide that little bit of latency which causes a
trading system to miss its profit window. (A friend of mine keeps talking
about shaving microseconds for just this reason).
Regards,
Erich
On Fri, May 1, 2009 at 6:11 AM, Pieter Hintjens <ph at imatix.com> wrote:
> On Fri, May 1, 2009 at 10:05 AM, Dhammika Pathirana <dhammika at gmail.com>
> wrote:
>
> > Isn't this exploitable? Another application on the server can
> > basically hijack the service.
>
> Nope, this is not about the listening socket but about new incoming
> connections.
>
> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20090501/e9a5a477/attachment.htm>
More information about the zeromq-dev
mailing list