News for hackers. Stuff that matters.
Re:How to steal a developer's local database by oandrei on Thursday September 01, 2016 @10:13PM (#12410350)
Perhaps a server, when running in development mode, should require a custom HTTP header? This would be a non-simple request, and the browser will refuse. Would this be a reasonable counter-measure?
Re:How to steal a developer's local database by manarth on Friday September 02, 2016 @09:12AM (#12412747)
The services discussed - memcached, redis, etc - don't use HTTP. The attack is successful because the protocols follow the robustness principle of 'be liberal in what you accept', and simply ignore the HTTP cruft, but still process the command.

For example:

POST / HTTP/1.1 << Ignored

Host: localhost:6379 << Ignored

SET abc 123 << Processed

QUIT << Processed

Re:How to steal a developer's local database by niftich on Thursday September 01, 2016 @10:15PM (#12410362)
A secret value, whether it's called a 'password', a 'key', a 'token', or comes in an 'Authorization' header or 'X-CustomHeader' is always a good countermeasure.
Re:How to steal a developer's local database by oandrei on Thursday September 01, 2016 @10:28PM (#12410409)
Right, but a custom HTTP header does not even have to contain a secret. I just has to have a non-standard name. Firefox will refuse setting it, right?