Secunia - Stay Secure
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


QNX Neutrino RTOS Multiple Privilege Escalation Vulnerabilities Advisory Available in Danish 

Secunia Advisory: SA18750  
Release Date: 2006-02-08
Last Update: 2006-02-14

Critical:
Less critical
Impact: Privilege escalation
DoS
Where: Local system
Solution Status: Unpatched

OS:QNX Neutrino RTOS 6.x


CVE reference:CVE-2005-1528 (Secunia mirror)
CVE-2006-0618 (Secunia mirror)
CVE-2006-0619 (Secunia mirror)
CVE-2006-0620 (Secunia mirror)
CVE-2006-0621 (Secunia mirror)
CVE-2006-0622 (Secunia mirror)
CVE-2006-0623 (Secunia mirror)

This advisory is currently marked as unpatched!
- Companies can be alerted when a patch is released!


Description:
Multiple vulnerabilities have been reported in QNX Neutrino RTOS, which can be exploited by malicious, local users to cause a DoS (Denial of Service) or gain escalated privileges.

1) The crttrap utility loads libraries insecurely, which can be exploited to load an arbitrary library containing malicious code by manipulating the LD_LIBRARY_PATH environment variable.

Successful exploitation allows execution of arbitrary code with root privileges (installed setuid "root" by default), but requires that the system is in text mode.

The vulnerability has been reported in version 6.2.1. Other versions may also be affected.

2) A format string error in the fontsleuth utility can be exploited to execute arbitrary code with root privileges (installed setuid "root" by default) by supplying a specially crafted string as the zeroth argument.

The vulnerability has been reported in version 6.3.0. Other versions may also be affected.

3) A boundary error in the libAp system library in the "_ApFindTranslationFile()" function when handling the ABLPATH environment variable can be exploited to cause a stack-based buffer overflow and execute arbitrary code with root privileges (used by various utilities installed setuid "root" by default).

A similar vulnerability is also present in the handling of the ABLANG environment variable.

The vulnerabilities have been reported in version 6.3.0. Other versions may also be affected.

4) A boundary error in the libph system library in the "setitem()" function when handling the PHOTON_PATH environment variable can be exploited to cause a stack-based buffer overflow and execute arbitrary code with root privileges (used by various utilities installed setuid "root" by default).

The vulnerabilities have been reported in version 6.3.0. Other versions may also be affected.

5) A race condition in the phfont utility (installed setuid "root" by default) when spawning phfontphf can be exploited to gain root privileges by manipulating the PHFONT and PHOTON2_PATH environment variables.

The vulnerability has been reported in version 6.2.1. Other versions may also be affected.

6) A boundary error in the su utility can be exploited to cause a stack-based buffer overflow by passing an overly long string as the first command line argument.

Successful exploitation allows execution of arbitrary code with "root" privileges (installed setuid "root" by default).

The vulnerability has been reported in version 6.2.0. Other versions may also be affected.

7) An error can be exploited to cause the system to become unresponsive and hang by executing the following command:

echo -e "break *0xb032d59fnrncontncont" | gdb gdb

The vulnerability has been reported in version 6.3.0. The vulnerability does not affect version 6.0. Other versions may also be affected.

8) Insecure file permissions on the "/etc/rc.d/rc.local" file can be exploited to gain "root" privileges by adding arbitrary commands to the file.

The security issue has been reported in version 6.3.0. Version 6.0 is unaffected. Other versions may also be vulnerable.

9) A boundary error in the passwd utility can be exploited to cause a buffer overflow by passing an overly long string as the first command line argument.

Successful exploitation allows execution of arbitrary code with "root" privileges (installed setuid "root" by default).

The vulnerability has been reported in version 6.2.0. Other versions may also be affected.

Solution:
Grant only trusted users access to affected systems.

Remove setuid bits from affected files. Set proper file permissions on the rc.local file, and allow only trusted users to run GDB.

Provided and/or discovered by:
1) Discovered by anonymous person and reported via iDEFENSE.
2) iDefense Labs
3) Filipe Balestra
4) Filipe Balestra
5) Knud Højgaard
6) Texonet
7) Discovered by anonymous person and reported via iDEFENSE.
8) Discovered by anonymous person and reported via iDEFENSE.
9) Texonet

Changelog:
2006-02-14: Added CVE references.

Original Advisory:
iDEFENSE:
1) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=379
2) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=380
3) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=381
4) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=382
5) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=383
6) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=385
7) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=386
8) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=387
9) http://www.idefense.com/intelligence/vulnerabilities/display.php?id=388



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.

8 Related Secunia Security Advisories

1. QNX RTOS phgrafx Buffer Overflow Vulnerability
2. QNX RTOS "inputtrap" Information Disclosure Vulnerability
3. QNX RTOS "crrtrap" Privilege Escalation Vulnerability
4. QNX RTOS FTP Client "QUOTE" Command Format String Vulnerability
5. QNX reveals content of clipboard
6. QNX insecure permissions
7. QNX privilege escalation
8. QNX RTOS local DoS


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
phpBB reveals user IPs
2.
HP TCP/IP Services for OpenVMS Finger Format String Vulnerability
3.
Adium MSN SLP Message Integer Overflow Vulnerabilities
4.
GpsDrive "geo-code" Insecure Temporary Files
5.
Blogn Cross-Site Scripting and Cross-Site Request Forgery
6.
Novell eDirectory Multiple Vulnerabilities
7.
geo-* Insecure Temporary Files
8.
Sun Solaris Kernel Covert Channel Security Bypass
9.
Caudium "configvar" Insecure Temporary Files
10.
dotProject SQL Injection and Cross-Site Scripting





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia