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 1373836 - Remove RC4 cipher and questionable MACs enabled by default from OpenSSH
Summary: Remove RC4 cipher and questionable MACs enabled by default from OpenSSH
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openssh
Version: 6.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Jelen
QA Contact: Stefan Dordevic
Mirek Jahoda
URL:
Whiteboard:
: 1417264 (view as bug list)
Depends On:
Blocks: 1335911
TreeView+ depends on / blocked
 
Reported: 2016-09-07 08:54 UTC by Jakub Svoboda
Modified: 2021-03-11 14:41 UTC (History)
14 users (show)

Fixed In Version: openssh-5.3p1-120.el6
Doc Type: Deprecated Functionality
Doc Text:
Deprecated algorithms in *OpenSSH*: RC4, hmac-md5, and hmac-md5-96 With this update, the `arcfour256`, `arcfour128`, `arcfour` ciphers and the `hmac-md5`, `hmac-md5-96` Method Authentication Code (MAC) algorithms are deprecated. Note that this change does not affect any existing server configuration. The system administrator can enable these deprecated algorithms by editing the `ssh_config` file, for example: Host legacy Ciphers arcfour MACs hmac-md5 To completely restore the deprecated functionality, add the following snippet to the `/etc/ssh/ssh_config` file: Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160@openssh.com,hmac-sha1-96,hmac-md5-96
Clone Of:
Environment:
Last Closed: 2017-03-21 10:02:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0641 0 normal SHIPPED_LIVE Moderate: openssh security and bug fix update 2017-03-21 12:31:22 UTC

Description Jakub Svoboda 2016-09-07 08:54:40 UTC
Description of problem:
The default configuration of openssh-server 6.7 disables some of the supported Ciphers and MACs. "In particular, CBC ciphers and arcfour* are disabled by default." [1]. MACs that are disabled by default are *md5*, *ripemd160*, *sha1*96*.

Version-Release number of selected component (if applicable):
openssh-5.3p1-118.1.el6_8

How reproducible:
always

Steps to Reproduce:

1. yum distribution-synchronization  # just to ensure the latest RHEL is installed

2. rm /etc/ssh/sshd_config

3. yum reinstall openssh-server      # recreates default /etc/ssh/sshd_config

4. sshd -T | grep -i "Ciphers\|MACs" # lists currently enabled Ciphers and MACs


Actual results:
The default enabled Ciphers include *cbc*, *arcfour*.
The default enabled MACs include *md5*, *ripemd160*, *sha1*96*.

Actual results of the command sshd -T | grep -i "Ciphers\|MACs"
ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijndael-cbc.se
macs hmac-md5,hmac-sha1,umac-64,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160,hmac-sha1-96,hmac-md5-96


Expected results:
Defaults follow recent OpenSSH upstream versions.
These Ciphers are disabled by default: *cbc*, *arcfour*.
These MACs are disabled by default: *md5*, *ripemd160*, *sha1*96*.

Expected results of the command sshd -T | grep -i "Ciphers\|MACs"
ciphers aes128-ctr,aes192-ctr,aes256-ctr
macs hmac-sha1,umac-64,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,hmac-ripemd160


Additional info:
* Red Hat's KB article about insecure Ciphers and MACs recommends non-default values [3]
* The latest RH-shipped version is 6.6.1p1 / 5.3p1; however it would be good to follow current security recommendations regarding the defaults.
* We have a Red Hat Insights rule for OpenSSH hardening that would get activated once the defaults in the openssh-server package are fixed. Red Hat Insights is a service to notify enrolled customers about problems on their systems. It is best when customers are not alerted about RHEL-default values.
* OpenSSH 6.7 through 7.1 disables hmac-sha1-etm and hmac-sha1 but OpenSSH 7.2 reenables it.
References:
[1] http://www.openssh.com/txt/release-6.7
[2] http://www.openssh.com/txt/release-7.2
[3] https://access.redhat.com/solutions/420283

Comment 22 Jakub Jelen 2016-11-15 09:29:46 UTC
Well ... my bad. You are right. It is a bug.
The hmac-md5-96 should not be removed from the server list. Only from the default client list. I will need to fix this. The test was obviously right. Sorry for the confusion.

Comment 28 Jakub Jelen 2017-02-01 15:09:21 UTC
*** Bug 1417264 has been marked as a duplicate of this bug. ***

Comment 29 Leonard den Ottolander 2017-02-01 15:17:15 UTC
Probably best to only leave around sha2-512 and sha2-256 enabled by default, and sha1 as a legacy option for HMACs.

Not just MD5 is considered broken, but also RIPEMD. See http://csrc.nist.gov/groups/ST/toolkit/documents/shs/hash_standards_comments.pdf . Note that this is a NIST statement from 2004, that is THIRTEEN YEARS AGO. Things have only deteriorated since then.

I'm not so sure the hype against CBC is warranted. With proper padding CBC is perfectly usable. Counter modes like GCM and CTR have their own issues, like injecting known state (albeit hashed/crypted) which should not be brushed aside so easily. Such known state injection might well be successfully leveraged by future cryptanalitic progress.

So personally I'm not entirely convinced GCM is that much more secure (or even more secure at all) than (properly implemented) CBC.

Comment 31 errata-xmlrpc 2017-03-21 10:02:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0641.html


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