[Libwebsockets] Autobahn Fuzzer

Andy Green andy at warmcat.com
Mon Dec 28 15:54:11 CET 2015

On 12/28/2015 05:43 PM, Andy Green wrote:

> Basically I didn't find anything scary so far, but I am still going.

There was nothing I found that had anything I could recognize as a 
security dimension.

> So... Autobahn has a couple of tests that I don't think belong in it,
> 2.10 and 2.11 test PING queuing on a single connection, that is not in
> RFC6455 and there is no point implementing that AFAICT.  Lws just keeps
> one ping in flight at a time and ignores the others until that one was
> sent. So we will fail those.
> Huge swathes of test are about expectations that we confirm UTF-8
> compliance of ws "text" message payloads.  Until now lws does not get
> involved in the content of the text messages leaving that for the user
> code.  Any feelings about that out there?

We pass everything I expect we should pass now.


  - 2.10 / 2.11 are spamming 10 PINGs without waiting for PONGs, we pass 
it sometimes because we happen to serve each PONG before we get the next 
PING.  But since on a single connection with only the two peer endpoints 
we never expect to get back to back queue of PINGs, this seems to not 
bring any value to support it.  Anyone think it's actually useful?

  - 6.* we don't check any UTF-8 as it is.  So we pass the ones that 
expect nothing special to happen and fail the rest.

  - 7.5.1 is actually a check for invalid UTF-8 in CLOSE, we don't check 
anything related to UTF-8

  - 12.* + 13.* claim compression "unimplemented" I didn't look at it yet.

Otherwise everything else passes.

I am not sure yet what to do about UTF-8.  I guess most users do not 
want lws bogged down with elaborate locale checks on every character 
that goes through it.  However if it could be confirmed in the parser 
state machine very cheaply maybe it should be done, for TEXT and CLOSE 
ws packet payloads.  I wrote a tiny parser for it already for lejp


If we don't really care about it but want to conform, we could implement 
an example of how to do in test-echo.  But that's messier than doing it 
in the lib since it has to hold state there between RX packets.


> -Andy

> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> http://ml.libwebsockets.org/mailman/listinfo/libwebsockets

More information about the Libwebsockets mailing list