RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1550066 - memcached bind to all interfaces by default
Summary: memcached bind to all interfaces by default
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: memcached
Version: 7.4
Hardware: All
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Miroslav Lichvar
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 1549752 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-28 12:42 UTC by Andrey Bondarenko
Modified: 2021-06-10 14:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-06 15:37:16 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CentOS 14541 0 None None None 2018-02-28 12:42:47 UTC

Description Andrey Bondarenko 2018-02-28 12:42:48 UTC
Description of problem:

memecached bind to all interfaces by default that makes weak default config. If user for any reason shuts down the firewall

 - one can send random commands to the memcached, like flush noreply
 - it can be used as DDOS amplification node, see


https://medium.com/@qratorlabs/the-memcached-amplification-attack-reaching-500-gbps-b439a7b83c98
https://www.arbornetworks.com/blog/asert/memcached-reflection-amplification-description-ddos-attack-mitigation-recommendations/
https://www.bleepingcomputer.com/news/security/memcache-servers-can-be-abused-for-insanely-massive-ddos-attacks/

Version-Release number of selected component (if applicable):


How reproducible:

1 install memecached
2
 cat /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS=""



Actual results:
OPTIONS=""

Expected results:
 OPTIONS="-l 127.0.0.1,::1"

Additional info:
It's correct in Fedora

Comment 2 Miroslav Lichvar 2018-02-28 13:22:40 UTC
*** Bug 1549752 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Lichvar 2018-02-28 13:31:04 UTC
The trouble with changing the default config to listen only on the loopback interface is that it will break the service for users who need remote access and have not changed their config.

Also, changing the default config will not work for users who have modified the file, but still allow remote access even when they don't need it.

The security team will need to consider the change.

Comment 4 Miroslav Lichvar 2018-03-01 09:16:12 UTC
FWIW, in the latest upstream code the UDP port is disabled by default.

https://github.com/memcached/memcached/commit/dbb7a8af90054bf4ef51f5814ef7ceb17d83d974

Comment 6 Clifford Perry 2018-03-01 17:34:05 UTC
As a side note, we have proposed an additional section in the RHEL Security Guide for future inclusion. This is tracked within https://bugzilla.redhat.com/show_bug.cgi?id=1550654   

Cliff.

Comment 9 Riccardo Schirone 2018-03-02 13:33:02 UTC
memcached 1.5.6 release notes:
https://github.com/memcached/memcached/wiki/ReleaseNotes156

Comment 11 Red Hat Bugzilla Rules Engine 2018-11-06 15:37:16 UTC
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.