Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

[R1] Cisco Unified Computing System - Multiple Vulnerabilities

Medium

Synopsis

Tenable has discovered two vulnerabilities in Cisco’s Unified Computing System Platform Emulator 3.0.2cPE1 command line interface. Both are exploitable over SSH (authentication is required). The emulator ships with SSH enabled and a default username and password of ‘ucspe’. This account, and the functionality implemented, is designed not to allow access to the local file system other than the files or resources explicitly required.

#1) ucspe-copy Command Line Argument Handling Command Injection

One of the commands available in the ‘CLI shell’ is the ucspe-copy command, which takes two arguments (file name, location to send file to). Using this command, it appears that a direct call to /usr/bin/scp is being used through a system() call. After testing, it was determined that that command does not handle quotes properly. Additionally, the command parser splits the arguments on unescaped spaces only. This, combined with the fact that the second parameter relies on the input starting with 'ftp', 'scp', 'sftp', or 'tftp'. Using these observations, arbitrary commands can be injected.

#2) libclimeta.so Filename Argument Handling Local Heap Buffer Overflow

The ucspe-copy command is also vulnerable to a heap overflow vulnerability. Specifically, if the first argument exceeds 241 characters then the program will write outside of the allocated buffer. The first argument is calling the /ape/ape/opt/sam/bin/ucssh program. Specifically, the library that processes the ucspe-copy input and executes system() (as well as the free() that triggered this crash) is libclimeta.so.

Solution

Cisco has released version 3.1 which addresses these issues.

Disclosure Timeline

2015-12-17 - Issues discovered
2015-12-21 - Vendor notified via [email protected]
2015-12-21 - Vendor confirms receipt, assigns PSIRT-0551455275
2015-12-28 - Vendor assigns CSCux68832 to command injection, CSCux68837 to heap overflow
2016-01-08 - Vendor says ETA for fix is Jan 2016
2016-02-17 - Ping vendor for update
2016-02-18 - Vendor replies, bugs not yet resolved
2016-02-19 - Vendor replies, will be fixed in 3.1 due end of Feb/early March
2016-02-19 - Vendor assigns CVE IDs
2016-03-10 - Vendor says v3.1 scheduled for release next week, advisories on 3/18
2016-03-18 - Vendor pushes release to early next week, asks if OK. We say sure!
2016-04-07 - Vendor says v3.1 is slightly delayed, more info as they know it.
2016-04-12 - Vendor releases v3.1, advisory to follow shortly
2016-04-15 - Vendor publishes two advisories

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

Tenable Advisory ID: TRA-2016-08
Credit:
Jacob Baines, Tenable Network Security
CVSSv2 Base / Temporal Score:
6.8 / 5.6
CVSSv2 Vector:
(AV:L/AC:L/Au:S/C:C/I:C/A:C/E:F/RL:OF/RC:C)
Affected Products:
Cisco Unified Computing System Platform Emulator 3.0.2cPE1
Risk Factor:
Medium
Additional Keywords:
PSIRT-0551455275
CSCux68832
CSCux68837

Advisory Timeline

2016-04-15 - [R1] Initial Release