TUCoPS :: Network Appliances :: tb12534.htm

Alcatel-Lucent OmniPCX Remote Command Execution
Alcatel-Lucent OmniPCX Remote Command Execution
Alcatel-Lucent OmniPCX Remote Command Execution




--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Advisory: Alcatel-Lucent OmniPCX Remote Command Execution

RedTeam Pentesting discovered a remote command execution in the
Alcatel-Lucent OmniPCX during a penetration test. The masterCGI script
of the OmniPXC integrated communication solution web interface is
vulnerable to a remote command execution. Attackers can run arbitrary
commands with the permissions of the web application user.


Details
======
Product: Alcatel-Lucent OmniPCX
Affected Versions: All versions up to and including R7.1
Fixed Versions: All supported versions
Vulnerability Type: Remote Command Execution
Security-Risk: high
Vendor-URL: http://www1.alcatel-lucent.com/psirt/statements.htm 
            reference number 2007002
Vendor-Status: Informed, patch available
Advisory-URL: http://www.redteam-pentesting.de/advisories/rt-sa-2007-001.php 
Advisory-Status: public
CVE: CVE-2007-3010
CVE-URL: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-3010 


Introduction
===========
"The OmniPCX Enterprise is an integrated communications solution for
medium-sized businesses and large corporations. It combines the best of
the old (legacy TDM phone connectivity) with the new (a native IP
platform and support for Session Initiation Protocol, or SIP) to provide
an effective and complete communications solution for cost-conscious
companies on the cutting edge."

(from the vendor's homepage)


More Details
===========
The OmniPCX web interface has a CGI script "masterCGI" which offers a
"ping" functionality. By running the script with the parameters "ping"
and "user", one is able to ping any IP address reachable from the server
the webinterface is running on.

curl -k "https://www.example.com/cgi-bin/masterCGI?ping=nomip&user=127.0.0.1" 

The ping will be done on the server, running the ping program installed
on it. The vulnerability lies in the "user" variable not being filtered
when passed to the shell. Thus, arbitrary commands can be executed on
the server by adding them to the user variable, separated by semicolons.
Spaces have to be encoded by using the internal field separator ${IFS},
as any normal or URL encoded space will abort the command execution.


Proof of Concept
===============
curl -k "https://www.example.com/cgi-bin/masterCGI?ping=nomip&user=;ls\${IFS}-l;" 


Workaround
=========
Deactivate the Web server at the loss of some functionality not related
to telephony service. Interpose a firewall allowing access to the web
interface of the OXE to IP addresses who should have access to the
server (e.g. maintenance technicians).


Fix
==
Correct filtering of shell meta-characters and tighter access control
have been implemented in all supported versions.


Security Risk
============
The risk of this vulnerability is high. Any user which has access to the
web interface of the OmniPCX Enterprise solution will be able to execute
arbitrary commands on the server with the permissions of the webserver.


History
======
2007-05-07 First contact with head of technical staff of Alcatel-Lucent. 
           Will relay the information to their technicians and call back 
           with further information.
2007-05-09 Response with a pointer to the Alcatel-Lucent PSIRT and the
website http://www1.alcatel-lucent.com/psirt, where the 
           process of reporting a security vulnerability is explained.
           The advisory gets mailed to the email address provided there.
2007-05-10 Advisory gets acknowledged by the PSIRT
2007-05-23 Vulnerability gets confirmed by Alcatel-Lucent
2007-06-18 CVE number assigned
2007-09-17 Coordinated public release with Alcatel-Lucent


References
=========
http://www1.alcatel-lucent.com/psirt/statements.htm 
reference number 2007002


RedTeam Pentesting GmbH
======================
RedTeam Pentesting is offering individual penetration tests, short
pentests, performed by a team of specialised IT-security experts.
Hereby, security weaknesses in company networks or products are
uncovered and can be fixed immediately.

As there are only few experts in this field, RedTeam Pentesting wants to
share its knowledge and enhance the public knowledge with research in
security related areas. The results are made available as public
security advisories.

More information about RedTeam Pentesting can be found at
http://www.redteam-pentesting.de. 

-- 
RedTeam Pentesting GmbH                    Tel.: +49 241 963-1300
Dennewartstr. 25-27                        Fax : +49 241 963-1304
52068 Aachen http://www.redteam-pentesting.de/ 
Germany                         Registergericht: Aachen HRB 14004
Gesch=E4ftsf=FChrer: Patrick Hof, Jens Liebchen, Claus R. F. Overbeck

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRu5CHdG/HXWsgFSuAQKfkQgApGqkAqHLGtPGWDjR1bXn+Ool5xV3yM1w
q2bKNYW7Ih4iwueB8G7urnnCWCMdkFwcjMXHn7xfGCjAqlwvr64YQMNT2am0SrZ/
gDvYPQ8t9Nj/c7L5xtlKtkxH3lH82dcOb1Bjfnq4qOH+EpRzx59Qy61cCIxn+pq4
EnnRvH4vl3NNTxKnwkHXTbW2UQl2EB6+UEcgM0+O8/Y32HGLadVCO8CabIDXyPE+
rUtu202k1OMD8CLeGzlG6jp3xoROhNrGDCVbsLz9L1fTrwt+WoqkvqvvmYOD6L84
iPpSIxV/Tr/VtTHZG/5CuYRn9BIHFuLoYmYEsTSLki15tTE1eOA6tg==KQYi
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH