security - CouchDB Authentication -


i've read lot of things authentication in couchdb, regarding cookie authentication. i'm still making tests , seems working well, instance command :

curl -vx post $host/_session -h 'application/x-www-form-urlencoded' -d 'name=foo&password=bar'

i cookie can use. point is, anytime see think kind of sample on web, username , password sent in plain text.

i'm new security what's interest of cookie auth method if first have send credentials in clear ?

is there way send @ least password hashed ? idk :

curl -vx post $host/_session -h 'application/x-www-form-urlencoded' -d 'name=foo&hashed_password=hashed_bar'

cheers

arnaud

if send password hashed attacker needs know hashed password wouldn't solve problem of sending password in cleartext - have problem of sending hash in cleartext.

also remember if solved problem still sending cookie in cleartext being vulnerable session hijacking.

(there's http digest access authentication not without own problems - couchdb didn't support last time checked anyway.)

what should use https authenticated couchdb access network involved, except maybe 127.0.0.0 network.

(and yes, pretty of examples on web and in books show using basic or cookie authentication on http in opinion disaster waiting happen.)


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -