Memcached Enumeration with libmemcached tools
Enumerate Memcached servers using libmemcached CLI tools to extract stats, dump cached keys, and retrieve stored values for reconnaissance.
HackIndex.io
Language
Memcached is a high-performance, distributed in-memory key-value cache used to speed up web applications by caching database queries, API responses, and session data. It listens on TCP and UDP port 11211. Nmap identifies it as memcache.
Memcached has no built-in authentication or encryption. Any client that can reach port 11211 can read and write cached data. Exposed instances frequently leak session tokens, user credentials, application secrets, and database query results. The UDP protocol support has been exploited in massive DDoS amplification attacks, where a small spoofed request generates a disproportionately large response aimed at the victim.
Enumeration involves connecting via telnet or netcat and running stats to retrieve server information, then stats items and stats cachedump to list and dump cached keys. Tools like memcdump and memccat from libmemcached automate extraction. Cached data often contains serialized objects that can be manipulated for deserialization attacks when written back.
Nmap, key dumps, UDP checks, SASL, and TLS enum guides
Enumerate Memcached servers using libmemcached CLI tools to extract stats, dump cached keys, and retrieve stored values for reconnaissance.
Dump and transfer all Memcached keys and values for offline analysis
Find exposed cache data and test for UDP amplification risks
Extract cache data and session tokens from unauthenticated Memcached
We use cookies to improve your browsing experience, analyze site traffic, and personalize content. By clicking "Accept All", you consent to our use of cookies. Privacy Policy.