K
K
korjik2012-02-24 16:21:37
Nginx
korjik, 2012-02-24 16:21:37

Nginx logs passwords in POST

Hey!

It costs nginx + passenger with default log settings. For some reason, data like this is stored in the logs:

[24/Feb/2012:10:07:59 +0000] "POST /users/authenticate.xml?login= korjik &owner_id=1&password= password HTTP/1.1"

Rummaged Google to get rid of from this. What do you advise?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
VBart, 2012-02-24
@VBart

Obviously because the passwords were not passed in the post body, but as uri arguments.

@
@Defined, 2012-02-24
_

It is better to transmit hashed passwords in general, also with a salt inside.

P
pel, 2012-02-24
@pel

Disable logging - an option?
wiki.nginx.org/NginxHttpLogModule#access_log
Or maybe changing the log format will do?
wiki.nginx.org/NginxHttpLogModule#log_format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question