exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Polycom Web Management Interface Command Injection

Polycom Web Management Interface Command Injection
Posted Mar 5, 2012
Authored by Heyder Andrade, Joao Paulo Caldas Campello | Site tempest.com.br

The Polycom web management interface on model G3/HDX 8000 HD suffers from a remote command injection vulnerability.

tags | exploit, remote, web
SHA-256 | edd85665d7b90ac56ede22daa681765beb0fda23fc185dbf676283c9186e6397

Polycom Web Management Interface Command Injection

Change Mirror Download
=====[ Tempest Security Intelligence - Advisory #02 / 2012 ]==================

Polycom Web Management Interface O.S. Command Injection
-------------------------------------------------------

Authors:
- Joao Paulo Caldas Campello:
- @jpcampello
- http://linkedin.com/in/jpcampello
- < joao.paulo[at]tempest[dot]com[dot]br >
- Heyder Andrade:
- @heyderandrade
- http://linkedin.com/in/heyderandrade
- < heyder.andrade[at]tempest[dot]com[dot]br >

Tempest Security Intelligence - Recife, Pernambuco - Brazil

=====[ Table of Contents ]====================================================

1. Overview
2. Detailed description
3. Aggravating factors
4. Further attack scenarios
5. Affected versions & Solutions
6. Timeline of disclosure
7. Thanks & Acknowledgements
8. References

=====[ Overview ]=============================================================

* System affected : Polycom Web Management Interface
* Model : G3/HDX 8000 HD

* Software Version : Durango 2.6.0 Release - build #4740
* Embedded Linux : Polycom Linux Development Platform v2.14.g3

Other versions or models may also be affected.

* Impact : Successful exploitation of this vulnerability may
allow an attacker to execute arbitrary commands on
Polycom operating system.

The Polycom HDX 8000 series [1] is a well-known video and audio
conference device running an embedded Linux PPC system.

This advisory is also available at:

- http://www.tempest.com.br/advisories/tsi-adv-1202/

=====[ Detailed description ]=================================================

The web management interface on the Polycom device allows users to execute
troubleshooting network tests by sending an ICMP echo request to user
supplied hosts. This feature is available through the following menus:

Diagnostics --> Network --> PING

This feature receives user supplied input and uses it as a parameter to the
'ping' command, returning the average round-trip time. For example: if the
user inserts the value '127.0.0.1' in the form, the system will execute
the command "ping -c 1 127.0.0.1" followed by an stdout redirection to
a random generated filename on /tmp directory.

The Command Injection vulnerability occurs due to lack of proper input
validation on user supplied data.

UNIX based systems provide the possibility to execute multiple commands by
using the semi-colon (;) character (causing the system to run all commands
consecutively), thus allowing the attacker to submit a specially crafted
parameter to run arbitrary commands on the underlying operating system.

The stdout redirection can be easily bypassed by adding a comment (#) symbol
after the trailling command submitted by the attacker, as shown in the
following example:

127.0.0.1 ; ps -ef > /tmp/command_injection.txt #

The above parameter will result in the execution of two commands:

(#1) ping -c 1 127.0.0.1
(#2) ps -ef > /tmp/command_injection.txt # <...>

Any command inserted by Polycom's web management interface after user supplied
input will be disabled by the comment symbol, thus allowing the attacker to
precisely control what she wants to execute and where its output will be
stored.

To fix this vulnerability, Polycom Web Management Interface should perform
proper input validation, sanitizing all user supplied data before it's used
elsewhere on the web application or in the underlying operating system.

Also, Polycom Web Management Interface should not allow itself to be accessed
without proper configuration of a strong administrative password.

=====[ Aggravating factors ]==================================================

During system lab testing the following aggravating factors were observed:

01. The default administrative password of Polycom Web Management
Interface was empty.

02. The embedded web server (lighttpd) was running with superuser
privileges, leading to the execution of all injected commands as root.

03. The vulnerability "Path Traversal on Polycom Web Management Interface"
can be used to avoid doing blind command injection.

Its explotation enables the attacker to view the result of all injected
commands inside the files to where stdout/stderr were redirected.

=====[ Further attack scenarios ]=============================================

As depicted by the abovementioned factors, an attacker could easily run
arbitrary commands, even to overwrite system configuration files.

For instance, the Internet Super-Server (inetd) configuration file
"/etc/inetd.conf" could be modified, aiming to execute the telnet daemon bound
to an arbitrary tcp port that would be reachable through corporate firewalls.

To achieve this scenario an attacker would only need to submit three
parameters:

(#1) 127.0.0.1 ; echo "isdnlog stream tcp6 nowait root /usr/sbin/telnetd \
telnetd" >> /etc/inetd.conf #

(#2) 127.0.0.1 ; ps -ef > /tmp/command_injection.txt #

(#3) 127.0.0.1 ; kill -HUP <inetd_PID> #

The former parameter would add a line to "/etc/inetd.conf", enabling telnet
daemon to listen on 'isdnlog' port (20011/tcp). The latter would instruct the
inetd daemon to reload its configuration file.

The process number of inetd could be identified by reading the file
"/tmp/command_injection.txt" through exploitation of vulnerability
"Path Traversal on Polycom Web Management Interface".

=====[ Affected versions & Solutions ]========================================

According to vendor's response, Polycom will publish Technical Bulletin 94332
to its costumers, reporting their official solution and mitigation information.

They have also informed that this vulnerability affects the following
products:

- Polycom HDX Video End Points running commercial software versions earlier
than 3.0.4;
- UC APL customers running software versions earlier than 2.7.1.J.

Still according to Polycom, customers will be able to download version 3.0.4 by
the end of March, 2012, at the link provided below:

- http://support.polycom.com/PolycomService/support/us/support/video/hdx_series/

UC APL customers can upgrade to version 2.7.1.J to avoid this vulnerability.

Until version 3.0.4 is released -- and for customers who cannot update to
version 3.0.4 -- Polycom recommends sysadmins to disable the option for web
management on HDX units running older versions.

=====[ Timeline of disclosure ]==============================================

- Dec/02/2011: Vendor contacted by e-mail on < security[at]polycom[dot]com >.

- Dec/02/2011: Vendor first response.

- Dec/28/2011: We have sent another e-mail asking for information.

- Feb/15/2012: As vendor did not reply to our previous message, we
have sent another e-mail telling we were going to
disclose the advisories.

- Feb/15/2012: Vendor responded asking for some more time to verify
appropriate fixes and mitigations to vulnerabilities.

We have agreed on releasing the advisories on two weeks.

- Feb/29/2012: Vendor sent an email reporting the technical bulletins
which describe their official solution and mitigation
information they were going to provide to their costumers.

- Mar/01/2012: Tempest and Polycom have coordinated publication date on
March 05.

- Mar/05/2012: Public disclosure of advisories.

=====[ Thanks & Acknowledgements ]============================================

- Tempest Security Intelligence / Tempest's Pentest Team [2]
- Evandro Hora < evandro[at]tempest[dot]com[dot].br >
- Joaquim Brasil < joaquim.brasil[at]tempest[dot]com[dot].br >
- Ricardo Ulisses < ricardo[at]tempest[dot]com[dot].br >

=====[ References ]===========================================================

[1] http://www.polycom.com/
[2] http://www.tempest.com.br/

==============================================================================
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    0 Files
  • 9
    May 9th
    0 Files
  • 10
    May 10th
    0 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close