search menu icon-carat-right cmu-wordmark

CERT Coordination Center

Digital Alert Systems DASDEC and Monroe Electronics R189 One-Net firmware exposes private root SSH key

Vulnerability Note VU#662676

Original Release Date: 2013-06-26 | Last Revised: 2014-05-07

Overview

Digital Alert Systems DASDEC and Monroe Electronics One-Net E189 Emergency Alert System (EAS) devices exposed a shared private root SSH key in publicly available firmware images. An attacker with SSH access to a device could use the key to log in with root privileges.

Description

The Digital Alert Systems DASDEC-I and DASDEC-II and Monroe Electronics R189 One-Net/R189SE One-NetSE are Linux-based EAS encoder/decoder (ENDEC) devices that are used to broadcast EAS messages over digital and analog channels. IOActive has reported several security issues affecting these devices. The most severe of these issues is the public disclosure of the default private root SSH key. The less severe issues could also contribute to an attacker's ability to compromise a vulnerable device.

Compromised root SSH key (CVE-2013-0137)
Publicly available firmware images for these devices included a private root SSH key that was authorized to log in to the devices (CWE-798, CWE-321). The fingerprint for the compromised SSH key is 0c:89:49:f7:62:d2:98:f0:27:75:ad:e9:72:2c:68:c3. Although this key is not hard-coded, it may be impractical for less technical users to manually disable or change they key prior to firmware version 2.0-2.

Predictable session ID
IOActive reports that the administrative web server uses a predictable, monotonically increasing session ID. This finding is based on running the web server in a test environment. Testing on a variety of firmware versions on devices both at the factory and in the field, Monroe Electronics could not reproduce this finding.

Log information disclosure
Logs available via the web server provide a variety of information about the configuration, operation, and status of the device (CWE-532). Some of the log information is public and may be required by regulation.

Predictable password generation
The dasdec_mkuser script generates passwords in a deterministic way (CWE-341), however these passwords are not for administrative access, and the script is not used for general user account configuration.

Default password
Like many similar devices, the DASDEC and One-Net ENDECs use default administrative credentials. Some sites fail to change the default administrative password and allow unrestricted internet access.

Impact

An attacker with the private key and SSH access can log in to a device with root privileges.

Predictable session IDs could allow an attacker to take control of an existing administrative web session.

Predictable and unchanged default passwords can allow an attacker to log in to a device, possibly with root privileges. Devices exposed to the internet are at particularly high risk, for example, see Secure EAS Codecs Prevent Zombie Attacks and US-CERT Alert TA13-175A.

Logs may disclose configuration information that can benefit an attacker.

Solution

Apply an update

On April 24, 2013, Monroe Electronics and Digital Alert Systems released firmware version 2.0-2 that allows users to disable the compromised SSH key, provides a simplified option to install new unique keys, and enforces a new password policy. Monroe Electronics has taken considerable effort to provide update information to DASDEC and One-NetSE users.

DASDEC users can obtain updated firmware and release notes by contacting <support@digitalalertsystems.com>. R189 One-Net users can contact <eas@monroe-electronics.com>.

Disable compromised SSH key

The compromised root SSH key should be disabled immediately, especially if the SSH service is exposed to untrusted networks such as the internet. If SSH connectivity is required, generate, install, and test new SSH keys before disabling the compromised key. The fingerprint for the compromised SSH key is 0c:89:49:f7:62:d2:98:f0:27:75:ad:e9:72:2c:68:c3.

Manually inspect SSH keys

To identify a compromised key, examine the authorized_keys file at /root/.ssh/authorized_keys2.dasdec and use the ssh-keygen command to show SSH key fingerprints. The following example shows the fingerprint for the compromised key:

$ ssh-keygen -l -f authorized_keys2.dasdec
1024 0c:89:49:f7:62:d2:98:f0:27:75:ad:e9:72:2c:68:c3 wood@endec1 (DSA)

Note that ssh-keygen only shows the fingerprint for the first key/line in the file. If authorized_keys2.dasdec contains multiple keys (multiple lines, one key per line), it will be necessary to extract each key (line) to a separate file and run the ssh-keygen command on each key/file. These shell scripts can be used to list and test multiple SSH keys in an authorized_keys file:

http://www.cert.org/downloads/vuls/662676/ssh-key-test.sh

https://raw.github.com/aspiers/ssh-config/master/bin/ssh-list-pubkeys

