Threat Level: green Handler on Duty: Guy Bruneau

SANS ISC: InfoSec Handlers Diary Blog - Internet Storm Center Diary 2012-09-06 InfoSec Handlers Diary Blog

Sign Up for Free!   Forgot Password?
Log In or Sign Up for Free!

SSL Requests sent to port 80 (request for help/input)

Published: 2012-09-06
Last Updated: 2012-09-06 23:37:12 UTC
by Johannes Ullrich (Version: 1)
3 comment(s)

A while ago, a reader submitted some odd looking web log entries like the following:


default - - [06/Sep/2012:23:11:36 +0000] "\x16\x03" 200 15 "-" "-"
default - - [06/Sep/2012:23:12:26 +0000] "\x16\x03" 200 15 "-" "-"


After some experimenting, we figured out that these are SSL connection attempts that are directed at a non-SSL server. These log entries are common if your web server is misconfigured, and the SSL module is not enabled on port 443. But in this case, the log entries showed up on a web server listening on port 80.

To "force" an https request on port 80, you have to add the port explicitly to the URL. For example the log entries above, I created using the command:

wget https://webserver:80/index.html

The bytes "\x16\x03" are the first two payload bytes transmitted for the connection (a \x00 is the third byte, which terminates the string as far as the server is concerned). The server may actually still respond with a default error page. The server I used was configured to respond with a "200" code for any request (to make URL brute forcing harder).

The Wireshark analysis of course doesn't make much sense here:

However, luckily we can use Wireshark's "decode as" feature to make more sense of the packet. If we ask Wireshark to decode this traffic as SSL, we do get a perfectly fine Client Hello packet:

The "0x16" byte indicates that this is a "Handshake" and the "0x03" tells us that we are dealing with SSL 3.0. So now we can do a bit fingerprinting on these requests.

Here is a sample from today's ISC log:

\xd2\xa2 *\xcaUV\xd7\x0e\xab\xaa\x91A\x13\xf7E\xaf\x01\xc1\x9e\xbf\xd3

(I shortened some lines a bit to avoid page width problems)

Based on our analysis above, on the last two appear to be SSL requests. The others, appear to be "something else". Can you identify them? Telnet doesn't cause any additional characters to show in the log (I suspected telnet's terminal negotiation, but was not able to trigger the characters ). Have you seen similar entries in your logs? Haven't seen anything with SSH either. The SSH client first waits for the "banner" from the server before sending anything (I may have to wait longer).

Johannes B. Ullrich, Ph.D.
SANS Technology Institute

3 comment(s)
Diary Archives