News for hackers. Stuff that matters.
Re:S3: Plus sign is interpreted as space in the path part of... by hnlmorg on Wednesday October 04, 2017 @08:43AM (#15400029)
It's common for HTTP servers to accept requests without a host header. It's not usually needed by the server unless you're hardening it (I don't class it as a security issue but some security audits will flag it up if you don't force the server to reject invalid host headers) or running named virtual hosts (which is more common than it used to be thanks to SNI but you still often see a 1:1 relationship between (virtual) hosts and IPs). So Amazon could easily have tested their client on 3rd party servers and still not spotted the problem.

As an anecdote, about 15/20ish years ago I wrote my own webbrowser. Obviously something highly rudimentary albeit browsers were much easier to implement back then anyway. I was too lazy to read the HTTP spec (it was a hobby project and I was young and impatient) so a lot of what I did was trial and error. I too wasn't sending a host header but it took long while before I ran into any sites that rejected my HTTP requests. The web landscape was very different back then though and IPs were plentiful but it just goes to show how servers have coded around bad clients for years.

Re:S3: Plus sign is interpreted as space in the path part of... by tazjin on Wednesday October 04, 2017 @09:21AM (#15400242)
> So Amazon could easily have tested their client on 3rd party servers and still not spotted the problem

This would still be a red flag, as the service in question is their instance metadata service that provides authentication tokens.

Something that important should be integration-tested with the actual service.

Re:S3: Plus sign is interpreted as space in the path part of... by hnlmorg on Wednesday October 04, 2017 @09:38AM (#15400341)
> This would still be a red flag,

Perhaps I don't understand the issue you're discussing but how would the client working on 3rd party services be a red flag when that is the desired behavior?

Re:S3: Plus sign is interpreted as space in the path part of... by tazjin on Wednesday October 04, 2017 @09:49AM (#15400414)
Sorry if this was unclear: It's a client that they specifically wrote to talk to their own services, and they're releasing it to their customers as an official way to talk to their own services. It could not talk to their own service.

Their own documentation refers to that library (or did at that point in time, not sure about now).

Re:S3: Plus sign is interpreted as space in the path part of... by hnlmorg on Wednesday October 04, 2017 @09:55AM (#15400447)
Ahh I did misunderstand you then. Sorry. Yeah that does sound bad.