Memcache Unauthorized Access Vulnerability

Source: Internet
Author: User

Memcache is a common set of Key-value cache system, because it does not have a rights control module, so the Open Network Memcache service is easy to be scanned by attackers, through command interaction can be directly read memcache sensitive information.

Fix solution:

Because Memcache has no rights control function, users are required to restrict access to the source.

Programme one:

If the memcache is not open in the external network, you can specify the IP address of the binding at the time memcached boot is 127.0.0.1. For example:

Memcached-d-M 1024-u root-l 127.0.0.1-p 11211-c 1024-p/tmp/memcached.pid

Where the-l parameter is specified as the native address.

Scenario Two: ( Note: Please configure iptables rules carefully )

If the Memcache service needs to be serviced externally, access control can be made through iptables.

Iptables-a input-p tcp-s 192.168.0.2--dport 11211-j ACCEPT

The above rule means that only 192.168.0.2 this IP is allowed to access port 11211.

Memcache Unauthorized Access Vulnerability

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.