News for hackers. Stuff that matters.
Re:Post Mortem: A single whitespace character by spydum on Monday October 27, 2014 @08:43AM (#8515111)
The Server: cowboy tag is from an Erlang web server:

https://github.com/ninenines/cowboy/blob/master/src/cowboy_p...

I'm guessing around here would be interesting to add a test case to handle.

As far as whose server this is? I'd guess Heroku or AWS, though it's plenty possible T-Mobile could have devised some proxy to inspect traffic, but seems unlikely they would do so with Cowboy?

Re:Post Mortem: A single whitespace character by mischanix on Monday October 27, 2014 @08:59AM (#8515164)
It's simple enough to single out Heroku:

  $ cat <<EOF | nc example.herokuapp.com 80
  GET /test  HTTP/1.1
  
  EOF
  ----
  HTTP/1.1 505 HTTP Version Not Supported
Re:Post Mortem: A single whitespace character by 3ds on Monday October 27, 2014 @12:00PM (#8516278)
Your example fails with or without the whitespace. These work though:

Request

  printf 'GET / HTTP/1.1\r\nHost: example.herokuapp.com\r\n\r\n' |  nc example.herokuapp.com 80
Response

  HTTP/1.1 200 OK
  Connection: keep-alive
  Server: SimpleHTTP/0.6 Python/2.7.6
Request

  printf 'GET /  HTTP/1.1\r\nHost: example.herokuapp.com\r\n\r\n' |  nc example.herokuapp.com 80
Response

  HTTP/1.1 505 HTTP Version Not Supported
  Connection: close
  Server: Cowboy
Re:Post Mortem: A single whitespace character by mischanix on Monday October 27, 2014 @01:22PM (#8516800)
Ah right, forgot about the newline specification. I guess, for reference, the smallest string I can come up with to get Cowboy to spit that error message is '\x20\x20\n'. Parsers are fun.
Re:Post Mortem: A single whitespace character by davidw on Monday October 27, 2014 @09:09AM (#8515213)
Re:Post Mortem: A single whitespace character by lostcolony on Monday October 27, 2014 @08:48AM (#8515127)
T-mobile is known to have, in the past at least, used Erlang. And Cowboy is one of the most popular web servers within that community at this point.
Re:Post Mortem: A single whitespace character by jimrhoskins on Monday October 27, 2014 @02:51PM (#8517353)
Didn't heroku turn off legacy routing last week? I was getting emails warning me to update to their new routing rules by Monday. Seems like it could be related.
Re:Post Mortem: A single whitespace character by ams6110 on Monday October 27, 2014 @12:04PM (#8516304)
Erlang is from Ericson, a telecom company. T-Mobile is a telecom company. Doesn't seem a stretch that they would use erlang.