Issue 316 in memcached: SASL authentication allows wrong credentials to access memcache

62 views
Skip to first unread message

memc...@googlecode.com

unread,
Apr 19, 2013, 5:11:48 AM4/19/13
to memc...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 316 by ras...@renderedtext.com: SASL authentication allows wrong
credentials to access memcache
http://code.google.com/p/memcached/issues/detail?id=316

What steps will reproduce the problem?
1. Ran memcached server with following flags -S -d -m 1024 0.0.0.0 -p 11211
-u ubuntu
2. Add user with saslpasswd2 -a memcached -c newuser
3. Pointed cached store: dalli_store, 'domain.com:11211', { :username =>
newuser, :password *** } (I am using dalli gem in Rails application)
4. When I try to access memcache with wrong credentials, on the first try I
get message that authentication failed, which is fine. But, when I try
again to access the cache it lets me do it even I have provided wrong
credentials.

What is the expected output? What do you see instead?

After failed authentication I shouldn't be able to access memcached and be
able to both read and write in it. When I try to access memcache without
providing any credentials I get rejected every time, which is what I
expect. Also when I provide valid credentials I get a message that SASL
authentication was successfull and then I have access to memcached, which
is also what I expect.

What version of the product are you using? On what operating system?

I am using memcached 1.4.10 and libevent 1.4.9 on Ubuntu 10.04.2 LTS

Please provide any additional information below.

These are the steps that I followed when installing memcached with SASL:

libevent:

cd /usr/src/
wget http://www.monkey.org/~provos/libevent-1.4.9-stable.tar.gz
tar xvfz libevent-1.4.9-stable.tar.gz
cd libevent-1.4.9-stable
./configure
make
make install

SASL packages:

sudo apt-get -f install libsasl2-2 sasl2-bin libsasl2-dev
libsasl2-modules

memcached:

cd /usr/src/
wget http://memcached.googlecode.com/files/memcached-1.4.10.tar.gz
tar -xzf memcached-1.4.10.tar.gz
cd memcached-1.4.10
./configure --enable-sasl
make
make install

I am starting memcached with following command:

memcached -S -d -m 1024 0.0.0.0 -p 11211 -u ubuntu


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

memc...@googlecode.com

unread,
Dec 20, 2013, 5:36:09 PM12/20/13
to memc...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 316 by dorma...@rydia.net: SASL authentication allows
wrong credentials to access memcache
http://code.google.com/p/memcached/issues/detail?id=316

fixed in 1.4.17. please let us know if it's not/etc.
Reply all
Reply to author
Forward
0 new messages