To generate new SSH keys, use ssh-kegen.

Restrict access

If for some reason you are not able to remove and replace the compromised SSH key, restrict access to the SSH service to highly trusted hosts and networks only. As a general good security practice, restrict access to all services to trusted hosts and networks.

Change default passwords

Change any default passwords, and do not deploy production systems without changing default passwords. Search engines like Shodan can index systems exposed to the internet and default passwords are usually documented and well-known. It is often trivial for an attacker to identify and access systems on the internet using default passwords.

Vendor Information

662676
 

Digital Alert Systems Affected

Notified:  January 18, 2013 Updated: June 26, 2013

Statement Date:   June 18, 2013

Status

Affected

Vendor Statement

Monroe Electronics released Version 2.0-2, which includes a cumulative security update that resolves potential vulnerabilities by removing of default SSH keys, providing a simplified user option to load new SSH keys, changing password handling, and other security enhancements.

Version 2.0-2 was released on 24 April 2013, after soft launch in March 2013. Most device users have already obtained and installed this update.

Users should always maintain secure network connections for their EAS/CAP systems, including firewalls and/or other basic network safeguards, as a standard and common sense best practice. Monroe Electronics has encouraged all users to adhere to FCC guidance and FEMA recommendations in this area.

Users who had previously disabled or changed their SSH keys and default passwords are not impacted, but should apply the v2.0-2 update nonetheless. There have been no reports of any incidents relating to SSH keys, and the company issued this security update as a precautionary measure.

No evidence of predictable session IDs was found after extensive examination of equipment, including fielded devices. The finding appears to be anomaly based on the particular test method used by the researcher, which did not involve the actual device. This issue does not appear in the actual device.

DASDEC users can obtain the DASDEC v2.0-2 software update and release notes by contacting support@digitalalertsystems.com. One-Net users can obtain the R189 One-Net v2.0-2 software update and release notes by contacting customer service at eas@monroe-electronics.com.

Vendor Information

Digital Alert Systems has released firmware version 2.0-2 for DASDEC-I and DASDEC-II devices.

Vendor References

Monroe Electronics Affected

Notified:  January 18, 2013 Updated: June 24, 2013

Statement Date:   June 18, 2013

Status

Affected

Vendor Statement

Monroe Electronics released Version 2.0-2, which includes a cumulative security update that resolves potential vulnerabilities by removing of default SSH keys, providing a simplified user option to load new SSH keys, changing password handling, and other security enhancements.

Version 2.0-2 was released on 24 April 2013, after soft launch in March 2013. Most device users have already obtained and installed this update.

Users should always maintain secure network connections for their EAS/CAP systems, including firewalls and/or other basic network safeguards, as a standard and common sense best practice. Monroe Electronics has encouraged all users to adhere to FCC guidance and FEMA recommendations in this area.

Users who had previously disabled or changed their SSH keys and default passwords are not impacted, but should apply the v2.0-2 update nonetheless. There have been no reports of any incidents relating to SSH keys, and the company issued this security update as a precautionary measure.

No evidence of predictable session IDs was found after extensive examination of equipment, including fielded devices. The finding appears to be anomaly based on the particular test method used by the researcher, which did not involve the actual device. This issue does not appear in the actual device.

DASDEC users can obtain the DASDEC v2.0-2 software update and release notes by contacting support@digitalalertsystems.com. One-Net users can obtain the R189 One-Net v2.0-2 software update and release notes by contacting customer service at eas@monroe-electronics.com.

Vendor Information

Monroe Electronics has released firmware version 2.0-2 for R189 One-Net and R189SE One-NetSE devices.

Vendor References


CVSS Metrics

Group Score Vector
Base 10 AV:N/AC:L/Au:N/C:C/I:C/A:C
Temporal 8.7 E:ND/RL:OF/RC:C
Environmental 6.8 CDP:LM/TD:M/CR:ND/IR:M/AR:ND

References

Acknowledgements

Thanks to Mike Davis and Cesar Cerrudo of IOActive for reporting these issues. Thanks also to Monroe Electronics for their efforts to contact affected users.

This document was written by Art Manion.

Other Information

CVE IDs: CVE-2013-0137
Date Public: 2013-06-24
Date First Published: 2013-06-26
Date Last Updated: 2014-05-07 22:19 UTC
Document Revision: 96

Sponsored by CISA.