sslscan icon indicating copy to clipboard operation
sslscan copied to clipboard

Protocols not supported when a warning is returned

Open rbsec opened this issue 5 years ago • 2 comments

The protocol scan will show protocols as disabled if they return a warning, even if the handshake then completes successfully.

The response to the initial ClientHello can have a content type of Alert (21) with the level of Warning (1), but the handshake still succeeds.

https://github.com/rbsec/sslscan/blob/master/sslscan.c#L4992

We need to check if it is a warning, and if so then read the next packet to see if we get a ServerHello.

rbsec avatar Nov 25 '20 11:11 rbsec

Interesting. Do you happen to know how to reproduce this scenario? I'm drawing blanks...

jtesta avatar Nov 25 '20 15:11 jtesta

I was scanning a FortiWeb appliance that was returning unrecognized_name (code 112) response on the admin interface. It did this regardless of whether I used the proper hostname or IP address.

rbsec avatar Nov 25 '20 17:11 rbsec