Security
What's new in OpenSSH 6.5 (and 6.6)
Version 6.5 of the OpenSSH suite was released in late January, bringing with it a host of new features. A 6.6 release followed, primarily to provide an important bug fix, but most users will still find the feature set introduced in OpenSSH 6.5 to be the more significant enhancement. That feature set includes support for additional key exchange and signature functions, configuration improvements, and dropping support for several out-of-date options that are no longer regarded as secure.
OpenSSH, like the OpenBSD project where it originated, makes fairly frequent releases with automatic increments of the version number, but while OpenSSH 6.3 was released in September 2013 and 6.4 in November, neither of those releases debuted much new functionality. So when version 6.5 was made available on January 30 as a feature-focused release, it had been nearly a year since our last look at what has changed.
Cryptography
The headline cryptographic feature in 6.5 is the addition of support for Daniel J. Bernstein's Curve25519 key exchange function. Curve25519 is an elliptic curve (and accompanying parameter set) designed for use in the Elliptic Curve Diffie–Hellman (ECDH) key agreement protocol. Bernstein developed it to meet a set of specific characteristics, the first of which was extremely fast computation speed. When the paper [PDF] describing Curve25519 was published in 2006, Bernstein's implementation set new speed records for all strong Diffie-Hellman functions. It is also immune to timing attacks that can undermine related functions, and offers several other properties that make it efficient—such as the lack of any need to validate whether an input string is a valid public key (an operation that can significantly slow down the function, but which Bernstein notes is rarely reported in the advertised metrics of other functions).
OpenSSH 6.5 can not only use Curve25519 for ECDH key agreement, it is now the default option when both endpoints of the connection support it. The curve is a popular choice in other security tools, and has become particularly popular since the 2013 revelation that the NSA deliberately included a weakness in the Dual_EC_DRBG function. That event, of course, subsequently cast doubt (in many minds) on other algorithms and functions approved by the US National Institute of Standards and Technology (NIST) or released by RSA, the vendor that implemented Dual_EC_DRBG.
A related addition is support for Ed25519 as a public key format for digital signatures. Ed25519 is a function for use in EdDSA, an elliptic curve signature scheme with stronger security guarantees than ECDSA and DSA—such as resilience to hash-function collision and timing attacks. Like Curve25519, Ed25519 was designed with high speed in mind. Bernstein developed it in conjunction with a team of researchers at other universities.
The new release also adds a new storage format for private keys that is based on bcrypt hashing. It is used automatically for Ed25519 keys and is an option for other key types. The release notes indicate that the OpenSSH team has plans to make it the default storage format for other key types in some future release.
There is also a new SSH2 transport cipher named
"chacha20-poly1305@openssh.com" in OpenSSH 6.5. It combines
Bernstein's ChaCha20 stream cipher and Poly1305
message-authentication code (MAC). A detailed
description is included in the documentation. The cipher is
similar to a stream cipher recently proposed
for TLS; regardless of where the TLS proposal ends up, though,
OpenSSH's Damien Miller wrote
on his blog that a new option for OpenSSH was needed, since RC4
"is pretty close to broken now
" and lacked
authentication. Among the new cipher's interesting features is that it
uses a separate cipher instance to encrypt packets' length fields.
That protects against attackers learning anything about the message
payload's contents merely by manipulating packet lengths.
Options and configuration
In addition to the new ciphers and functions, several other noteworthy changes landed in OpenSSH 6.5. Support has dropped for older, proprietary SSH clients and servers that use the now-obsolete RSA+MD5 signature format, and those that use weak key-exchange hashes. The ssh and sshd programs will still connect to these old endpoints if they also support stronger key and hash options, but the release notes caution that support will eventually be dropped entirely.
There are several new configuration options and features that
should, hopefully, make life easier for users and system
administrators. ssh_config now supports conditional
configuration rules that can be applied by matching against hostname,
user, and command output. ssh now supports hostname
canonicalization when looking for keys in known_hosts or when
looking for host certificates. As a practical matter, this means that
the forgetful among us can connect with ssh myserver
when we really should have typed
ssh myserver.mydomain.com. The canonicalization feature
can be configured for better security—for example, by
restricting it to a sensible set of DNS suffixes.
Other feature additions include the ability to blacklist and whitelist SFTP requests in sftp-server, support for calling fsync() on an open file handle through SFTP, and the ability to disable TTY allocation for clients connecting to sshd. Finally, in keeping with the recommendations from NIST Special Publication 800-57, the size of the Diffie-Hellman groups requested for each symmetric key size has been increased.
The 6.6 release
OpenSSH 6.6 was released on March 15, which marked a bit of short development cycle since 6.5. The main reason was that the 6.5 release unintentionally made configuration file parsing case-insensitive. In an email, Miller said that he decided to release a small update with the case-sensitivity fix early, since new OpenBSD and Ubuntu releases are on the horizon—better, he said, to not let parsing errors become entrenched in users' configurations.
Nevertheless, there were a few other changes added to 6.6. Support for the J-PAKE (Password Authenticated Key Exchange by Juggling) key-agreement protocol was removed. The OpenSSH implementation was only included as an experimental feature in previous releases, and was unmaintained. The hostname canonicalization feature was also improved; now whenever the canonicalization changes the hostname, the ssh_config configuration is re-parsed, so that any rules that match the now-canonical hostname (but did not match the hostname as originally entered) are not skipped. Finally, a security fix was included that prevents sshd from incorrectly matching wildcards in environment variables.
It is certainly possible for those of us who do not grapple with cryptography on a daily basis to occasionally get lost in the details of new algorithms and functions. But OpenSSH 6.5's Curve25519 and Ed25519 support has a practical side: increased speed and resistance to attack vectors that are exploitable even in other ECDH and signature implementations. That, plus the enhancements to configuration options, certainly make this a release worth exploring.
Brief items
Security quotes of the week
Shuttleworth: ACPI, firmware and your security
Mark Shuttleworth argues against the use of ACPI in "next-generation devices" on the basis that it is a huge security hole. "If you read the catalogue of spy tools and digital weaponry provided to us by Edward Snowden, you’ll see that firmware on your device is the NSA’s best friend. Your biggest mistake might be to assume that the NSA is the only institution abusing this position of trust – in fact, it’s reasonable to assume that all firmware is a cesspool of insecurity courtesy of incompetence of the worst degree from manufacturers, and competence of the highest degree from a very wide range of such agencies."
10,000 Linux servers hit by malware (ars technica)
Ars technica takes a look at an ongoing criminal operation infecting more than 10,000 Unix and Linux servers with malware that sends spam and redirects end users to malicious Web pages. "Windigo, as the attack campaign has been dubbed, has been active since 2011 and has compromised systems belonging to the Linux Foundation's kernel.org and the developers of the cPanel Web hosting control panel, according to a detailed report published Tuesday by researchers from antivirus provider Eset. During its 36-month run, Windigo has compromised more than 25,000 servers with robust malware that sends more than 35 million spam messages a day and exposes Windows-based Web visitors to drive-by malware attacks. It also feeds people running any type of computer banner ads for porn services." See Eset's white paper [PDF] for details.
The full-disclosure mailing list shuts down
John Cartwright, the administrator of the venerable full-disclosure security-oriented mailing list, has announced that it is shutting down. "The list has had its fair share of trolling, flooding, furry porn, fake exploits and DoS attacks over the years, but none of those things really affected the integrity of the list itself. However, taking a virtual hatchet to the list archives on the whim of an individual just doesn't feel right. That 'one of our own' would undermine the efforts of the last 12 years is really the straw that broke the camel's back."
New vulnerabilities
389-ds-base: privilege escalation
| Package(s): | 389-ds-base | CVE #(s): | CVE-2014-0132 | ||||||||||||||||||||
| Created: | March 14, 2014 | Updated: | April 1, 2014 | ||||||||||||||||||||
| Description: | From the Red Hat advisory: It was discovered that the 389 Directory Server did not properly handle certain SASL-based authentication mechanisms. A user able to authenticate to the directory using these SASL mechanisms could connect as any other directory user, including the administrative Directory Manager account. This could allow them to modify configuration values, as well as read and write any data the directory holds. | ||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||
catfish: privilege escalation
| Package(s): | catfish | CVE #(s): | CVE-2014-2093 CVE-2014-2094 CVE-2014-2095 CVE-2014-2096 | ||||||||||||||||||||||||
| Created: | March 19, 2014 | Updated: | September 2, 2014 | ||||||||||||||||||||||||
| Description: | From the CVE entries:
Untrusted search path vulnerability in Catfish through 0.4.0.3 allows local users to gain privileges via a Trojan horse catfish.py in the current working directory. (CVE-2014-2093) Untrusted search path vulnerability in Catfish through 0.4.0.3, when a Fedora package such as 0.4.0.2-2 is not used, allows local users to gain privileges via a Trojan horse catfish.pyc in the current working directory. (CVE-2014-2094) Untrusted search path vulnerability in Catfish 0.6.0 through 1.0.0, when a Fedora package such as 0.8.2-1 is not used, allows local users to gain privileges via a Trojan horse bin/catfish.pyc under the current working directory. (CVE-2014-2095) Untrusted search path vulnerability in Catfish 0.6.0 through 1.0.0 allows local users to gain privileges via a Trojan horse bin/catfish.py under the current working directory. (CVE-2014-2096) | ||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||
freetype2: two vulnerabilities
| Package(s): | freetype2 | CVE #(s): | CVE-2014-2240 CVE-2014-2241 | ||||||||||||||||||||||||||||||||||||
| Created: | March 17, 2014 | Updated: | January 19, 2015 | ||||||||||||||||||||||||||||||||||||
| Description: | From the Mageia advisory:
It was reported that Freetype before 2.5.3 suffers from an out-of-bounds stack-based read/write flaw in cf2_hintmap_build() in the CFF rasterizing code, which could lead to a buffer overflow (CVE-2014-2240). It was also reported that Freetype before 2.5.3 has a denial-of-service vulnerability in the CFF rasterizing code, due to a reachable assertion (CVE-2014-2241). | ||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||
libjansson: denial of service
| Package(s): | libjansson | CVE #(s): | CVE-2013-6401 | ||||||||||||
| Created: | March 19, 2014 | Updated: | March 24, 2014 | ||||||||||||
| Description: | From the bug report:
Florian Weimer and Eric Sesterhenn reported an issue with Jansson, a C library for encoding, decoding and manipulating JSON data. The problem exists inside the hashing implementation and results in possible prediction of hash collisions. | ||||||||||||||
| Alerts: |
| ||||||||||||||
lighttpd: two vulnerabilities
| Package(s): | lighttpd | CVE #(s): | CVE-2014-2323 CVE-2014-2324 | ||||||||||||||||||||||||||||||||
| Created: | March 13, 2014 | Updated: | April 9, 2014 | ||||||||||||||||||||||||||||||||
| Description: | From the Debian advisory:
CVE-2014-2323: Jann Horn discovered that specially crafted host names can be used to inject arbitrary MySQL queries in lighttpd servers using the MySQL virtual hosting module (mod_mysql_vhost). This only affects installations with the lighttpd-mod-mysql-vhost binary package installed and in use. CVE-2014-2324: Jann Horn discovered that specially crafted host names can be used to traverse outside of the document root under certain situations in lighttpd servers using either the mod_mysql_vhost, mod_evhost, or mod_simple_vhost virtual hosting modules. Servers not using these modules are not affected. | ||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||
mantis: three SQL injection flaws
| Package(s): | mantis | CVE #(s): | CVE-2014-1608 CVE-2014-1609 CVE-2014-2238 | ||||||||||||||||||||||||
| Created: | March 13, 2014 | Updated: | September 22, 2014 | ||||||||||||||||||||||||
| Description: | From the Red Hat bugzilla entry:
CVE-2014-2238: It was reported [1],[2] that MantisBT suffers from an SQL injection vulnerability. admin_config_report.php relied on unsanitized, inlined query parameters, enabling a malicious user to perform an SQL injection attack. An administrative account is required to access this page, however. From the oCERT advisory: CVE-2014-1608: The MantisBT SOAP API uses the unsafe db_query() function allowing a specially crafted tag within the envelope of a mc_issue_attachment_get SOAP request to inject arbitrary SQL queries. The reporting of this specific issue was followed by an investigation that lead to additional cases of unsafe db_query() function use, being found by MantisBT maintainers, throughout MantisBT code. (CVE-2014-1609) | ||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||
mozilla: multiple vulnerabilities
| Package(s): | firefox thunderbird seamonkey | CVE #(s): | CVE-2014-1494 CVE-2014-1498 CVE-2014-1499 CVE-2014-1500 CVE-2014-1502 CVE-2014-1504 CVE-2104-1508 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Created: | March 19, 2014 | Updated: | January 26, 2015 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description: | From the Ubuntu advisory:
Benoit Jacob, Olli Pettay, Jan Varga, Jan de Mooij, Jesse Ruderman, Dan Gohman, Christoph Diehl, Gregor Wagner, Gary Kwong, Luke Wagner, Rob Fletcher and Makoto Kato discovered multiple memory safety issues in Firefox. If a user were tricked in to opening a specially crafted website, an attacker could potentially exploit these to cause a denial of service via application crash, or execute arbitrary code with the privileges of the user invoking Firefox. (CVE-2014-1493, CVE-2014-1494) David Keeler discovered that crypto.generateCRFMRequest did not correctly validate all arguments. An attacker could potentially exploit this to cause a denial of service via application crash. (CVE-2014-1498) Ehsan Akhgari discovered that the WebRTC permission dialog can display the wrong originating site information under some circumstances. An attacker could potentially exploit this by tricking a user in order to gain access to their webcam or microphone. (CVE-2014-1499) Tim Philipp Schäfers and Sebastian Neef discovered that onbeforeunload events used with page navigations could make the browser unresponsive in some circumstances. An attacker could potentially exploit this to cause a denial of service. (CVE-2014-1500) Jeff Gilbert discovered that WebGL content could manipulate content from another sites WebGL context. An attacker could potentially exploit this to conduct spoofing attacks. (CVE-2014-1502) Nicolas Golubovic discovered that CSP could be bypassed for data: documents during session restore. An attacker could potentially exploit this to conduct cross-site scripting attacks. (CVE-2014-1504) Tyson Smith and Jesse Schwartzentruber discovered an out-of-bounds read during polygon rendering in MathML. An attacker could potentially exploit this to steal confidential information across domains. (CVE-2104-1508) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mozilla: multiple vulnerabilities
| Package(s): | firefox thunderbird seamonkey | CVE #(s): | CVE-2014-1493 CVE-2014-1497 CVE-2014-1505 CVE-2014-1508 CVE-2014-1509 CVE-2014-1510 CVE-2014-1511 CVE-2014-1512 CVE-2014-1513 CVE-2014-1514 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Created: | March 19, 2014 | Updated: | April 30, 2014 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description: | From the Red Hat advisory:
Several flaws were found in the processing of malformed web content. A web page containing malicious content could cause Firefox to crash or, potentially, execute arbitrary code with the privileges of the user running Firefox. (CVE-2014-1493, CVE-2014-1510, CVE-2014-1511, CVE-2014-1512, CVE-2014-1513, CVE-2014-1514) Several information disclosure flaws were found in the way Firefox processed malformed web content. An attacker could use these flaws to gain access to sensitive information such as cross-domain content or protected memory addresses or, potentially, cause Firefox to crash. (CVE-2014-1497, CVE-2014-1508, CVE-2014-1505) A memory corruption flaw was found in the way Firefox rendered certain PDF files. An attacker able to trick a user into installing a malicious extension could use this flaw to crash Firefox or, potentially, execute arbitrary code with the privileges of the user running Firefox. (CVE-2014-1509) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
python: denial of service
| Package(s): | python | CVE #(s): | CVE-2013-1752 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Created: | March 17, 2014 | Updated: | April 23, 2015 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description: | From the SUSE bug report:
Multiple denial of service flaws were reported against various parts of Python's stdlib.
Unfortunately, upstream assigned a single CVE to all of these, however I do not believe they can all use the same CVE due to them being fixed across so many different versions (2.6.9, 2.7.4, 2.7.6, 3.3.3, as well as future 2.7.x and 3.3.x versions). So this will likely require MITRE to detangle. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
samba: multiple vulnerabilities
| Package(s): | samba | CVE #(s): | CVE-2013-4496 CVE-2013-6442 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Created: | March 14, 2014 | Updated: | April 9, 2014 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description: | From the Slackware advisory: CVE-2013-4496: Samba versions 3.4.0 and above allow the administrator to implement locking out Samba accounts after a number of bad password attempts. However, all released versions of Samba did not implement this check for password changes, such as are available over multiple SAMR and RAP interfaces, allowing password guessing attacks. CVE-2013-6442: Samba versions 4.0.0 and above have a flaw in the smbcacls command. If smbcacls is used with the "-C|--chown name" or "-G|--chgrp name" command options it will remove the existing ACL on the object being modified, leaving the file or directory unprotected. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Alerts: |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
webmin: unspecified vulnerabilities
| Package(s): | webmin | CVE #(s): | |||||
| Created: | March 17, 2014 | Updated: | March 19, 2014 | ||||
| Description: | From the Mageia advisory:
Webmin has been updated to version 1.680, which fixes some security issues in the PHP Configuration and Webalizer modules, as well as several other bugs. | ||||||
| Alerts: |
| ||||||
Page editor: Jake Edge
Next page:
Kernel development>>
